; LLVM IR from TrainingByPackt/CPP-Data-Structures-and-Algorithm-Design-Principles :: Lesson4/Exercise23 (mapreduce_primecheck)

; 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_ostream" = type { ptr, %"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 }
%"struct.mapreduce::specification" = type { i64, i64, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", 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] }
%"class.prime_calculator::number_source" = type { i64, i64, i64, i64 }
%"class.mapreduce::job" = type { ptr, ptr, %"class.mapreduce::intermediates::in_memory" }
%"class.mapreduce::intermediates::in_memory" = type <{ i64, %"class.std::vector", [8 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::map<bool, std::__cxx11::list<long>>, std::allocator<std::map<bool, std::__cxx11::list<long>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::map<bool, std::__cxx11::list<long>>, std::allocator<std::map<bool, std::__cxx11::list<long>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::map<bool, std::__cxx11::list<long>>, std::allocator<std::map<bool, std::__cxx11::list<long>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::map<bool, std::__cxx11::list<long>>, std::allocator<std::map<bool, std::__cxx11::list<long>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.mapreduce::results" = type { %"struct.mapreduce::results::tag_counters", %"class.std::chrono::duration", %"class.std::chrono::duration", %"class.std::chrono::duration", %"class.std::chrono::duration", %"class.std::vector.21", %"class.std::vector.21", %"class.std::vector.21" }
%"struct.mapreduce::results::tag_counters" = type { i64, i64, i64, i64, i64, i64, i64, i64, i64 }
%"class.std::chrono::duration" = type { double }
%"class.std::vector.21" = type { %"struct.std::_Vector_base.22" }
%"struct.std::_Vector_base.22" = type { %"struct.std::_Vector_base<std::chrono::duration<double>, std::allocator<std::chrono::duration<double>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::chrono::duration<double>, std::allocator<std::chrono::duration<double>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::chrono::duration<double>, std::allocator<std::chrono::duration<double>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::chrono::duration<double>, std::allocator<std::chrono::duration<double>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.mapreduce::intermediates::in_memory<prime_calculator::map_task, prime_calculator::reduce_task>::const_result_iterator" = type { %"struct.std::pair.26", %"class.std::vector.28", ptr, %"struct.std::pair.33" }
%"struct.std::pair.26" = type { i8, i64 }
%"class.std::vector.28" = type { %"struct.std::_Vector_base.29" }
%"struct.std::_Vector_base.29" = type { %"struct.std::_Vector_base<std::_Rb_tree_const_iterator<std::pair<const bool, std::__cxx11::list<long>>>, std::allocator<std::_Rb_tree_const_iterator<std::pair<const bool, std::__cxx11::list<long>>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::_Rb_tree_const_iterator<std::pair<const bool, std::__cxx11::list<long>>>, std::allocator<std::_Rb_tree_const_iterator<std::pair<const bool, std::__cxx11::list<long>>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::_Rb_tree_const_iterator<std::pair<const bool, std::__cxx11::list<long>>>, std::allocator<std::_Rb_tree_const_iterator<std::pair<const bool, std::__cxx11::list<long>>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::_Rb_tree_const_iterator<std::pair<const bool, std::__cxx11::list<long>>>, std::allocator<std::_Rb_tree_const_iterator<std::pair<const bool, std::__cxx11::list<long>>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair.33" = type { i64, %"struct.std::_List_const_iterator" }
%"struct.std::_List_const_iterator" = type { ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.6 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [2 x i8], align 1

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

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

declare i32 @__gxx_personality_v0(...)

; 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) #1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) #2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca %"struct.mapreduce::specification", align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %"class.prime_calculator::number_source", align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %"class.mapreduce::job", align 8
  %18 = alloca %"struct.mapreduce::results", align 8
  %19 = alloca %"class.mapreduce::intermediates::in_memory<prime_calculator::map_task, prime_calculator::reduce_task>::const_result_iterator", align 8
  %20 = alloca %"class.mapreduce::intermediates::in_memory<prime_calculator::map_task, prime_calculator::reduce_task>::const_result_iterator", align 8
  %21 = alloca %"class.mapreduce::intermediates::in_memory<prime_calculator::map_task, prime_calculator::reduce_task>::const_result_iterator", align 8
  %22 = alloca %"class.mapreduce::intermediates::in_memory<prime_calculator::map_task, prime_calculator::reduce_task>::const_result_iterator", align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 88, ptr %6) #8
  call void @_ZN9mapreduce13specificationC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %6)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  store i32 1000, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  store i32 1, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  %23 = call noundef i32 @_ZNSt6thread20hardware_concurrencyEv() #8
  store i32 %23, ptr %9, align 4, !tbaa !5
  %24 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %25 unwind label %92

25:                                               ; preds = %2
  %26 = load i32, ptr %24, align 4, !tbaa !5
  %27 = zext i32 %26 to i64
  %28 = getelementptr inbounds %"struct.mapreduce::specification", ptr %6, i32 0, i32 0
  store i64 %27, ptr %28, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  store i32 1, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  %29 = call noundef i32 @_ZNSt6thread20hardware_concurrencyEv() #8
  store i32 %29, ptr %13, align 4, !tbaa !5
  %30 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %31 unwind label %96

31:                                               ; preds = %25
  %32 = load i32, ptr %30, align 4, !tbaa !5
  %33 = zext i32 %32 to i64
  %34 = getelementptr inbounds %"struct.mapreduce::specification", ptr %6, i32 0, i32 1
  store i64 %33, ptr %34, align 8, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #8
  %35 = load i32, ptr %7, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = load i32, ptr %7, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds %"struct.mapreduce::specification", ptr %6, i32 0, i32 1
  %40 = load i64, ptr %39, align 8, !tbaa !16
  %41 = udiv i64 %38, %40
  invoke void @_ZN16prime_calculator13number_sourceINS_8map_taskEEC2Elll(ptr noundef nonnull align 8 dereferenceable(32) %14, i64 noundef 0, i64 noundef %36, i64 noundef %41)
          to label %42 unwind label %100

42:                                               ; preds = %31
  %43 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.6)
          to label %44 unwind label %100

44:                                               ; preds = %42
  %45 = load i32, ptr %7, align 4, !tbaa !5
  %46 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %43, i32 noundef %45)
          to label %47 unwind label %100

47:                                               ; preds = %44
  %48 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %46, ptr noundef @.str.7)
          to label %49 unwind label %100

49:                                               ; preds = %47
  %50 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %48, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %51 unwind label %100

51:                                               ; preds = %49
  %52 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %53 unwind label %100

53:                                               ; preds = %51
  %54 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %52, ptr noundef @.str.8)
          to label %55 unwind label %100

55:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  store i32 1, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  %56 = call noundef i32 @_ZNSt6thread20hardware_concurrencyEv() #8
  store i32 %56, ptr %16, align 4, !tbaa !5
  %57 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %16)
          to label %58 unwind label %104

58:                                               ; preds = %55
  %59 = load i32, ptr %57, align 4, !tbaa !5
  %60 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %54, i32 noundef %59)
          to label %61 unwind label %104

61:                                               ; preds = %58
  %62 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %60, ptr noundef @.str.9)
          to label %63 unwind label %104

63:                                               ; preds = %61
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.start.p0(i64 56, ptr %17) #8
  invoke void @_ZN9mapreduce3jobIN16prime_calculator8map_taskENS1_11reduce_taskENS_13null_combinerENS1_13number_sourceIS2_EENS_13intermediates9in_memoryIS2_S3_bNS_16hash_partitionerESt4lessIbENS7_18reduce_null_outputIS2_S3_EEEESD_EC2ERS6_RKNS_13specificationE(ptr noundef nonnull align 8 dereferenceable(56) %17, ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(88) %6)
          to label %64 unwind label %108

64:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 176, ptr %18) #8
  invoke void @_ZN9mapreduce7resultsC2Ev(ptr noundef nonnull align 8 dereferenceable(176) %18)
          to label %65 unwind label %112

65:                                               ; preds = %64
  invoke void @_ZN9mapreduce3jobIN16prime_calculator8map_taskENS1_11reduce_taskENS_13null_combinerENS1_13number_sourceIS2_EENS_13intermediates9in_memoryIS2_S3_bNS_16hash_partitionerESt4lessIbENS7_18reduce_null_outputIS2_S3_EEEESD_E3runINS_15schedule_policy12cpu_parallelISF_EEEEvRNS_7resultsE(ptr noundef nonnull align 8 dereferenceable(56) %17, ptr noundef nonnull align 8 dereferenceable(176) %18)
          to label %66 unwind label %116

66:                                               ; preds = %65
  %67 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.10)
          to label %68 unwind label %116

68:                                               ; preds = %66
  %69 = getelementptr inbounds %"struct.mapreduce::results", ptr %18, i32 0, i32 1
  %70 = invoke noundef double @_ZNKSt6chrono8durationIdSt5ratioILl1ELl1EEE5countEv(ptr noundef nonnull align 8 dereferenceable(8) %69)
          to label %71 unwind label %116

71:                                               ; preds = %68
  %72 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %67, double noundef %70)
          to label %73 unwind label %116

73:                                               ; preds = %71
  %74 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %72, ptr noundef @.str.11)
          to label %75 unwind label %116

75:                                               ; preds = %73
  invoke void @_ZNK9mapreduce3jobIN16prime_calculator8map_taskENS1_11reduce_taskENS_13null_combinerENS1_13number_sourceIS2_EENS_13intermediates9in_memoryIS2_S3_bNS_16hash_partitionerESt4lessIbENS7_18reduce_null_outputIS2_S3_EEEESD_E13begin_resultsEv(ptr dead_on_unwind writable sret(%"class.mapreduce::intermediates::in_memory<prime_calculator::map_task, prime_calculator::reduce_task>::const_result_iterator") align 8 %19, ptr noundef nonnull align 8 dereferenceable(56) %17)
          to label %76 unwind label %116

76:                                               ; preds = %75
  invoke void @_ZNK9mapreduce3jobIN16prime_calculator8map_taskENS1_11reduce_taskENS_13null_combinerENS1_13number_sourceIS2_EENS_13intermediates9in_memoryIS2_S3_bNS_16hash_partitionerESt4lessIbENS7_18reduce_null_outputIS2_S3_EEEESD_E11end_resultsEv(ptr dead_on_unwind writable sret(%"class.mapreduce::intermediates::in_memory<prime_calculator::map_task, prime_calculator::reduce_task>::const_result_iterator") align 8 %20, ptr noundef nonnull align 8 dereferenceable(56) %17)
          to label %77 unwind label %120

77:                                               ; preds = %76
  %78 = invoke noundef i64 @_ZSt8distanceIN9mapreduce13intermediates9in_memoryIN16prime_calculator8map_taskENS3_11reduce_taskEbNS0_16hash_partitionerESt4lessIbENS1_18reduce_null_outputIS4_S5_EEE21const_result_iteratorEENSt15iterator_traitsIT_E15difference_typeESE_SE_(ptr noundef %19, ptr noundef %20)
          to label %79 unwind label %124

79:                                               ; preds = %77
  %80 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEl(ptr noundef nonnull align 8 dereferenceable(8) %74, i64 noundef %78)
          to label %81 unwind label %124

81:                                               ; preds = %79
  %82 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %80, ptr noundef @.str.12)
          to label %83 unwind label %124

83:                                               ; preds = %81
  %84 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %82, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %85 unwind label %124

85:                                               ; preds = %83
  call void @_ZN9mapreduce13intermediates9in_memoryIN16prime_calculator8map_taskENS2_11reduce_taskEbNS_16hash_partitionerESt4lessIbENS0_18reduce_null_outputIS3_S4_EEE21const_result_iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %20) #8
  call void @_ZN9mapreduce13intermediates9in_memoryIN16prime_calculator8map_taskENS2_11reduce_taskEbNS_16hash_partitionerESt4lessIbENS0_18reduce_null_outputIS3_S4_EEE21const_result_iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %19) #8
  call void @llvm.lifetime.start.p0(i64 64, ptr %21) #8
  invoke void @_ZNK9mapreduce3jobIN16prime_calculator8map_taskENS1_11reduce_taskENS_13null_combinerENS1_13number_sourceIS2_EENS_13intermediates9in_memoryIS2_S3_bNS_16hash_partitionerESt4lessIbENS7_18reduce_null_outputIS2_S3_EEEESD_E13begin_resultsEv(ptr dead_on_unwind writable sret(%"class.mapreduce::intermediates::in_memory<prime_calculator::map_task, prime_calculator::reduce_task>::const_result_iterator") align 8 %21, ptr noundef nonnull align 8 dereferenceable(56) %17)
          to label %86 unwind label %129

86:                                               ; preds = %85
  br label %87

87:                                               ; preds = %153, %86
  call void @llvm.lifetime.start.p0(i64 64, ptr %22) #8
  invoke void @_ZNK9mapreduce3jobIN16prime_calculator8map_taskENS1_11reduce_taskENS_13null_combinerENS1_13number_sourceIS2_EENS_13intermediates9in_memoryIS2_S3_bNS_16hash_partitionerESt4lessIbENS7_18reduce_null_outputIS2_S3_EEEESD_E11end_resultsEv(ptr dead_on_unwind writable sret(%"class.mapreduce::intermediates::in_memory<prime_calculator::map_task, prime_calculator::reduce_task>::const_result_iterator") align 8 %22, ptr noundef nonnull align 8 dereferenceable(56) %17)
          to label %88 unwind label %133

88:                                               ; preds = %87
  %89 = invoke noundef zeroext i1 @_ZN5boost9iteratorsneIN9mapreduce13intermediates9in_memoryIN16prime_calculator8map_taskENS5_11reduce_taskEbNS2_16hash_partitionerESt4lessIbENS3_18reduce_null_outputIS6_S7_EEE21const_result_iteratorEKSt4pairIblENS0_21forward_traversal_tagERSH_lSE_SH_SI_SJ_lEENS0_6detail23enable_if_interoperableIT_T4_NS_3mpl6apply2INSK_12always_bool2ESM_SN_E4typeEE4typeERKNS0_15iterator_facadeISM_T0_T1_T2_T3_EERKNSV_ISN_T5_T6_T7_T8_EE(ptr noundef nonnull align 1 dereferenceable(1) %21, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %90 unwind label %137

90:                                               ; preds = %88
  call void @_ZN9mapreduce13intermediates9in_memoryIN16prime_calculator8map_taskENS2_11reduce_taskEbNS_16hash_partitionerESt4lessIbENS0_18reduce_null_outputIS3_S4_EEE21const_result_iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %22) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr %22) #8
  br i1 %89, label %142, label %91

91:                                               ; preds = %90
  call void @_ZN9mapreduce13intermediates9in_memoryIN16prime_calculator8map_taskENS2_11reduce_taskEbNS_16hash_partitionerESt4lessIbENS0_18reduce_null_outputIS3_S4_EEE21const_result_iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %21) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr %21) #8
  br label %160

92:                                               ; preds = %2
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %10, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  br label %166

96:                                               ; preds = %25
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %10, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %166

100:                                              ; preds = %53, %51, %49, %47, %44, %42, %31
  %101 = landingpad { ptr, i32 }
          cleanup
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %10, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %11, align 4
  br label %165

104:                                              ; preds = %61, %58, %55
  %105 = landingpad { ptr, i32 }
          cleanup
  %106 = extractvalue { ptr, i32 } %105, 0
  store ptr %106, ptr %10, align 8
  %107 = extractvalue { ptr, i32 } %105, 1
  store i32 %107, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %165

108:                                              ; preds = %63
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %10, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %11, align 4
  br label %164

112:                                              ; preds = %64
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %10, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %11, align 4
  br label %163

116:                                              ; preds = %75, %73, %71, %68, %66, %65
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %10, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %11, align 4
  br label %162

120:                                              ; preds = %76
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %10, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %11, align 4
  br label %128

124:                                              ; preds = %83, %81, %79, %77
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %10, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %11, align 4
  call void @_ZN9mapreduce13intermediates9in_memoryIN16prime_calculator8map_taskENS2_11reduce_taskEbNS_16hash_partitionerESt4lessIbENS0_18reduce_null_outputIS3_S4_EEE21const_result_iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %20) #8
  br label %128

128:                                              ; preds = %124, %120
  call void @_ZN9mapreduce13intermediates9in_memoryIN16prime_calculator8map_taskENS2_11reduce_taskEbNS_16hash_partitionerESt4lessIbENS0_18reduce_null_outputIS3_S4_EEE21const_result_iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %19) #8
  br label %162

129:                                              ; preds = %85
  %130 = landingpad { ptr, i32 }
          cleanup
  %131 = extractvalue { ptr, i32 } %130, 0
  store ptr %131, ptr %10, align 8
  %132 = extractvalue { ptr, i32 } %130, 1
  store i32 %132, ptr %11, align 4
  br label %159

133:                                              ; preds = %87
  %134 = landingpad { ptr, i32 }
          cleanup
  %135 = extractvalue { ptr, i32 } %134, 0
  store ptr %135, ptr %10, align 8
  %136 = extractvalue { ptr, i32 } %134, 1
  store i32 %136, ptr %11, align 4
  br label %141

137:                                              ; preds = %88
  %138 = landingpad { ptr, i32 }
          cleanup
  %139 = extractvalue { ptr, i32 } %138, 0
  store ptr %139, ptr %10, align 8
  %140 = extractvalue { ptr, i32 } %138, 1
  store i32 %140, ptr %11, align 4
  call void @_ZN9mapreduce13intermediates9in_memoryIN16prime_calculator8map_taskENS2_11reduce_taskEbNS_16hash_partitionerESt4lessIbENS0_18reduce_null_outputIS3_S4_EEE21const_result_iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %22) #8
  br label %141

141:                                              ; preds = %137, %133
  call void @llvm.lifetime.end.p0(i64 64, ptr %22) #8
  br label %158

142:                                              ; preds = %90
  %143 = invoke noundef ptr @_ZNK5boost9iterators6detail20iterator_facade_baseIN9mapreduce13intermediates9in_memoryIN16prime_calculator8map_taskENS6_11reduce_taskEbNS3_16hash_partitionerESt4lessIbENS4_18reduce_null_outputIS7_S8_EEE21const_result_iteratorEKSt4pairIblENS0_21forward_traversal_tagERSI_lLb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %144 unwind label %154

144:                                              ; preds = %142
  %145 = getelementptr inbounds %"struct.std::pair.26", ptr %143, i32 0, i32 1
  %146 = load i64, ptr %145, align 8, !tbaa !17
  %147 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEl(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %146)
          to label %148 unwind label %154

148:                                              ; preds = %144
  %149 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %147, ptr noundef @.str.13)
          to label %150 unwind label %154

150:                                              ; preds = %148
  br label %151

151:                                              ; preds = %150
  %152 = invoke noundef nonnull align 8 dereferenceable(64) ptr @_ZN5boost9iterators6detail20iterator_facade_baseIN9mapreduce13intermediates9in_memoryIN16prime_calculator8map_taskENS6_11reduce_taskEbNS3_16hash_partitionerESt4lessIbENS4_18reduce_null_outputIS7_S8_EEE21const_result_iteratorEKSt4pairIblENS0_21forward_traversal_tagERSI_lLb0ELb0EEppEv(ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %153 unwind label %154

153:                                              ; preds = %151
  br label %87, !llvm.loop !20

154:                                              ; preds = %151, %148, %144, %142
  %155 = landingpad { ptr, i32 }
          cleanup
  %156 = extractvalue { ptr, i32 } %155, 0
  store ptr %156, ptr %10, align 8
  %157 = extractvalue { ptr, i32 } %155, 1
  store i32 %157, ptr %11, align 4
  br label %158

158:                                              ; preds = %154, %141
  call void @_ZN9mapreduce13intermediates9in_memoryIN16prime_calculator8map_taskENS2_11reduce_taskEbNS_16hash_partitionerESt4lessIbENS0_18reduce_null_outputIS3_S4_EEE21const_result_iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %21) #8
  br label %159

159:                                              ; preds = %158, %129
  call void @llvm.lifetime.end.p0(i64 64, ptr %21) #8
  br label %162

160:                                              ; preds = %91
  store i32 0, ptr %3, align 4
  call void @_ZN9mapreduce7resultsD2Ev(ptr noundef nonnull align 8 dereferenceable(176) %18) #8
  call void @llvm.lifetime.end.p0(i64 176, ptr %18) #8
  call void @_ZN9mapreduce3jobIN16prime_calculator8map_taskENS1_11reduce_taskENS_13null_combinerENS1_13number_sourceIS2_EENS_13intermediates9in_memoryIS2_S3_bNS_16hash_partitionerESt4lessIbENS7_18reduce_null_outputIS2_S3_EEEESD_ED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %17) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  call void @_ZN9mapreduce13specificationD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %6) #8
  call void @llvm.lifetime.end.p0(i64 88, ptr %6) #8
  %161 = load i32, ptr %3, align 4
  ret i32 %161

162:                                              ; preds = %159, %128, %116
  call void @_ZN9mapreduce7resultsD2Ev(ptr noundef nonnull align 8 dereferenceable(176) %18) #8
  br label %163

163:                                              ; preds = %162, %112
  call void @llvm.lifetime.end.p0(i64 176, ptr %18) #8
  call void @_ZN9mapreduce3jobIN16prime_calculator8map_taskENS1_11reduce_taskENS_13null_combinerENS1_13number_sourceIS2_EENS_13intermediates9in_memoryIS2_S3_bNS_16hash_partitionerESt4lessIbENS7_18reduce_null_outputIS2_S3_EEEESD_ED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %17) #8
  br label %164

164:                                              ; preds = %163, %108
  call void @llvm.lifetime.end.p0(i64 56, ptr %17) #8
  br label %165

165:                                              ; preds = %164, %104, %100
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #8
  br label %166

166:                                              ; preds = %165, %96, %92
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  call void @_ZN9mapreduce13specificationD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %6) #8
  call void @llvm.lifetime.end.p0(i64 88, ptr %6) #8
  br label %167

167:                                              ; preds = %166
  %168 = load ptr, ptr %10, align 8
  %169 = load i32, ptr %11, align 4
  %170 = insertvalue { ptr, i32 } poison, ptr %168, 0
  %171 = insertvalue { ptr, i32 } %170, i32 %169, 1
  resume { ptr, i32 } %171
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #4

; Function Attrs: nounwind
declare noundef i32 @_ZNSt6thread20hardware_concurrencyEv() #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN16prime_calculator13number_sourceINS_8map_taskEEC2Elll(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef, i64 noundef, i64 noundef) unnamed_addr #6 align 2

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9mapreduce3jobIN16prime_calculator8map_taskENS1_11reduce_taskENS_13null_combinerENS1_13number_sourceIS2_EENS_13intermediates9in_memoryIS2_S3_bNS_16hash_partitionerESt4lessIbENS7_18reduce_null_outputIS2_S3_EEEESD_EC2ERS6_RKNS_13specificationE(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN9mapreduce7resultsC2Ev(ptr noundef nonnull align 8 dereferenceable(176)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9mapreduce3jobIN16prime_calculator8map_taskENS1_11reduce_taskENS_13null_combinerENS1_13number_sourceIS2_EENS_13intermediates9in_memoryIS2_S3_bNS_16hash_partitionerESt4lessIbENS7_18reduce_null_outputIS2_S3_EEEESD_E3runINS_15schedule_policy12cpu_parallelISF_EEEEvRNS_7resultsE(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(176)) #3 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) #3 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZSt8distanceIN9mapreduce13intermediates9in_memoryIN16prime_calculator8map_taskENS3_11reduce_taskEbNS0_16hash_partitionerESt4lessIbENS1_18reduce_null_outputIS4_S5_EEE21const_result_iteratorEENSt15iterator_traitsIT_E15difference_typeESE_SE_(ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK9mapreduce3jobIN16prime_calculator8map_taskENS1_11reduce_taskENS_13null_combinerENS1_13number_sourceIS2_EENS_13intermediates9in_memoryIS2_S3_bNS_16hash_partitionerESt4lessIbENS7_18reduce_null_outputIS2_S3_EEEESD_E13begin_resultsEv(ptr dead_on_unwind noalias writable sret(%"class.mapreduce::intermediates::in_memory<prime_calculator::map_task, prime_calculator::reduce_task>::const_result_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(56)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK9mapreduce3jobIN16prime_calculator8map_taskENS1_11reduce_taskENS_13null_combinerENS1_13number_sourceIS2_EENS_13intermediates9in_memoryIS2_S3_bNS_16hash_partitionerESt4lessIbENS7_18reduce_null_outputIS2_S3_EEEESD_E11end_resultsEv(ptr dead_on_unwind noalias writable sret(%"class.mapreduce::intermediates::in_memory<prime_calculator::map_task, prime_calculator::reduce_task>::const_result_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(56)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN9mapreduce13intermediates9in_memoryIN16prime_calculator8map_taskENS2_11reduce_taskEbNS_16hash_partitionerESt4lessIbENS0_18reduce_null_outputIS3_S4_EEE21const_result_iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(64)) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5boost9iteratorsneIN9mapreduce13intermediates9in_memoryIN16prime_calculator8map_taskENS5_11reduce_taskEbNS2_16hash_partitionerESt4lessIbENS3_18reduce_null_outputIS6_S7_EEE21const_result_iteratorEKSt4pairIblENS0_21forward_traversal_tagERSH_lSE_SH_SI_SJ_lEENS0_6detail23enable_if_interoperableIT_T4_NS_3mpl6apply2INSK_12always_bool2ESM_SN_E4typeEE4typeERKNS0_15iterator_facadeISM_T0_T1_T2_T3_EERKNSV_ISN_T5_T6_T7_T8_EE(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK5boost9iterators6detail20iterator_facade_baseIN9mapreduce13intermediates9in_memoryIN16prime_calculator8map_taskENS6_11reduce_taskEbNS3_16hash_partitionerESt4lessIbENS4_18reduce_null_outputIS7_S8_EEE21const_result_iteratorEKSt4pairIblENS0_21forward_traversal_tagERSI_lLb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(64) ptr @_ZN5boost9iterators6detail20iterator_facade_baseIN9mapreduce13intermediates9in_memoryIN16prime_calculator8map_taskENS6_11reduce_taskEbNS3_16hash_partitionerESt4lessIbENS4_18reduce_null_outputIS7_S8_EEE21const_result_iteratorEKSt4pairIblENS0_21forward_traversal_tagERSI_lLb0ELb0EEppEv(ptr noundef nonnull align 1 dereferenceable(1)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN9mapreduce7resultsD2Ev(ptr noundef nonnull align 8 dereferenceable(176)) unnamed_addr #4 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN9mapreduce13specificationD2Ev(ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #4 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { 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 #4 = { 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 #5 = { nounwind "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 = { 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 = { "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 #8 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTSN9mapreduce13specificationE", !13, i64 0, !13, i64 8, !14, i64 16, !14, i64 48, !13, i64 80}
!13 = !{!"long", !7, i64 0}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !15, i64 0, !13, i64 8, !7, i64 16}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !10, i64 0}
!16 = !{!12, !13, i64 8}
!17 = !{!18, !13, i64 8}
!18 = !{!"_ZTSSt4pairIblE", !19, i64 0, !13, i64 8}
!19 = !{!"bool", !7, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}


; 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_ostream" = type { ptr, %"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 }
%"struct.mapreduce::specification" = type { i64, i64, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", 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] }
%"class.prime_calculator::number_source" = type { i64, i64, i64, i64 }
%"class.mapreduce::job" = type { ptr, ptr, %"class.mapreduce::intermediates::in_memory" }
%"class.mapreduce::intermediates::in_memory" = type <{ i64, %"class.std::vector", [8 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::map<bool, std::__cxx11::list<long>>, std::allocator<std::map<bool, std::__cxx11::list<long>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::map<bool, std::__cxx11::list<long>>, std::allocator<std::map<bool, std::__cxx11::list<long>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::map<bool, std::__cxx11::list<long>>, std::allocator<std::map<bool, std::__cxx11::list<long>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::map<bool, std::__cxx11::list<long>>, std::allocator<std::map<bool, std::__cxx11::list<long>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.mapreduce::results" = type { %"struct.mapreduce::results::tag_counters", %"class.std::chrono::duration", %"class.std::chrono::duration", %"class.std::chrono::duration", %"class.std::chrono::duration", %"class.std::vector.21", %"class.std::vector.21", %"class.std::vector.21" }
%"struct.mapreduce::results::tag_counters" = type { i64, i64, i64, i64, i64, i64, i64, i64, i64 }
%"class.std::chrono::duration" = type { double }
%"class.std::vector.21" = type { %"struct.std::_Vector_base.22" }
%"struct.std::_Vector_base.22" = type { %"struct.std::_Vector_base<std::chrono::duration<double>, std::allocator<std::chrono::duration<double>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::chrono::duration<double>, std::allocator<std::chrono::duration<double>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::chrono::duration<double>, std::allocator<std::chrono::duration<double>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::chrono::duration<double>, std::allocator<std::chrono::duration<double>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.mapreduce::intermediates::in_memory<prime_calculator::map_task, prime_calculator::reduce_task>::const_result_iterator" = type { %"struct.std::pair.26", %"class.std::vector.28", ptr, %"struct.std::pair.33" }
%"struct.std::pair.26" = type { i8, i64 }
%"class.std::vector.28" = type { %"struct.std::_Vector_base.29" }
%"struct.std::_Vector_base.29" = type { %"struct.std::_Vector_base<std::_Rb_tree_const_iterator<std::pair<const bool, std::__cxx11::list<long>>>, std::allocator<std::_Rb_tree_const_iterator<std::pair<const bool, std::__cxx11::list<long>>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::_Rb_tree_const_iterator<std::pair<const bool, std::__cxx11::list<long>>>, std::allocator<std::_Rb_tree_const_iterator<std::pair<const bool, std::__cxx11::list<long>>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::_Rb_tree_const_iterator<std::pair<const bool, std::__cxx11::list<long>>>, std::allocator<std::_Rb_tree_const_iterator<std::pair<const bool, std::__cxx11::list<long>>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::_Rb_tree_const_iterator<std::pair<const bool, std::__cxx11::list<long>>>, std::allocator<std::_Rb_tree_const_iterator<std::pair<const bool, std::__cxx11::list<long>>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair.33" = type { i64, %"struct.std::_List_const_iterator" }
%"struct.std::_List_const_iterator" = type { ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.6 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [2 x i8], align 1

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

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

declare i32 @__gxx_personality_v0(...)

; 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 #1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"struct.mapreduce::specification", align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %"class.prime_calculator::number_source", align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"class.mapreduce::job", align 8
  %12 = alloca %"struct.mapreduce::results", align 8
  %13 = alloca %"class.mapreduce::intermediates::in_memory<prime_calculator::map_task, prime_calculator::reduce_task>::const_result_iterator", align 8
  %14 = alloca %"class.mapreduce::intermediates::in_memory<prime_calculator::map_task, prime_calculator::reduce_task>::const_result_iterator", align 8
  %15 = alloca %"class.mapreduce::intermediates::in_memory<prime_calculator::map_task, prime_calculator::reduce_task>::const_result_iterator", align 8
  %16 = alloca %"class.mapreduce::intermediates::in_memory<prime_calculator::map_task, prime_calculator::reduce_task>::const_result_iterator", align 8
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %3) #8
  call void @_ZN9mapreduce13specificationC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %3)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #8
  store i32 1, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #8
  %17 = call noundef i32 @_ZNSt6thread20hardware_concurrencyEv() #8
  store i32 %17, ptr %5, align 4, !tbaa !5
  %18 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %19 = load i32, ptr %18, align 4, !tbaa !5
  %20 = zext i32 %19 to i64
  store i64 %20, ptr %3, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #8
  store i32 1, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #8
  %21 = call noundef i32 @_ZNSt6thread20hardware_concurrencyEv() #8
  store i32 %21, ptr %7, align 4, !tbaa !5
  %22 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %23 = load i32, ptr %22, align 4, !tbaa !5
  %24 = zext i32 %23 to i64
  %25 = getelementptr inbounds i8, ptr %3, i64 8
  store i64 %24, ptr %25, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #8
  %26 = udiv i32 1000, %23
  %.zext = zext nneg i32 %26 to i64
  call void @_ZN16prime_calculator13number_sourceINS_8map_taskEEC2Elll(ptr noundef nonnull align 8 dereferenceable(32) %8, i64 noundef 0, i64 noundef 1000, i64 noundef %.zext)
  %27 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.6)
          to label %28 unwind label %71

28:                                               ; preds = %2
  %29 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %27, i32 noundef 1000)
          to label %30 unwind label %71

30:                                               ; preds = %28
  %31 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull @.str.7)
          to label %32 unwind label %71

32:                                               ; preds = %30
  %33 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %34 unwind label %71

34:                                               ; preds = %32
  %35 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %36 unwind label %71

36:                                               ; preds = %34
  %37 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef nonnull @.str.8)
          to label %38 unwind label %71

38:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #8
  store i32 1, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #8
  %39 = call noundef i32 @_ZNSt6thread20hardware_concurrencyEv() #8
  store i32 %39, ptr %10, align 4, !tbaa !5
  %40 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %41 = load i32, ptr %40, align 4, !tbaa !5
  %42 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %37, i32 noundef %41)
          to label %43 unwind label %73

43:                                               ; preds = %38
  %44 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %42, ptr noundef nonnull @.str.9)
          to label %45 unwind label %73

45:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #8
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %11) #8
  invoke void @_ZN9mapreduce3jobIN16prime_calculator8map_taskENS1_11reduce_taskENS_13null_combinerENS1_13number_sourceIS2_EENS_13intermediates9in_memoryIS2_S3_bNS_16hash_partitionerESt4lessIbENS7_18reduce_null_outputIS2_S3_EEEESD_EC2ERS6_RKNS_13specificationE(ptr noundef nonnull align 8 dereferenceable(56) %11, ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(88) %3)
          to label %46 unwind label %75

46:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 176, ptr nonnull %12) #8
  invoke void @_ZN9mapreduce7resultsC2Ev(ptr noundef nonnull align 8 dereferenceable(176) %12)
          to label %47 unwind label %77

47:                                               ; preds = %46
  invoke void @_ZN9mapreduce3jobIN16prime_calculator8map_taskENS1_11reduce_taskENS_13null_combinerENS1_13number_sourceIS2_EENS_13intermediates9in_memoryIS2_S3_bNS_16hash_partitionerESt4lessIbENS7_18reduce_null_outputIS2_S3_EEEESD_E3runINS_15schedule_policy12cpu_parallelISF_EEEEvRNS_7resultsE(ptr noundef nonnull align 8 dereferenceable(56) %11, ptr noundef nonnull align 8 dereferenceable(176) %12)
          to label %48 unwind label %79

48:                                               ; preds = %47
  %49 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.10)
          to label %50 unwind label %79

50:                                               ; preds = %48
  %51 = getelementptr inbounds i8, ptr %12, i64 72
  %52 = call noundef double @_ZNKSt6chrono8durationIdSt5ratioILl1ELl1EEE5countEv(ptr noundef nonnull align 8 dereferenceable(8) %51)
  %53 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %49, double noundef %52)
          to label %54 unwind label %79

54:                                               ; preds = %50
  %55 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %53, ptr noundef nonnull @.str.11)
          to label %56 unwind label %79

56:                                               ; preds = %54
  invoke void @_ZNK9mapreduce3jobIN16prime_calculator8map_taskENS1_11reduce_taskENS_13null_combinerENS1_13number_sourceIS2_EENS_13intermediates9in_memoryIS2_S3_bNS_16hash_partitionerESt4lessIbENS7_18reduce_null_outputIS2_S3_EEEESD_E13begin_resultsEv(ptr dead_on_unwind nonnull writable sret(%"class.mapreduce::intermediates::in_memory<prime_calculator::map_task, prime_calculator::reduce_task>::const_result_iterator") align 8 %13, ptr noundef nonnull align 8 dereferenceable(56) %11)
          to label %57 unwind label %79

57:                                               ; preds = %56
  invoke void @_ZNK9mapreduce3jobIN16prime_calculator8map_taskENS1_11reduce_taskENS_13null_combinerENS1_13number_sourceIS2_EENS_13intermediates9in_memoryIS2_S3_bNS_16hash_partitionerESt4lessIbENS7_18reduce_null_outputIS2_S3_EEEESD_E11end_resultsEv(ptr dead_on_unwind nonnull writable sret(%"class.mapreduce::intermediates::in_memory<prime_calculator::map_task, prime_calculator::reduce_task>::const_result_iterator") align 8 %14, ptr noundef nonnull align 8 dereferenceable(56) %11)
          to label %58 unwind label %81

58:                                               ; preds = %57
  %59 = invoke noundef i64 @_ZSt8distanceIN9mapreduce13intermediates9in_memoryIN16prime_calculator8map_taskENS3_11reduce_taskEbNS0_16hash_partitionerESt4lessIbENS1_18reduce_null_outputIS4_S5_EEE21const_result_iteratorEENSt15iterator_traitsIT_E15difference_typeESE_SE_(ptr noundef nonnull %13, ptr noundef nonnull %14)
          to label %60 unwind label %83

60:                                               ; preds = %58
  %61 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEl(ptr noundef nonnull align 8 dereferenceable(8) %55, i64 noundef %59)
          to label %62 unwind label %83

62:                                               ; preds = %60
  %63 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %61, ptr noundef nonnull @.str.12)
          to label %64 unwind label %83

64:                                               ; preds = %62
  %65 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %63, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %66 unwind label %83

66:                                               ; preds = %64
  call void @_ZN9mapreduce13intermediates9in_memoryIN16prime_calculator8map_taskENS2_11reduce_taskEbNS_16hash_partitionerESt4lessIbENS0_18reduce_null_outputIS3_S4_EEE21const_result_iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %14) #8
  call void @_ZN9mapreduce13intermediates9in_memoryIN16prime_calculator8map_taskENS2_11reduce_taskEbNS_16hash_partitionerESt4lessIbENS0_18reduce_null_outputIS3_S4_EEE21const_result_iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %13) #8
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %15) #8
  invoke void @_ZNK9mapreduce3jobIN16prime_calculator8map_taskENS1_11reduce_taskENS_13null_combinerENS1_13number_sourceIS2_EENS_13intermediates9in_memoryIS2_S3_bNS_16hash_partitionerESt4lessIbENS7_18reduce_null_outputIS2_S3_EEEESD_E13begin_resultsEv(ptr dead_on_unwind nonnull writable sret(%"class.mapreduce::intermediates::in_memory<prime_calculator::map_task, prime_calculator::reduce_task>::const_result_iterator") align 8 %15, ptr noundef nonnull align 8 dereferenceable(56) %11)
          to label %.preheader unwind label %86

.preheader:                                       ; preds = %66, %101
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %16) #8
  invoke void @_ZNK9mapreduce3jobIN16prime_calculator8map_taskENS1_11reduce_taskENS_13null_combinerENS1_13number_sourceIS2_EENS_13intermediates9in_memoryIS2_S3_bNS_16hash_partitionerESt4lessIbENS7_18reduce_null_outputIS2_S3_EEEESD_E11end_resultsEv(ptr dead_on_unwind nonnull writable sret(%"class.mapreduce::intermediates::in_memory<prime_calculator::map_task, prime_calculator::reduce_task>::const_result_iterator") align 8 %16, ptr noundef nonnull align 8 dereferenceable(56) %11)
          to label %67 unwind label %88

67:                                               ; preds = %.preheader
  %68 = invoke noundef zeroext i1 @_ZN5boost9iteratorsneIN9mapreduce13intermediates9in_memoryIN16prime_calculator8map_taskENS5_11reduce_taskEbNS2_16hash_partitionerESt4lessIbENS3_18reduce_null_outputIS6_S7_EEE21const_result_iteratorEKSt4pairIblENS0_21forward_traversal_tagERSH_lSE_SH_SI_SJ_lEENS0_6detail23enable_if_interoperableIT_T4_NS_3mpl6apply2INSK_12always_bool2ESM_SN_E4typeEE4typeERKNS0_15iterator_facadeISM_T0_T1_T2_T3_EERKNSV_ISN_T5_T6_T7_T8_EE(ptr noundef nonnull align 1 dereferenceable(1) %15, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %69 unwind label %90

69:                                               ; preds = %67
  call void @_ZN9mapreduce13intermediates9in_memoryIN16prime_calculator8map_taskENS2_11reduce_taskEbNS_16hash_partitionerESt4lessIbENS0_18reduce_null_outputIS3_S4_EEE21const_result_iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %16) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %16) #8
  br i1 %68, label %93, label %70

70:                                               ; preds = %69
  call void @_ZN9mapreduce13intermediates9in_memoryIN16prime_calculator8map_taskENS2_11reduce_taskEbNS_16hash_partitionerESt4lessIbENS0_18reduce_null_outputIS3_S4_EEE21const_result_iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %15) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %15) #8
  call void @_ZN9mapreduce7resultsD2Ev(ptr noundef nonnull align 8 dereferenceable(176) %12) #8
  call void @llvm.lifetime.end.p0(i64 176, ptr nonnull %12) #8
  call void @_ZN9mapreduce3jobIN16prime_calculator8map_taskENS1_11reduce_taskENS_13null_combinerENS1_13number_sourceIS2_EENS_13intermediates9in_memoryIS2_S3_bNS_16hash_partitionerESt4lessIbENS7_18reduce_null_outputIS2_S3_EEEESD_ED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %11) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #8
  call void @_ZN9mapreduce13specificationD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %3) #8
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %3) #8
  ret i32 0

71:                                               ; preds = %36, %34, %32, %30, %28, %2
  %72 = landingpad { ptr, i32 }
          cleanup
  br label %110

73:                                               ; preds = %43, %38
  %74 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #8
  br label %110

75:                                               ; preds = %45
  %76 = landingpad { ptr, i32 }
          cleanup
  br label %109

77:                                               ; preds = %46
  %78 = landingpad { ptr, i32 }
          cleanup
  br label %108

79:                                               ; preds = %56, %54, %50, %48, %47
  %80 = landingpad { ptr, i32 }
          cleanup
  br label %107

81:                                               ; preds = %57
  %82 = landingpad { ptr, i32 }
          cleanup
  br label %85

83:                                               ; preds = %64, %62, %60, %58
  %84 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN9mapreduce13intermediates9in_memoryIN16prime_calculator8map_taskENS2_11reduce_taskEbNS_16hash_partitionerESt4lessIbENS0_18reduce_null_outputIS3_S4_EEE21const_result_iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %14) #8
  br label %85

85:                                               ; preds = %83, %81
  %.pn = phi { ptr, i32 } [ %84, %83 ], [ %82, %81 ]
  call void @_ZN9mapreduce13intermediates9in_memoryIN16prime_calculator8map_taskENS2_11reduce_taskEbNS_16hash_partitionerESt4lessIbENS0_18reduce_null_outputIS3_S4_EEE21const_result_iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %13) #8
  br label %107

86:                                               ; preds = %66
  %87 = landingpad { ptr, i32 }
          cleanup
  br label %106

88:                                               ; preds = %.preheader
  %89 = landingpad { ptr, i32 }
          cleanup
  br label %92

90:                                               ; preds = %67
  %91 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN9mapreduce13intermediates9in_memoryIN16prime_calculator8map_taskENS2_11reduce_taskEbNS_16hash_partitionerESt4lessIbENS0_18reduce_null_outputIS3_S4_EEE21const_result_iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %16) #8
  br label %92

92:                                               ; preds = %90, %88
  %.pn14 = phi { ptr, i32 } [ %91, %90 ], [ %89, %88 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %16) #8
  br label %105

93:                                               ; preds = %69
  %94 = invoke noundef ptr @_ZNK5boost9iterators6detail20iterator_facade_baseIN9mapreduce13intermediates9in_memoryIN16prime_calculator8map_taskENS6_11reduce_taskEbNS3_16hash_partitionerESt4lessIbENS4_18reduce_null_outputIS7_S8_EEE21const_result_iteratorEKSt4pairIblENS0_21forward_traversal_tagERSI_lLb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %95 unwind label %103

95:                                               ; preds = %93
  %96 = getelementptr inbounds i8, ptr %94, i64 8
  %97 = load i64, ptr %96, align 8, !tbaa !16
  %98 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEl(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %97)
          to label %99 unwind label %103

99:                                               ; preds = %95
  %100 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %98, ptr noundef nonnull @.str.13)
          to label %101 unwind label %103

101:                                              ; preds = %99
  %102 = invoke noundef nonnull align 8 dereferenceable(64) ptr @_ZN5boost9iterators6detail20iterator_facade_baseIN9mapreduce13intermediates9in_memoryIN16prime_calculator8map_taskENS6_11reduce_taskEbNS3_16hash_partitionerESt4lessIbENS4_18reduce_null_outputIS7_S8_EEE21const_result_iteratorEKSt4pairIblENS0_21forward_traversal_tagERSI_lLb0ELb0EEppEv(ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %.preheader unwind label %103, !llvm.loop !19

103:                                              ; preds = %101, %99, %95, %93
  %104 = landingpad { ptr, i32 }
          cleanup
  br label %105

105:                                              ; preds = %103, %92
  %.pn16 = phi { ptr, i32 } [ %104, %103 ], [ %.pn14, %92 ]
  call void @_ZN9mapreduce13intermediates9in_memoryIN16prime_calculator8map_taskENS2_11reduce_taskEbNS_16hash_partitionerESt4lessIbENS0_18reduce_null_outputIS3_S4_EEE21const_result_iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %15) #8
  br label %106

106:                                              ; preds = %105, %86
  %.pn16.pn = phi { ptr, i32 } [ %.pn16, %105 ], [ %87, %86 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %15) #8
  br label %107

107:                                              ; preds = %106, %85, %79
  %.pn16.pn.pn = phi { ptr, i32 } [ %.pn16.pn, %106 ], [ %.pn, %85 ], [ %80, %79 ]
  call void @_ZN9mapreduce7resultsD2Ev(ptr noundef nonnull align 8 dereferenceable(176) %12) #8
  br label %108

108:                                              ; preds = %107, %77
  %.pn16.pn.pn.pn = phi { ptr, i32 } [ %.pn16.pn.pn, %107 ], [ %78, %77 ]
  call void @llvm.lifetime.end.p0(i64 176, ptr nonnull %12) #8
  call void @_ZN9mapreduce3jobIN16prime_calculator8map_taskENS1_11reduce_taskENS_13null_combinerENS1_13number_sourceIS2_EENS_13intermediates9in_memoryIS2_S3_bNS_16hash_partitionerESt4lessIbENS7_18reduce_null_outputIS2_S3_EEEESD_ED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %11) #8
  br label %109

109:                                              ; preds = %108, %75
  %.pn16.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn16.pn.pn.pn, %108 ], [ %76, %75 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %11) #8
  br label %110

110:                                              ; preds = %109, %73, %71
  %.pn16.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn16.pn.pn.pn.pn, %109 ], [ %74, %73 ], [ %72, %71 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #8
  call void @_ZN9mapreduce13specificationD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %3) #8
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %3) #8
  resume { ptr, i32 } %.pn16.pn.pn.pn.pn.pn
}

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

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

; Function Attrs: nounwind
declare noundef i32 @_ZNSt6thread20hardware_concurrencyEv() local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN16prime_calculator13number_sourceINS_8map_taskEEC2Elll(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef, i64 noundef, i64 noundef) unnamed_addr #6 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9mapreduce3jobIN16prime_calculator8map_taskENS1_11reduce_taskENS_13null_combinerENS1_13number_sourceIS2_EENS_13intermediates9in_memoryIS2_S3_bNS_16hash_partitionerESt4lessIbENS7_18reduce_null_outputIS2_S3_EEEESD_EC2ERS6_RKNS_13specificationE(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN9mapreduce7resultsC2Ev(ptr noundef nonnull align 8 dereferenceable(176)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9mapreduce3jobIN16prime_calculator8map_taskENS1_11reduce_taskENS_13null_combinerENS1_13number_sourceIS2_EENS_13intermediates9in_memoryIS2_S3_bNS_16hash_partitionerESt4lessIbENS7_18reduce_null_outputIS2_S3_EEEESD_E3runINS_15schedule_policy12cpu_parallelISF_EEEEvRNS_7resultsE(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(176)) local_unnamed_addr #3 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZSt8distanceIN9mapreduce13intermediates9in_memoryIN16prime_calculator8map_taskENS3_11reduce_taskEbNS0_16hash_partitionerESt4lessIbENS1_18reduce_null_outputIS4_S5_EEE21const_result_iteratorEENSt15iterator_traitsIT_E15difference_typeESE_SE_(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK9mapreduce3jobIN16prime_calculator8map_taskENS1_11reduce_taskENS_13null_combinerENS1_13number_sourceIS2_EENS_13intermediates9in_memoryIS2_S3_bNS_16hash_partitionerESt4lessIbENS7_18reduce_null_outputIS2_S3_EEEESD_E13begin_resultsEv(ptr dead_on_unwind noalias writable sret(%"class.mapreduce::intermediates::in_memory<prime_calculator::map_task, prime_calculator::reduce_task>::const_result_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK9mapreduce3jobIN16prime_calculator8map_taskENS1_11reduce_taskENS_13null_combinerENS1_13number_sourceIS2_EENS_13intermediates9in_memoryIS2_S3_bNS_16hash_partitionerESt4lessIbENS7_18reduce_null_outputIS2_S3_EEEESD_E11end_resultsEv(ptr dead_on_unwind noalias writable sret(%"class.mapreduce::intermediates::in_memory<prime_calculator::map_task, prime_calculator::reduce_task>::const_result_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN9mapreduce13intermediates9in_memoryIN16prime_calculator8map_taskENS2_11reduce_taskEbNS_16hash_partitionerESt4lessIbENS0_18reduce_null_outputIS3_S4_EEE21const_result_iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(64)) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5boost9iteratorsneIN9mapreduce13intermediates9in_memoryIN16prime_calculator8map_taskENS5_11reduce_taskEbNS2_16hash_partitionerESt4lessIbENS3_18reduce_null_outputIS6_S7_EEE21const_result_iteratorEKSt4pairIblENS0_21forward_traversal_tagERSH_lSE_SH_SI_SJ_lEENS0_6detail23enable_if_interoperableIT_T4_NS_3mpl6apply2INSK_12always_bool2ESM_SN_E4typeEE4typeERKNS0_15iterator_facadeISM_T0_T1_T2_T3_EERKNSV_ISN_T5_T6_T7_T8_EE(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK5boost9iterators6detail20iterator_facade_baseIN9mapreduce13intermediates9in_memoryIN16prime_calculator8map_taskENS6_11reduce_taskEbNS3_16hash_partitionerESt4lessIbENS4_18reduce_null_outputIS7_S8_EEE21const_result_iteratorEKSt4pairIblENS0_21forward_traversal_tagERSI_lLb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(64) ptr @_ZN5boost9iterators6detail20iterator_facade_baseIN9mapreduce13intermediates9in_memoryIN16prime_calculator8map_taskENS6_11reduce_taskEbNS3_16hash_partitionerESt4lessIbENS4_18reduce_null_outputIS7_S8_EEE21const_result_iteratorEKSt4pairIblENS0_21forward_traversal_tagERSI_lLb0ELb0EEppEv(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN9mapreduce7resultsD2Ev(ptr noundef nonnull align 8 dereferenceable(176)) unnamed_addr #4 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN9mapreduce13specificationD2Ev(ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #4 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { 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 #4 = { 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 #5 = { nounwind "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 = { 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 = { "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 #8 = { 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, !11, i64 0}
!10 = !{!"_ZTSN9mapreduce13specificationE", !11, i64 0, !11, i64 8, !12, i64 16, !12, i64 48, !11, i64 80}
!11 = !{!"long", !7, i64 0}
!12 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !13, i64 0, !11, i64 8, !7, i64 16}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !14, i64 0}
!14 = !{!"any pointer", !7, i64 0}
!15 = !{!10, !11, i64 8}
!16 = !{!17, !11, i64 8}
!17 = !{!"_ZTSSt4pairIblE", !18, i64 0, !11, i64 8}
!18 = !{!"bool", !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass