; LLVM IR from OAID/AutoKernel :: AutoSearch/src/adams2019 (test_perfect_hash_map)

; 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::mersenne_twister_engine" = type { [624 x i64], i64 }
%class.PerfectHashMap = type { %"class.std::vector", i32, i32 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<const Key *, int>, std::allocator<std::pair<const Key *, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<const Key *, int>, std::allocator<std::pair<const Key *, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<const Key *, int>, std::allocator<std::pair<const Key *, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<const Key *, int>, std::allocator<std::pair<const Key *, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<const Key *, std::pair<const Key *const, int>, std::_Select1st<std::pair<const Key *const, int>>, std::less<const Key *>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<const Key *, std::pair<const Key *const, int>, std::_Select1st<std::pair<const Key *const, int>>, std::less<const Key *>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<Key, std::allocator<Key>>::_Vector_impl" }
%"struct.std::_Vector_base<Key, std::allocator<Key>>::_Vector_impl" = type { %"struct.std::_Vector_base<Key, std::allocator<Key>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Key, std::allocator<Key>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.std::pair.8" = type <{ ptr, i32, [4 x i8] }>
%"struct.std::pair" = type <{ %"struct.std::_Rb_tree_iterator", i8, [7 x i8] }>
%"struct.std::_Rb_tree_iterator" = type { ptr }
%"struct.PerfectHashMap<Key, int>::iterator" = type { ptr, ptr }

@.str = external hidden unnamed_addr constant [10 x i8], align 1
@stderr = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [30 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca %"class.std::mersenne_twister_engine", align 8
  %7 = alloca i32, align 4
  %8 = alloca %class.PerfectHashMap, align 8
  %9 = alloca %"class.std::map", align 8
  %10 = alloca %"class.std::vector.3", align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca %"struct.std::pair.8", align 8
  %21 = alloca ptr, align 8
  %22 = alloca %"struct.std::pair", align 8
  %23 = alloca %"class.std::map", align 8
  %24 = alloca %"struct.PerfectHashMap<Key, int>::iterator", align 8
  %25 = alloca %"struct.PerfectHashMap<Key, int>::iterator", align 8
  %26 = alloca %"struct.std::pair.8", align 8
  %27 = alloca ptr, align 8
  %28 = alloca %"struct.std::pair", align 8
  %29 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %30 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %31 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %32 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %33 = alloca %"struct.std::_Rb_tree_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 5000, ptr %6) #8
  call void @_ZNSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEC2Em(ptr noundef nonnull align 8 dereferenceable(5000) %6, i64 noundef 0)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  %34 = load i32, ptr %4, align 4, !tbaa !5
  %35 = icmp sgt i32 %34, 1
  br i1 %35, label %36, label %42

36:                                               ; preds = %2
  %37 = load ptr, ptr %5, align 8, !tbaa !9
  %38 = getelementptr inbounds ptr, ptr %37, i64 1
  %39 = load ptr, ptr %38, align 8, !tbaa !9
  %40 = call i32 @atoi(ptr noundef %39) #9
  %41 = sext i32 %40 to i64
  br label %44

42:                                               ; preds = %2
  %43 = call i64 @time(ptr noundef null) #8
  br label %44

44:                                               ; preds = %42, %36
  %45 = phi i64 [ %41, %36 ], [ %43, %42 ]
  %46 = trunc i64 %45 to i32
  store i32 %46, ptr %7, align 4, !tbaa !5
  %47 = load i32, ptr %7, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  call void @_ZNSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EE4seedEm(ptr noundef nonnull align 8 dereferenceable(5000) %6, i64 noundef %48)
  %49 = load i32, ptr %7, align 4, !tbaa !5
  %50 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %49)
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #8
  call void @_ZN14PerfectHashMapI3KeyiLi4E22PerfectHashMapAsserterEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  call void @llvm.lifetime.start.p0(i64 48, ptr %9) #8
  call void @_ZNSt3mapIPK3KeyiSt4lessIS2_ESaISt4pairIKS2_iEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #8
  call void @_ZNSt6vectorI3KeySaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  store i32 100, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %51

51:                                               ; preds = %58, %44
  %52 = load i32, ptr %12, align 4, !tbaa !5
  %53 = icmp slt i32 %52, 100
  br i1 %53, label %55, label %54

54:                                               ; preds = %51
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %65

55:                                               ; preds = %51
  %56 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI3KeySaIS0_EE12emplace_backIJRiRKiEEERS0_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %57 unwind label %61

57:                                               ; preds = %55
  br label %58

58:                                               ; preds = %57
  %59 = load i32, ptr %12, align 4, !tbaa !5
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %12, align 4, !tbaa !5
  br label %51, !llvm.loop !11

61:                                               ; preds = %55
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %13, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %231

65:                                               ; preds = %54
  %66 = call ptr @_ZNSt6vectorI3KeySaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  %67 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  store ptr %66, ptr %67, align 8
  %68 = call ptr @_ZNSt6vectorI3KeySaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  %69 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  store ptr %68, ptr %69, align 8
  %70 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  %71 = load ptr, ptr %70, align 8
  %72 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  %73 = load ptr, ptr %72, align 8
  invoke void @_ZSt7shuffleIN9__gnu_cxx17__normal_iteratorIP3KeySt6vectorIS2_SaIS2_EEEERSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEvT_SB_OT0_(ptr %71, ptr %73, ptr noundef nonnull align 8 dereferenceable(5000) %6)
          to label %74 unwind label %79

74:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %75

75:                                               ; preds = %220, %74
  %76 = load i32, ptr %17, align 4, !tbaa !5
  %77 = icmp slt i32 %76, 10000
  br i1 %77, label %83, label %78

78:                                               ; preds = %75
  store i32 5, ptr %18, align 4
  br label %224

79:                                               ; preds = %226, %65
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %13, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %14, align 4
  br label %231

83:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  %84 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEclEv(ptr noundef nonnull align 8 dereferenceable(5000) %6)
          to label %85 unwind label %115

85:                                               ; preds = %83
  %86 = urem i64 %84, 100
  %87 = trunc i64 %86 to i32
  store i32 %87, ptr %19, align 4, !tbaa !5
  %88 = load i32, ptr %19, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI3KeySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %89) #8
  %91 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN14PerfectHashMapI3KeyiLi4E22PerfectHashMapAsserterE6insertEPKS0_RKi(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef %90, ptr noundef nonnull align 4 dereferenceable(4) %19)
          to label %92 unwind label %115

92:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %93 = load i32, ptr %19, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI3KeySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %94) #8
  store ptr %95, ptr %21, align 8, !tbaa !9
  invoke void @_ZNSt4pairIKPK3KeyiEC2IPS0_RiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS9_SA_EEEbE4typeELb1EEEOS9_OSA_(ptr noundef nonnull align 8 dereferenceable(12) %20, ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 4 dereferenceable(4) %19)
          to label %96 unwind label %119

96:                                               ; preds = %92
  %97 = invoke { ptr, i8 } @_ZNSt3mapIPK3KeyiSt4lessIS2_ESaISt4pairIKS2_iEEE6insertEOS7_(ptr noundef nonnull align 8 dereferenceable(48) %9, ptr noundef nonnull align 8 dereferenceable(12) %20)
          to label %98 unwind label %119

98:                                               ; preds = %96
  %99 = getelementptr inbounds { ptr, i8 }, ptr %22, i32 0, i32 0
  %100 = extractvalue { ptr, i8 } %97, 0
  store ptr %100, ptr %99, align 8
  %101 = getelementptr inbounds { ptr, i8 }, ptr %22, i32 0, i32 1
  %102 = extractvalue { ptr, i8 } %97, 1
  store i8 %102, ptr %101, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #8
  %103 = invoke noundef i64 @_ZNK14PerfectHashMapI3KeyiLi4E22PerfectHashMapAsserterE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %104 unwind label %115

104:                                              ; preds = %98
  %105 = call noundef i64 @_ZNKSt3mapIPK3KeyiSt4lessIS2_ESaISt4pairIKS2_iEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %9) #8
  %106 = icmp ne i64 %103, %105
  br i1 %106, label %107, label %123

107:                                              ; preds = %104
  %108 = load ptr, ptr @stderr, align 8, !tbaa !9
  %109 = invoke noundef i64 @_ZNK14PerfectHashMapI3KeyiLi4E22PerfectHashMapAsserterE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %110 unwind label %115

110:                                              ; preds = %107
  %111 = trunc i64 %109 to i32
  %112 = call noundef i64 @_ZNKSt3mapIPK3KeyiSt4lessIS2_ESaISt4pairIKS2_iEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %9) #8
  %113 = trunc i64 %112 to i32
  %114 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %108, ptr noundef @.str.1, i32 noundef %111, i32 noundef %113) #8
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %18, align 4
  br label %217

115:                                              ; preds = %107, %98, %85, %83
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %13, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %14, align 4
  br label %223

119:                                              ; preds = %96, %92
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %13, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #8
  br label %223

123:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 48, ptr %23) #8
  call void @_ZNSt3mapIPK3KeyiSt4lessIS2_ESaISt4pairIKS2_iEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %23) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #8
  %124 = invoke { ptr, ptr } @_ZN14PerfectHashMapI3KeyiLi4E22PerfectHashMapAsserterE5beginEv(ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %125 unwind label %140

125:                                              ; preds = %123
  %126 = getelementptr inbounds { ptr, ptr }, ptr %24, i32 0, i32 0
  %127 = extractvalue { ptr, ptr } %124, 0
  store ptr %127, ptr %126, align 8
  %128 = getelementptr inbounds { ptr, ptr }, ptr %24, i32 0, i32 1
  %129 = extractvalue { ptr, ptr } %124, 1
  store ptr %129, ptr %128, align 8
  br label %130

130:                                              ; preds = %161, %125
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #8
  %131 = invoke { ptr, ptr } @_ZN14PerfectHashMapI3KeyiLi4E22PerfectHashMapAsserterE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %132 unwind label %144

132:                                              ; preds = %130
  %133 = getelementptr inbounds { ptr, ptr }, ptr %25, i32 0, i32 0
  %134 = extractvalue { ptr, ptr } %131, 0
  store ptr %134, ptr %133, align 8
  %135 = getelementptr inbounds { ptr, ptr }, ptr %25, i32 0, i32 1
  %136 = extractvalue { ptr, ptr } %131, 1
  store ptr %136, ptr %135, align 8
  %137 = invoke noundef zeroext i1 @_ZNK14PerfectHashMapI3KeyiLi4E22PerfectHashMapAsserterE8iteratorneERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 8 dereferenceable(16) %25)
          to label %138 unwind label %144

138:                                              ; preds = %132
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #8
  br i1 %137, label %148, label %139

139:                                              ; preds = %138
  store i32 8, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #8
  br label %167

140:                                              ; preds = %160, %123
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %13, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %14, align 4
  br label %166

144:                                              ; preds = %132, %130
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %13, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #8
  br label %166

148:                                              ; preds = %138
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  %149 = invoke noundef ptr @_ZNK14PerfectHashMapI3KeyiLi4E22PerfectHashMapAsserterE8iterator3keyEv(ptr noundef nonnull align 8 dereferenceable(16) %24)
          to label %150 unwind label %162

150:                                              ; preds = %148
  store ptr %149, ptr %27, align 8, !tbaa !9
  %151 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK14PerfectHashMapI3KeyiLi4E22PerfectHashMapAsserterE8iterator5valueEv(ptr noundef nonnull align 8 dereferenceable(16) %24)
          to label %152 unwind label %162

152:                                              ; preds = %150
  invoke void @_ZNSt4pairIKPK3KeyiEC2IS2_RiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS8_S9_EEEbE4typeELb1EEEOS8_OS9_(ptr noundef nonnull align 8 dereferenceable(12) %26, ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull align 4 dereferenceable(4) %151)
          to label %153 unwind label %162

153:                                              ; preds = %152
  %154 = invoke { ptr, i8 } @_ZNSt3mapIPK3KeyiSt4lessIS2_ESaISt4pairIKS2_iEEE6insertEOS7_(ptr noundef nonnull align 8 dereferenceable(48) %23, ptr noundef nonnull align 8 dereferenceable(12) %26)
          to label %155 unwind label %162

155:                                              ; preds = %153
  %156 = getelementptr inbounds { ptr, i8 }, ptr %28, i32 0, i32 0
  %157 = extractvalue { ptr, i8 } %154, 0
  store ptr %157, ptr %156, align 8
  %158 = getelementptr inbounds { ptr, i8 }, ptr %28, i32 0, i32 1
  %159 = extractvalue { ptr, i8 } %154, 1
  store i8 %159, ptr %158, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #8
  br label %160

160:                                              ; preds = %155
  invoke void @_ZN14PerfectHashMapI3KeyiLi4E22PerfectHashMapAsserterE8iteratorppEi(ptr noundef nonnull align 8 dereferenceable(16) %24, i32 noundef 0)
          to label %161 unwind label %140

161:                                              ; preds = %160
  br label %130, !llvm.loop !13

162:                                              ; preds = %153, %152, %150, %148
  %163 = landingpad { ptr, i32 }
          cleanup
  %164 = extractvalue { ptr, i32 } %163, 0
  store ptr %164, ptr %13, align 8
  %165 = extractvalue { ptr, i32 } %163, 1
  store i32 %165, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #8
  br label %166

166:                                              ; preds = %162, %144, %140
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #8
  call void @_ZNSt3mapIPK3KeyiSt4lessIS2_ESaISt4pairIKS2_iEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %23) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %23) #8
  br label %223

167:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #8
  %168 = call ptr @_ZNSt3mapIPK3KeyiSt4lessIS2_ESaISt4pairIKS2_iEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %23) #8
  %169 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %29, i32 0, i32 0
  store ptr %168, ptr %169, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #8
  %170 = call ptr @_ZNSt3mapIPK3KeyiSt4lessIS2_ESaISt4pairIKS2_iEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %9) #8
  %171 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %30, i32 0, i32 0
  store ptr %170, ptr %171, align 8
  br label %172

172:                                              ; preds = %210, %167
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #8
  %173 = call ptr @_ZNSt3mapIPK3KeyiSt4lessIS2_ESaISt4pairIKS2_iEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %23) #8
  %174 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %31, i32 0, i32 0
  store ptr %173, ptr %174, align 8
  %175 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKPK3KeyiEES8_(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %31) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  br i1 %175, label %176, label %215

176:                                              ; preds = %172
  %177 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPK3KeyiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %29) #8
  %178 = getelementptr inbounds %"struct.std::pair.8", ptr %177, i32 0, i32 0
  %179 = load ptr, ptr %178, align 8, !tbaa !14
  %180 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPK3KeyiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %30) #8
  %181 = getelementptr inbounds %"struct.std::pair.8", ptr %180, i32 0, i32 0
  %182 = load ptr, ptr %181, align 8, !tbaa !14
  %183 = icmp ne ptr %179, %182
  br i1 %183, label %184, label %193

184:                                              ; preds = %176
  %185 = load ptr, ptr @stderr, align 8, !tbaa !9
  %186 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPK3KeyiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %29) #8
  %187 = getelementptr inbounds %"struct.std::pair.8", ptr %186, i32 0, i32 0
  %188 = load ptr, ptr %187, align 8, !tbaa !14
  %189 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPK3KeyiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %30) #8
  %190 = getelementptr inbounds %"struct.std::pair.8", ptr %189, i32 0, i32 0
  %191 = load ptr, ptr %190, align 8, !tbaa !14
  %192 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %185, ptr noundef @.str.2, ptr noundef %188, ptr noundef %191) #8
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %18, align 4
  br label %216

193:                                              ; preds = %176
  %194 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPK3KeyiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %29) #8
  %195 = getelementptr inbounds %"struct.std::pair.8", ptr %194, i32 0, i32 1
  %196 = load i32, ptr %195, align 8, !tbaa !16
  %197 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPK3KeyiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %30) #8
  %198 = getelementptr inbounds %"struct.std::pair.8", ptr %197, i32 0, i32 1
  %199 = load i32, ptr %198, align 8, !tbaa !16
  %200 = icmp ne i32 %196, %199
  br i1 %200, label %201, label %210

201:                                              ; preds = %193
  %202 = load ptr, ptr @stderr, align 8, !tbaa !9
  %203 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPK3KeyiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %29) #8
  %204 = getelementptr inbounds %"struct.std::pair.8", ptr %203, i32 0, i32 1
  %205 = load i32, ptr %204, align 8, !tbaa !16
  %206 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPK3KeyiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %30) #8
  %207 = getelementptr inbounds %"struct.std::pair.8", ptr %206, i32 0, i32 1
  %208 = load i32, ptr %207, align 8, !tbaa !16
  %209 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %202, ptr noundef @.str.3, i32 noundef %205, i32 noundef %208) #8
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %18, align 4
  br label %216

210:                                              ; preds = %193
  %211 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKPK3KeyiEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %29, i32 noundef 0) #8
  %212 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %32, i32 0, i32 0
  store ptr %211, ptr %212, align 8
  %213 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKPK3KeyiEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %30, i32 noundef 0) #8
  %214 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %33, i32 0, i32 0
  store ptr %213, ptr %214, align 8
  br label %172, !llvm.loop !17

215:                                              ; preds = %172
  store i32 0, ptr %18, align 4
  br label %216

216:                                              ; preds = %215, %201, %184
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  call void @_ZNSt3mapIPK3KeyiSt4lessIS2_ESaISt4pairIKS2_iEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %23) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %23) #8
  br label %217

217:                                              ; preds = %216, %110
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  %218 = load i32, ptr %18, align 4
  switch i32 %218, label %224 [
    i32 0, label %219
  ]

219:                                              ; preds = %217
  br label %220

220:                                              ; preds = %219
  %221 = load i32, ptr %17, align 4, !tbaa !5
  %222 = add nsw i32 %221, 1
  store i32 %222, ptr %17, align 4, !tbaa !5
  br label %75, !llvm.loop !18

223:                                              ; preds = %166, %119, %115
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %231

224:                                              ; preds = %217, %78
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  %225 = load i32, ptr %18, align 4
  switch i32 %225, label %229 [
    i32 5, label %226
  ]

226:                                              ; preds = %224
  %227 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.4)
          to label %228 unwind label %79

228:                                              ; preds = %226
  store i32 0, ptr %3, align 4
  store i32 1, ptr %18, align 4
  br label %229

229:                                              ; preds = %228, %224
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @_ZNSt6vectorI3KeySaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #8
  call void @_ZNSt3mapIPK3KeyiSt4lessIS2_ESaISt4pairIKS2_iEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %9) #8
  call void @_ZN14PerfectHashMapI3KeyiLi4E22PerfectHashMapAsserterED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 5000, ptr %6) #8
  %230 = load i32, ptr %3, align 4
  ret i32 %230

231:                                              ; preds = %223, %79, %61
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @_ZNSt6vectorI3KeySaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #8
  call void @_ZNSt3mapIPK3KeyiSt4lessIS2_ESaISt4pairIKS2_iEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %9) #8
  call void @_ZN14PerfectHashMapI3KeyiLi4E22PerfectHashMapAsserterED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 5000, ptr %6) #8
  br label %232

232:                                              ; preds = %231
  %233 = load ptr, ptr %13, align 8
  %234 = load i32, ptr %14, align 4
  %235 = insertvalue { ptr, i32 } poison, ptr %233, 0
  %236 = insertvalue { ptr, i32 } %235, i32 %234, 1
  resume { ptr, i32 } %236
}

; 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 dso_local void @_ZNSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEC2Em(ptr noundef nonnull align 8 dereferenceable(5000), i64 noundef) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr noundef nonnull) #3

; Function Attrs: nounwind
declare i64 @time(ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EE4seedEm(ptr noundef nonnull align 8 dereferenceable(5000), i64 noundef) #2 align 2

declare i32 @printf(ptr noundef, ...) #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapIPK3KeyiSt4lessIS2_ESaISt4pairIKS2_iEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #7 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI3KeySaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #7 align 2

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZSt7shuffleIN9__gnu_cxx17__normal_iteratorIP3KeySt6vectorIS2_SaIS2_EEEERSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEvT_SB_OT0_(ptr, ptr, ptr noundef nonnull align 8 dereferenceable(5000)) #2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEclEv(ptr noundef nonnull align 8 dereferenceable(5000)) #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI3KeySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #7 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3mapIPK3KeyiSt4lessIS2_ESaISt4pairIKS2_iEEE6insertEOS7_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(12)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIKPK3KeyiEC2IPS0_RiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS9_SA_EEEbE4typeELb1EEEOS9_OSA_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #7 align 2

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

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

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #4

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN14PerfectHashMapI3KeyiLi4E22PerfectHashMapAsserterE5beginEv(ptr noundef nonnull align 8 dereferenceable(32)) #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, ptr } @_ZN14PerfectHashMapI3KeyiLi4E22PerfectHashMapAsserterE3endEv(ptr noundef nonnull align 8 dereferenceable(32)) #7 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIKPK3KeyiEC2IS2_RiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS8_S9_EEEbE4typeELb1EEEOS8_OS9_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #7 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN14PerfectHashMapI3KeyiLi4E22PerfectHashMapAsserterE8iteratorppEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #7 align 2

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapIPK3KeyiSt4lessIS2_ESaISt4pairIKS2_iEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #7 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI3KeySaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #7 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN14PerfectHashMapI3KeyiLi4E22PerfectHashMapAsserterED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) 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 = { inlinehint mustprogress nounwind willreturn memory(read) 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 = { 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 #5 = { "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 = { 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 #8 = { nounwind }
attributes #9 = { nounwind willreturn memory(read) }

!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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = !{!15, !10, i64 0}
!15 = !{!"_ZTSSt4pairIKPK3KeyiE", !10, i64 0, !6, i64 8}
!16 = !{!15, !6, i64 8}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !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::mersenne_twister_engine" = type { [624 x i64], i64 }
%class.PerfectHashMap = type { %"class.std::vector", i32, i32 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<const Key *, int>, std::allocator<std::pair<const Key *, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<const Key *, int>, std::allocator<std::pair<const Key *, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<const Key *, int>, std::allocator<std::pair<const Key *, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<const Key *, int>, std::allocator<std::pair<const Key *, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<const Key *, std::pair<const Key *const, int>, std::_Select1st<std::pair<const Key *const, int>>, std::less<const Key *>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<const Key *, std::pair<const Key *const, int>, std::_Select1st<std::pair<const Key *const, int>>, std::less<const Key *>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<Key, std::allocator<Key>>::_Vector_impl" }
%"struct.std::_Vector_base<Key, std::allocator<Key>>::_Vector_impl" = type { %"struct.std::_Vector_base<Key, std::allocator<Key>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Key, std::allocator<Key>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair.8" = type <{ ptr, i32, [4 x i8] }>
%"struct.PerfectHashMap<Key, int>::iterator" = type { ptr, ptr }
%"struct.std::_Rb_tree_iterator" = type { ptr }

@.str = external hidden unnamed_addr constant [10 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [30 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef range(i32 -1, 1) i32 @main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::mersenne_twister_engine", align 8
  %4 = alloca %class.PerfectHashMap, align 8
  %5 = alloca %"class.std::map", align 8
  %6 = alloca %"class.std::vector.3", align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %"struct.std::pair.8", align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"class.std::map", align 8
  %13 = alloca %"struct.PerfectHashMap<Key, int>::iterator", align 8
  %14 = alloca %"struct.PerfectHashMap<Key, int>::iterator", align 8
  %15 = alloca %"struct.std::pair.8", align 8
  %16 = alloca ptr, align 8
  %17 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %18 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %19 = alloca %"struct.std::_Rb_tree_iterator", align 8
  call void @llvm.lifetime.start.p0(i64 5000, ptr nonnull %3) #8
  call void @_ZNSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEC2Em(ptr noundef nonnull align 8 dereferenceable(5000) %3, i64 noundef 0)
  %20 = icmp sgt i32 %0, 1
  br i1 %20, label %21, label %26

21:                                               ; preds = %2
  %22 = getelementptr inbounds i8, ptr %1, i64 8
  %23 = load ptr, ptr %22, align 8, !tbaa !5
  %24 = call i32 @atoi(ptr nocapture noundef %23) #9
  %25 = zext i32 %24 to i64
  br label %28

26:                                               ; preds = %2
  %27 = call i64 @time(ptr noundef null) #8
  br label %28

28:                                               ; preds = %26, %21
  %29 = phi i64 [ %25, %21 ], [ %27, %26 ]
  %30 = trunc i64 %29 to i32
  %sext = shl i64 %29, 32
  %31 = ashr exact i64 %sext, 32
  call void @_ZNSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EE4seedEm(ptr noundef nonnull align 8 dereferenceable(5000) %3, i64 noundef %31)
  %32 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %30)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #8
  call void @_ZN14PerfectHashMapI3KeyiLi4E22PerfectHashMapAsserterEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #8
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %5) #8
  call void @_ZNSt3mapIPK3KeyiSt4lessIS2_ESaISt4pairIKS2_iEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #8
  call void @_ZNSt6vectorI3KeySaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #8
  store i32 100, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #8
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %38

33:                                               ; preds = %40
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #8
  %34 = call ptr @_ZNSt6vectorI3KeySaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  %35 = call ptr @_ZNSt6vectorI3KeySaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  invoke void @_ZSt7shuffleIN9__gnu_cxx17__normal_iteratorIP3KeySt6vectorIS2_SaIS2_EEEERSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEvT_SB_OT0_(ptr %34, ptr %35, ptr noundef nonnull align 8 dereferenceable(5000) %3)
          to label %.preheader unwind label %46

.preheader:                                       ; preds = %33
  %36 = getelementptr inbounds i8, ptr %13, i64 8
  %37 = getelementptr inbounds i8, ptr %14, i64 8
  br label %48

38:                                               ; preds = %28, %40
  %39 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI3KeySaIS0_EE12emplace_backIJRiRKiEEERS0_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %40 unwind label %44

40:                                               ; preds = %38
  %41 = load i32, ptr %8, align 4, !tbaa !9
  %42 = add nsw i32 %41, 1
  store i32 %42, ptr %8, align 4, !tbaa !9
  %43 = icmp slt i32 %41, 99
  br i1 %43, label %38, label %33, !llvm.loop !11

44:                                               ; preds = %38
  %45 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #8
  br label %136

46:                                               ; preds = %33
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %136

48:                                               ; preds = %.preheader, %._crit_edge46
  %.02347 = phi i32 [ 0, %.preheader ], [ %131, %._crit_edge46 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #8
  %49 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEclEv(ptr noundef nonnull align 8 dereferenceable(5000) %3)
          to label %50 unwind label %69

50:                                               ; preds = %48
  %51 = urem i64 %49, 100
  %52 = trunc nuw nsw i64 %51 to i32
  store i32 %52, ptr %9, align 4, !tbaa !9
  %53 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI3KeySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %51) #8
  %54 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN14PerfectHashMapI3KeyiLi4E22PerfectHashMapAsserterE6insertEPKS0_RKi(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull %53, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %55 unwind label %69

55:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #8
  %56 = load i32, ptr %9, align 4, !tbaa !9
  %57 = sext i32 %56 to i64
  %58 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI3KeySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %57) #8
  store ptr %58, ptr %11, align 8, !tbaa !5
  call void @_ZNSt4pairIKPK3KeyiEC2IPS0_RiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS9_SA_EEEbE4typeELb1EEEOS9_OSA_(ptr noundef nonnull align 8 dereferenceable(12) %10, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %59 = invoke { ptr, i8 } @_ZNSt3mapIPK3KeyiSt4lessIS2_ESaISt4pairIKS2_iEEE6insertEOS7_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 8 dereferenceable(12) %10)
          to label %60 unwind label %71

60:                                               ; preds = %55
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #8
  %61 = call noundef i64 @_ZNK14PerfectHashMapI3KeyiLi4E22PerfectHashMapAsserterE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %4)
  %62 = call noundef i64 @_ZNKSt3mapIPK3KeyiSt4lessIS2_ESaISt4pairIKS2_iEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #8
  %.not = icmp eq i64 %61, %62
  br i1 %.not, label %73, label %.thread42

.thread42:                                        ; preds = %60
  %63 = load ptr, ptr @stderr, align 8, !tbaa !5
  %64 = call noundef i64 @_ZNK14PerfectHashMapI3KeyiLi4E22PerfectHashMapAsserterE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %4)
  %65 = trunc i64 %64 to i32
  %66 = call noundef i64 @_ZNKSt3mapIPK3KeyiSt4lessIS2_ESaISt4pairIKS2_iEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #8
  %67 = trunc i64 %66 to i32
  %68 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %63, ptr noundef nonnull @.str.1, i32 noundef %65, i32 noundef %67) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #8
  br label %135

69:                                               ; preds = %50, %48
  %70 = landingpad { ptr, i32 }
          cleanup
  br label %132

71:                                               ; preds = %55
  %72 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #8
  br label %132

73:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %12) #8
  call void @_ZNSt3mapIPK3KeyiSt4lessIS2_ESaISt4pairIKS2_iEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %12) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #8
  %74 = invoke { ptr, ptr } @_ZN14PerfectHashMapI3KeyiLi4E22PerfectHashMapAsserterE5beginEv(ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %75 unwind label %86

75:                                               ; preds = %73
  %76 = extractvalue { ptr, ptr } %74, 0
  store ptr %76, ptr %13, align 8
  %77 = extractvalue { ptr, ptr } %74, 1
  store ptr %77, ptr %36, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #8
  %78 = call { ptr, ptr } @_ZN14PerfectHashMapI3KeyiLi4E22PerfectHashMapAsserterE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %4)
  %79 = extractvalue { ptr, ptr } %78, 0
  store ptr %79, ptr %14, align 8
  %80 = extractvalue { ptr, ptr } %78, 1
  store ptr %80, ptr %37, align 8
  %81 = call noundef zeroext i1 @_ZNK14PerfectHashMapI3KeyiLi4E22PerfectHashMapAsserterE8iteratorneERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(16) %14)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #8
  br i1 %81, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %91, %75
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #8
  %82 = call ptr @_ZNSt3mapIPK3KeyiSt4lessIS2_ESaISt4pairIKS2_iEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %12) #8
  store ptr %82, ptr %17, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #8
  %83 = call ptr @_ZNSt3mapIPK3KeyiSt4lessIS2_ESaISt4pairIKS2_iEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #8
  store ptr %83, ptr %18, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #8
  %84 = call ptr @_ZNSt3mapIPK3KeyiSt4lessIS2_ESaISt4pairIKS2_iEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %12) #8
  store ptr %84, ptr %19, align 8
  %85 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKPK3KeyiEES8_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #8
  br i1 %85, label %.lr.ph45, label %._crit_edge46

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

.lr.ph:                                           ; preds = %75, %91
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #8
  %88 = call noundef ptr @_ZNK14PerfectHashMapI3KeyiLi4E22PerfectHashMapAsserterE8iterator3keyEv(ptr noundef nonnull align 8 dereferenceable(16) %13)
  store ptr %88, ptr %16, align 8, !tbaa !5
  %89 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK14PerfectHashMapI3KeyiLi4E22PerfectHashMapAsserterE8iterator5valueEv(ptr noundef nonnull align 8 dereferenceable(16) %13)
  call void @_ZNSt4pairIKPK3KeyiEC2IS2_RiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS8_S9_EEEbE4typeELb1EEEOS8_OS9_(ptr noundef nonnull align 8 dereferenceable(12) %15, ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(4) %89)
  %90 = invoke { ptr, i8 } @_ZNSt3mapIPK3KeyiSt4lessIS2_ESaISt4pairIKS2_iEEE6insertEOS7_(ptr noundef nonnull align 8 dereferenceable(48) %12, ptr noundef nonnull align 8 dereferenceable(12) %15)
          to label %91 unwind label %96

91:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #8
  call void @_ZN14PerfectHashMapI3KeyiLi4E22PerfectHashMapAsserterE8iteratorppEi(ptr noundef nonnull align 8 dereferenceable(16) %13, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #8
  %92 = call { ptr, ptr } @_ZN14PerfectHashMapI3KeyiLi4E22PerfectHashMapAsserterE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %4)
  %93 = extractvalue { ptr, ptr } %92, 0
  store ptr %93, ptr %14, align 8
  %94 = extractvalue { ptr, ptr } %92, 1
  store ptr %94, ptr %37, align 8
  %95 = call noundef zeroext i1 @_ZNK14PerfectHashMapI3KeyiLi4E22PerfectHashMapAsserterE8iteratorneERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(16) %14)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #8
  br i1 %95, label %.lr.ph, label %._crit_edge, !llvm.loop !13

96:                                               ; preds = %.lr.ph
  %97 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #8
  br label %98

98:                                               ; preds = %96, %86
  %.pn = phi { ptr, i32 } [ %97, %96 ], [ %87, %86 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #8
  call void @_ZNSt3mapIPK3KeyiSt4lessIS2_ESaISt4pairIKS2_iEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %12) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %12) #8
  br label %132

.lr.ph45:                                         ; preds = %._crit_edge, %126
  %99 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPK3KeyiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #8
  %100 = load ptr, ptr %99, align 8, !tbaa !14
  %101 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPK3KeyiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #8
  %102 = load ptr, ptr %101, align 8, !tbaa !14
  %.not27 = icmp eq ptr %100, %102
  br i1 %.not27, label %110, label %103

103:                                              ; preds = %.lr.ph45
  %104 = load ptr, ptr @stderr, align 8, !tbaa !5
  %105 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPK3KeyiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #8
  %106 = load ptr, ptr %105, align 8, !tbaa !14
  %107 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPK3KeyiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #8
  %108 = load ptr, ptr %107, align 8, !tbaa !14
  %109 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef nonnull @.str.2, ptr noundef %106, ptr noundef %108) #10
  br label %133

110:                                              ; preds = %.lr.ph45
  %111 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPK3KeyiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #8
  %112 = getelementptr inbounds i8, ptr %111, i64 8
  %113 = load i32, ptr %112, align 8, !tbaa !16
  %114 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPK3KeyiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #8
  %115 = getelementptr inbounds i8, ptr %114, i64 8
  %116 = load i32, ptr %115, align 8, !tbaa !16
  %.not28 = icmp eq i32 %113, %116
  br i1 %.not28, label %126, label %117

117:                                              ; preds = %110
  %118 = load ptr, ptr @stderr, align 8, !tbaa !5
  %119 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPK3KeyiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #8
  %120 = getelementptr inbounds i8, ptr %119, i64 8
  %121 = load i32, ptr %120, align 8, !tbaa !16
  %122 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPK3KeyiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #8
  %123 = getelementptr inbounds i8, ptr %122, i64 8
  %124 = load i32, ptr %123, align 8, !tbaa !16
  %125 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %118, ptr noundef nonnull @.str.3, i32 noundef %121, i32 noundef %124) #10
  br label %133

126:                                              ; preds = %110
  %127 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKPK3KeyiEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %17, i32 noundef 0) #8
  %128 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKPK3KeyiEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %18, i32 noundef 0) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #8
  %129 = call ptr @_ZNSt3mapIPK3KeyiSt4lessIS2_ESaISt4pairIKS2_iEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %12) #8
  store ptr %129, ptr %19, align 8
  %130 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKPK3KeyiEES8_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #8
  br i1 %130, label %.lr.ph45, label %._crit_edge46, !llvm.loop !17

._crit_edge46:                                    ; preds = %126, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #8
  call void @_ZNSt3mapIPK3KeyiSt4lessIS2_ESaISt4pairIKS2_iEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %12) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #8
  %131 = add nuw nsw i32 %.02347, 1
  %exitcond = icmp eq i32 %131, 10000
  br i1 %exitcond, label %.thread40, label %48, !llvm.loop !18

132:                                              ; preds = %98, %71, %69
  %.pn.pn = phi { ptr, i32 } [ %.pn, %98 ], [ %72, %71 ], [ %70, %69 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #8
  br label %136

133:                                              ; preds = %103, %117
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #8
  call void @_ZNSt3mapIPK3KeyiSt4lessIS2_ESaISt4pairIKS2_iEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %12) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #8
  br label %135

.thread40:                                        ; preds = %._crit_edge46
  %134 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  br label %135

135:                                              ; preds = %133, %.thread42, %.thread40
  %.4 = phi i32 [ 0, %.thread40 ], [ -1, %133 ], [ -1, %.thread42 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #8
  call void @_ZNSt6vectorI3KeySaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #8
  call void @_ZNSt3mapIPK3KeyiSt4lessIS2_ESaISt4pairIKS2_iEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #8
  call void @_ZN14PerfectHashMapI3KeyiLi4E22PerfectHashMapAsserterED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 5000, ptr nonnull %3) #8
  ret i32 %.4

136:                                              ; preds = %132, %46, %44
  %.pn31 = phi { ptr, i32 } [ %45, %44 ], [ %.pn.pn, %132 ], [ %47, %46 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #8
  call void @_ZNSt6vectorI3KeySaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #8
  call void @_ZNSt3mapIPK3KeyiSt4lessIS2_ESaISt4pairIKS2_iEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #8
  call void @_ZN14PerfectHashMapI3KeyiLi4E22PerfectHashMapAsserterED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 5000, ptr nonnull %3) #8
  resume { ptr, i32 } %.pn31
}

; 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 dso_local void @_ZNSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEC2Em(ptr noundef nonnull align 8 dereferenceable(5000), i64 noundef) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr nocapture noundef nonnull) local_unnamed_addr #3

; Function Attrs: nounwind
declare i64 @time(ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EE4seedEm(ptr noundef nonnull align 8 dereferenceable(5000), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapIPK3KeyiSt4lessIS2_ESaISt4pairIKS2_iEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #7 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI3KeySaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #7 align 2

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZSt7shuffleIN9__gnu_cxx17__normal_iteratorIP3KeySt6vectorIS2_SaIS2_EEEERSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEvT_SB_OT0_(ptr, ptr, ptr noundef nonnull align 8 dereferenceable(5000)) local_unnamed_addr #2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI3KeySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #7 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3mapIPK3KeyiSt4lessIS2_ESaISt4pairIKS2_iEEE6insertEOS7_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIKPK3KeyiEC2IPS0_RiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS9_SA_EEEbE4typeELb1EEEOS9_OSA_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #7 align 2

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN14PerfectHashMapI3KeyiLi4E22PerfectHashMapAsserterE5beginEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, ptr } @_ZN14PerfectHashMapI3KeyiLi4E22PerfectHashMapAsserterE3endEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #7 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIKPK3KeyiEC2IS2_RiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS8_S9_EEEbE4typeELb1EEEOS8_OS9_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #7 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN14PerfectHashMapI3KeyiLi4E22PerfectHashMapAsserterE8iteratorppEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #7 align 2

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapIPK3KeyiSt4lessIS2_ESaISt4pairIKS2_iEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #7 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI3KeySaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #7 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN14PerfectHashMapI3KeyiLi4E22PerfectHashMapAsserterED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) 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 = { inlinehint mustprogress nofree nounwind willreturn memory(read) 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 = { 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 #5 = { nofree 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 = { 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 = { 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 #8 = { nounwind }
attributes #9 = { nounwind willreturn memory(read) }
attributes #10 = { cold 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = !{!15, !6, i64 0}
!15 = !{!"_ZTSSt4pairIKPK3KeyiE", !6, i64 0, !10, i64 8}
!16 = !{!15, !10, i64 8}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}


; Effective O3 passes: BDCEPass,ConstraintEliminationPass,CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass