; LLVM IR from abeaumont/competitive-programming :: codechef/april21a/treeperm.ll (Z3dfsii)

; 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::vector<long long>, std::allocator<std::vector<long long>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<long long>, std::allocator<std::vector<long long>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<long long>, std::allocator<std::vector<long long>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<long long>, std::allocator<std::vector<long long>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unordered_multiset" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }

@g = external dso_local global %"class.std::vector", align 8
@a = external dso_local global %"class.std::vector.0", align 8
@b = external dso_local global %"class.std::vector.0", align 8
@e = external dso_local global %"class.std::vector.0", align 8
@f = external dso_local global %"class.std::vector.0", align 8
@c = external dso_local global %"class.std::unordered_multiset", align 8
@d = external dso_local global %"class.std::unordered_multiset", align 8

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z3dfsii(i32 noundef %0, i32 noundef %1) #2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i1, align 1
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i8, align 1
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca %"class.std::unordered_multiset", align 8
  %11 = alloca %"class.std::unordered_multiset", align 8
  %12 = alloca ptr, align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i8, align 1
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %22 = alloca i32, align 4
  %23 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %24 = alloca i32, align 4
  %25 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %26 = alloca i32, align 4
  %27 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %28 = alloca i32, align 4
  %29 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %30 = alloca i32, align 4
  %31 = alloca %"struct.std::__detail::_Node_iterator", align 8
  store i32 %0, ptr %4, align 4, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #4
  store i8 0, ptr %6, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  store i64 0, ptr %7, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  store i64 0, ptr %8, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  store i64 1, ptr %9, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 56, ptr %10) #4
  call void @_ZNSt18unordered_multisetIiSt4hashIiESt8equal_toIiESaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %10) #4
  call void @llvm.lifetime.start.p0(i64 56, ptr %11) #4
  call void @_ZNSt18unordered_multisetIiSt4hashIiESt8equal_toIiESaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %32 = load i32, ptr %4, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %34 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @g, i64 noundef %33) #4
  store ptr %34, ptr %12, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %35 = load ptr, ptr %12, align 8, !tbaa !13
  %36 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %35) #4
  %37 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  store ptr %36, ptr %37, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %38 = load ptr, ptr %12, align 8, !tbaa !13
  %39 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %38) #4
  %40 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  store ptr %39, ptr %40, align 8
  br label %41

41:                                               ; preds = %101, %2
  %42 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #4
  br i1 %42, label %44, label %43

43:                                               ; preds = %41
  store i32 2, ptr %15, align 4
  br label %103

44:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #4
  %46 = load i64, ptr %45, align 8, !tbaa !11
  %47 = trunc i64 %46 to i32
  store i32 %47, ptr %16, align 4, !tbaa !5
  %48 = load i32, ptr %16, align 4, !tbaa !5
  %49 = load i32, ptr %5, align 4, !tbaa !5
  %50 = icmp ne i32 %48, %49
  br i1 %50, label %51, label %97

51:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #4
  %52 = load i32, ptr %16, align 4, !tbaa !5
  %53 = load i32, ptr %4, align 4, !tbaa !5
  %54 = invoke noundef zeroext i1 @_Z3dfsii(i32 noundef %52, i32 noundef %53)
          to label %55 unwind label %60

55:                                               ; preds = %51
  %56 = zext i1 %54 to i8
  store i8 %56, ptr %17, align 1, !tbaa !9
  %57 = load i8, ptr %17, align 1, !tbaa !9, !range !15, !noundef !16
  %58 = trunc i8 %57 to i1
  br i1 %58, label %64, label %59

59:                                               ; preds = %55
  store i1 false, ptr %3, align 1
  store i32 1, ptr %15, align 4
  br label %94

60:                                               ; preds = %51
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %18, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  br label %248

64:                                               ; preds = %55
  %65 = load i32, ptr %16, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @e, i64 noundef %66) #4
  %68 = load i64, ptr %67, align 8, !tbaa !11
  %69 = icmp ne i64 %68, 0
  br i1 %69, label %70, label %74

70:                                               ; preds = %64
  %71 = load i64, ptr %8, align 8, !tbaa !11
  %72 = icmp ne i64 %71, 0
  br i1 %72, label %73, label %74

73:                                               ; preds = %70
  store i1 false, ptr %3, align 1
  store i32 1, ptr %15, align 4
  br label %94

74:                                               ; preds = %70, %64
  %75 = load i32, ptr %16, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @e, i64 noundef %76) #4
  %78 = load i64, ptr %77, align 8, !tbaa !11
  %79 = icmp ne i64 %78, 0
  br i1 %79, label %80, label %83

80:                                               ; preds = %74
  %81 = load i32, ptr %16, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  store i64 %82, ptr %8, align 8, !tbaa !11
  call void @_ZSt4swapIiSt4hashIiESt8equal_toIiESaIiEEvRSt18unordered_multisetIT_T0_T1_T2_ESB_(ptr noundef nonnull align 8 dereferenceable(56) @c, ptr noundef nonnull align 8 dereferenceable(56) %10) #4
  call void @_ZSt4swapIiSt4hashIiESt8equal_toIiESaIiEEvRSt18unordered_multisetIT_T0_T1_T2_ESB_(ptr noundef nonnull align 8 dereferenceable(56) @d, ptr noundef nonnull align 8 dereferenceable(56) %11) #4
  br label %83

83:                                               ; preds = %80, %74
  %84 = load i32, ptr %16, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @f, i64 noundef %85) #4
  %87 = load i64, ptr %86, align 8, !tbaa !11
  %88 = load i64, ptr %9, align 8, !tbaa !11
  %89 = mul nsw i64 %88, %87
  store i64 %89, ptr %9, align 8, !tbaa !11
  %90 = load i64, ptr %9, align 8, !tbaa !11
  %91 = srem i64 %90, 1000000007
  store i64 %91, ptr %9, align 8, !tbaa !11
  %92 = load i64, ptr %7, align 8, !tbaa !11
  %93 = add nsw i64 %92, 1
  store i64 %93, ptr %7, align 8, !tbaa !11
  store i32 0, ptr %15, align 4
  br label %94

94:                                               ; preds = %83, %73, %59
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #4
  %95 = load i32, ptr %15, align 4
  switch i32 %95, label %98 [
    i32 0, label %96
  ]

96:                                               ; preds = %94
  br label %97

97:                                               ; preds = %96, %44
  store i32 0, ptr %15, align 4
  br label %98

98:                                               ; preds = %97, %94
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  %99 = load i32, ptr %15, align 4
  switch i32 %99, label %103 [
    i32 0, label %100
  ]

100:                                              ; preds = %98
  br label %101

101:                                              ; preds = %100
  %102 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #4
  br label %41

103:                                              ; preds = %98, %43
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  %104 = load i32, ptr %15, align 4
  switch i32 %104, label %246 [
    i32 2, label %105
  ]

105:                                              ; preds = %103
  %106 = load i64, ptr %8, align 8, !tbaa !11
  %107 = icmp ne i64 %106, 0
  br i1 %107, label %108, label %113

108:                                              ; preds = %105
  %109 = load i64, ptr %9, align 8, !tbaa !11
  %110 = load i32, ptr %4, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @f, i64 noundef %111) #4
  store i64 %109, ptr %112, align 8, !tbaa !11
  br label %130

113:                                              ; preds = %105
  %114 = load i64, ptr %7, align 8, !tbaa !11
  %115 = icmp ne i64 %114, 0
  br i1 %115, label %116, label %125

116:                                              ; preds = %113
  %117 = load i64, ptr %9, align 8, !tbaa !11
  %118 = load i64, ptr %7, align 8, !tbaa !11
  %119 = add nsw i64 %118, 1
  %120 = mul nsw i64 %117, %119
  %121 = srem i64 %120, 1000000007
  %122 = load i32, ptr %4, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @f, i64 noundef %123) #4
  store i64 %121, ptr %124, align 8, !tbaa !11
  br label %129

125:                                              ; preds = %113
  %126 = load i32, ptr %4, align 4, !tbaa !5
  %127 = sext i32 %126 to i64
  %128 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @f, i64 noundef %127) #4
  store i64 1, ptr %128, align 8, !tbaa !11
  br label %129

129:                                              ; preds = %125, %116
  br label %130

130:                                              ; preds = %129, %108
  call void @_ZSt4swapIiSt4hashIiESt8equal_toIiESaIiEEvRSt18unordered_multisetIT_T0_T1_T2_ESB_(ptr noundef nonnull align 8 dereferenceable(56) @c, ptr noundef nonnull align 8 dereferenceable(56) %10) #4
  call void @_ZSt4swapIiSt4hashIiESt8equal_toIiESaIiEEvRSt18unordered_multisetIT_T0_T1_T2_ESB_(ptr noundef nonnull align 8 dereferenceable(56) @d, ptr noundef nonnull align 8 dereferenceable(56) %11) #4
  %131 = load i32, ptr %4, align 4, !tbaa !5
  %132 = sext i32 %131 to i64
  %133 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @a, i64 noundef %132) #4
  %134 = load i64, ptr %133, align 8, !tbaa !11
  %135 = load i32, ptr %4, align 4, !tbaa !5
  %136 = sext i32 %135 to i64
  %137 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @b, i64 noundef %136) #4
  %138 = load i64, ptr %137, align 8, !tbaa !11
  %139 = icmp ne i64 %134, %138
  br i1 %139, label %140, label %237

140:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  %141 = load i32, ptr %4, align 4, !tbaa !5
  %142 = sext i32 %141 to i64
  %143 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @a, i64 noundef %142) #4
  %144 = load i64, ptr %143, align 8, !tbaa !11
  %145 = trunc i64 %144 to i32
  store i32 %145, ptr %20, align 4, !tbaa !5
  %146 = invoke noundef i64 @_ZNKSt18unordered_multisetIiSt4hashIiESt8equal_toIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(56) @d, ptr noundef nonnull align 4 dereferenceable(4) %20)
          to label %147 unwind label %166

147:                                              ; preds = %140
  %148 = icmp ne i64 %146, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  br i1 %148, label %149, label %174

149:                                              ; preds = %147
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  %150 = load i32, ptr %4, align 4, !tbaa !5
  %151 = sext i32 %150 to i64
  %152 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @a, i64 noundef %151) #4
  %153 = load i64, ptr %152, align 8, !tbaa !11
  %154 = trunc i64 %153 to i32
  store i32 %154, ptr %22, align 4, !tbaa !5
  %155 = invoke ptr @_ZNSt18unordered_multisetIiSt4hashIiESt8equal_toIiESaIiEE4findERKi(ptr noundef nonnull align 8 dereferenceable(56) @d, ptr noundef nonnull align 4 dereferenceable(4) %22)
          to label %156 unwind label %170

156:                                              ; preds = %149
  %157 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %21, i32 0, i32 0
  %158 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %157, i32 0, i32 0
  store ptr %155, ptr %158, align 8
  %159 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %21, i32 0, i32 0
  %160 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %159, i32 0, i32 0
  %161 = load ptr, ptr %160, align 8
  %162 = invoke ptr @_ZNSt18unordered_multisetIiSt4hashIiESt8equal_toIiESaIiEE5eraseENSt8__detail14_Node_iteratorIiLb1ELb0EEE(ptr noundef nonnull align 8 dereferenceable(56) @d, ptr %161)
          to label %163 unwind label %170

163:                                              ; preds = %156
  %164 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %23, i32 0, i32 0
  %165 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %164, i32 0, i32 0
  store ptr %162, ptr %165, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  br label %188

166:                                              ; preds = %140
  %167 = landingpad { ptr, i32 }
          cleanup
  %168 = extractvalue { ptr, i32 } %167, 0
  store ptr %168, ptr %18, align 8
  %169 = extractvalue { ptr, i32 } %167, 1
  store i32 %169, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  br label %248

170:                                              ; preds = %156, %149
  %171 = landingpad { ptr, i32 }
          cleanup
  %172 = extractvalue { ptr, i32 } %171, 0
  store ptr %172, ptr %18, align 8
  %173 = extractvalue { ptr, i32 } %171, 1
  store i32 %173, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  br label %248

174:                                              ; preds = %147
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  %175 = load i32, ptr %4, align 4, !tbaa !5
  %176 = sext i32 %175 to i64
  %177 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @a, i64 noundef %176) #4
  %178 = load i64, ptr %177, align 8, !tbaa !11
  %179 = trunc i64 %178 to i32
  store i32 %179, ptr %24, align 4, !tbaa !5
  %180 = invoke ptr @_ZNSt18unordered_multisetIiSt4hashIiESt8equal_toIiESaIiEE6insertEOi(ptr noundef nonnull align 8 dereferenceable(56) @c, ptr noundef nonnull align 4 dereferenceable(4) %24)
          to label %181 unwind label %184

181:                                              ; preds = %174
  %182 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %25, i32 0, i32 0
  %183 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %182, i32 0, i32 0
  store ptr %180, ptr %183, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  br label %188

184:                                              ; preds = %174
  %185 = landingpad { ptr, i32 }
          cleanup
  %186 = extractvalue { ptr, i32 } %185, 0
  store ptr %186, ptr %18, align 8
  %187 = extractvalue { ptr, i32 } %185, 1
  store i32 %187, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  br label %248

188:                                              ; preds = %181, %163
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #4
  %189 = load i32, ptr %4, align 4, !tbaa !5
  %190 = sext i32 %189 to i64
  %191 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @b, i64 noundef %190) #4
  %192 = load i64, ptr %191, align 8, !tbaa !11
  %193 = trunc i64 %192 to i32
  store i32 %193, ptr %26, align 4, !tbaa !5
  %194 = invoke noundef i64 @_ZNKSt18unordered_multisetIiSt4hashIiESt8equal_toIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(56) @c, ptr noundef nonnull align 4 dereferenceable(4) %26)
          to label %195 unwind label %214

195:                                              ; preds = %188
  %196 = icmp ne i64 %194, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  br i1 %196, label %197, label %222

197:                                              ; preds = %195
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #4
  %198 = load i32, ptr %4, align 4, !tbaa !5
  %199 = sext i32 %198 to i64
  %200 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @b, i64 noundef %199) #4
  %201 = load i64, ptr %200, align 8, !tbaa !11
  %202 = trunc i64 %201 to i32
  store i32 %202, ptr %28, align 4, !tbaa !5
  %203 = invoke ptr @_ZNSt18unordered_multisetIiSt4hashIiESt8equal_toIiESaIiEE4findERKi(ptr noundef nonnull align 8 dereferenceable(56) @c, ptr noundef nonnull align 4 dereferenceable(4) %28)
          to label %204 unwind label %218

204:                                              ; preds = %197
  %205 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %27, i32 0, i32 0
  %206 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %205, i32 0, i32 0
  store ptr %203, ptr %206, align 8
  %207 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %27, i32 0, i32 0
  %208 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %207, i32 0, i32 0
  %209 = load ptr, ptr %208, align 8
  %210 = invoke ptr @_ZNSt18unordered_multisetIiSt4hashIiESt8equal_toIiESaIiEE5eraseENSt8__detail14_Node_iteratorIiLb1ELb0EEE(ptr noundef nonnull align 8 dereferenceable(56) @c, ptr %209)
          to label %211 unwind label %218

211:                                              ; preds = %204
  %212 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %29, i32 0, i32 0
  %213 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %212, i32 0, i32 0
  store ptr %210, ptr %213, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #4
  br label %236

214:                                              ; preds = %188
  %215 = landingpad { ptr, i32 }
          cleanup
  %216 = extractvalue { ptr, i32 } %215, 0
  store ptr %216, ptr %18, align 8
  %217 = extractvalue { ptr, i32 } %215, 1
  store i32 %217, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  br label %248

218:                                              ; preds = %204, %197
  %219 = landingpad { ptr, i32 }
          cleanup
  %220 = extractvalue { ptr, i32 } %219, 0
  store ptr %220, ptr %18, align 8
  %221 = extractvalue { ptr, i32 } %219, 1
  store i32 %221, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #4
  br label %248

222:                                              ; preds = %195
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #4
  %223 = load i32, ptr %4, align 4, !tbaa !5
  %224 = sext i32 %223 to i64
  %225 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @b, i64 noundef %224) #4
  %226 = load i64, ptr %225, align 8, !tbaa !11
  %227 = trunc i64 %226 to i32
  store i32 %227, ptr %30, align 4, !tbaa !5
  %228 = invoke ptr @_ZNSt18unordered_multisetIiSt4hashIiESt8equal_toIiESaIiEE6insertEOi(ptr noundef nonnull align 8 dereferenceable(56) @d, ptr noundef nonnull align 4 dereferenceable(4) %30)
          to label %229 unwind label %232

229:                                              ; preds = %222
  %230 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %31, i32 0, i32 0
  %231 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %230, i32 0, i32 0
  store ptr %228, ptr %231, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #4
  br label %236

232:                                              ; preds = %222
  %233 = landingpad { ptr, i32 }
          cleanup
  %234 = extractvalue { ptr, i32 } %233, 0
  store ptr %234, ptr %18, align 8
  %235 = extractvalue { ptr, i32 } %233, 1
  store i32 %235, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #4
  br label %248

236:                                              ; preds = %229, %211
  br label %237

237:                                              ; preds = %236, %130
  %238 = call noundef zeroext i1 @_ZNKSt18unordered_multisetIiSt4hashIiESt8equal_toIiESaIiEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(56) @c) #4
  br i1 %238, label %239, label %241

239:                                              ; preds = %237
  %240 = call noundef zeroext i1 @_ZNKSt18unordered_multisetIiSt4hashIiESt8equal_toIiESaIiEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(56) @d) #4
  br i1 %240, label %245, label %241

241:                                              ; preds = %239, %237
  %242 = load i32, ptr %4, align 4, !tbaa !5
  %243 = sext i32 %242 to i64
  %244 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @e, i64 noundef %243) #4
  store i64 1, ptr %244, align 8, !tbaa !11
  br label %245

245:                                              ; preds = %241, %239
  store i1 true, ptr %3, align 1
  store i32 1, ptr %15, align 4
  br label %246

246:                                              ; preds = %245, %103
  call void @_ZNSt18unordered_multisetIiSt4hashIiESt8equal_toIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %11) #4
  call void @llvm.lifetime.end.p0(i64 56, ptr %11) #4
  call void @_ZNSt18unordered_multisetIiSt4hashIiESt8equal_toIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %10) #4
  call void @llvm.lifetime.end.p0(i64 56, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #4
  %247 = load i1, ptr %3, align 1
  ret i1 %247

248:                                              ; preds = %232, %218, %214, %184, %170, %166, %60
  call void @_ZNSt18unordered_multisetIiSt4hashIiESt8equal_toIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %11) #4
  call void @llvm.lifetime.end.p0(i64 56, ptr %11) #4
  call void @_ZNSt18unordered_multisetIiSt4hashIiESt8equal_toIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %10) #4
  call void @llvm.lifetime.end.p0(i64 56, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #4
  br label %249

249:                                              ; preds = %248
  %250 = load ptr, ptr %18, align 8
  %251 = load i32, ptr %19, align 4
  %252 = insertvalue { ptr, i32 } poison, ptr %250, 0
  %253 = insertvalue { ptr, i32 } %252, i32 %251, 1
  resume { ptr, i32 } %253
}

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

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIiSt4hashIiESt8equal_toIiESaIiEEvRSt18unordered_multisetIT_T0_T1_T2_ESB_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56)) #1

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

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

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

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

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

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

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long long", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"any pointer", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}


; 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::vector<long long>, std::allocator<std::vector<long long>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<long long>, std::allocator<std::vector<long long>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<long long>, std::allocator<std::vector<long long>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<long long>, std::allocator<std::vector<long long>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unordered_multiset" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@g = external dso_local global %"class.std::vector", align 8
@a = external dso_local global %"class.std::vector.0", align 8
@b = external dso_local global %"class.std::vector.0", align 8
@e = external dso_local global %"class.std::vector.0", align 8
@f = external dso_local global %"class.std::vector.0", align 8
@c = external dso_local global %"class.std::unordered_multiset", align 8
@d = external dso_local global %"class.std::unordered_multiset", align 8

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z3dfsii(i32 noundef %0, i32 noundef %1) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::unordered_multiset", align 8
  %4 = alloca %"class.std::unordered_multiset", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %3) #4
  call void @_ZNSt18unordered_multisetIiSt4hashIiESt8equal_toIiESaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %3) #4
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %4) #4
  call void @_ZNSt18unordered_multisetIiSt4hashIiESt8equal_toIiESaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %4) #4
  %13 = sext i32 %0 to i64
  %14 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @g, i64 noundef %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  %15 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #4
  store ptr %15, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  %16 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #4
  store ptr %16, ptr %6, align 8
  %17 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  br i1 %17, label %.lr.ph, label %.thread

.thread:                                          ; preds = %2
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  br label %51

.lr.ph:                                           ; preds = %2, %42
  %.04697 = phi i64 [ %.349.ph, %42 ], [ 0, %2 ]
  %.05196 = phi i64 [ %.455.ph, %42 ], [ 0, %2 ]
  %.05795 = phi i64 [ %.360.ph, %42 ], [ 1, %2 ]
  %18 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  %19 = load i64, ptr %18, align 8, !tbaa !5
  %20 = trunc i64 %19 to i32
  %.not = icmp eq i32 %20, %1
  br i1 %.not, label %42, label %21

21:                                               ; preds = %.lr.ph
  %22 = invoke noundef zeroext i1 @_Z3dfsii(i32 noundef %20, i32 noundef %0)
          to label %23 unwind label %24

23:                                               ; preds = %21
  br i1 %22, label %26, label %.thread83

24:                                               ; preds = %21
  %25 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  br label %116

26:                                               ; preds = %23
  %sext = shl i64 %19, 32
  %27 = ashr exact i64 %sext, 32
  %28 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @e, i64 noundef %27) #4
  %29 = load i64, ptr %28, align 8, !tbaa !5
  %30 = icmp ne i64 %29, 0
  %31 = icmp ne i64 %.05196, 0
  %or.cond = select i1 %30, i1 %31, i1 false
  br i1 %or.cond, label %.thread83, label %32

32:                                               ; preds = %26
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @e, i64 noundef %27) #4
  %34 = load i64, ptr %33, align 8, !tbaa !5
  %.not68 = icmp eq i64 %34, 0
  br i1 %.not68, label %36, label %35

35:                                               ; preds = %32
  call void @_ZSt4swapIiSt4hashIiESt8equal_toIiESaIiEEvRSt18unordered_multisetIT_T0_T1_T2_ESB_(ptr noundef nonnull align 8 dereferenceable(56) @c, ptr noundef nonnull align 8 dereferenceable(56) %3) #4
  call void @_ZSt4swapIiSt4hashIiESt8equal_toIiESaIiEEvRSt18unordered_multisetIT_T0_T1_T2_ESB_(ptr noundef nonnull align 8 dereferenceable(56) @d, ptr noundef nonnull align 8 dereferenceable(56) %4) #4
  br label %36

36:                                               ; preds = %35, %32
  %.152 = phi i64 [ %27, %35 ], [ %.05196, %32 ]
  %37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @f, i64 noundef %27) #4
  %38 = load i64, ptr %37, align 8, !tbaa !5
  %39 = mul nsw i64 %38, %.05795
  %40 = srem i64 %39, 1000000007
  %41 = add nsw i64 %.04697, 1
  br label %42

42:                                               ; preds = %.lr.ph, %36
  %.360.ph = phi i64 [ %40, %36 ], [ %.05795, %.lr.ph ]
  %.455.ph = phi i64 [ %.152, %36 ], [ %.05196, %.lr.ph ]
  %.349.ph = phi i64 [ %41, %36 ], [ %.04697, %.lr.ph ]
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  %44 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  br i1 %44, label %.lr.ph, label %._crit_edge

.thread83:                                        ; preds = %26, %23
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  br label %115

._crit_edge:                                      ; preds = %42
  %45 = icmp eq i64 %.455.ph, 0
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  br i1 %45, label %46, label %51

46:                                               ; preds = %._crit_edge
  %.not70 = icmp eq i64 %.349.ph, 0
  br i1 %.not70, label %51, label %47

47:                                               ; preds = %46
  %48 = add nsw i64 %.349.ph, 1
  %49 = mul nsw i64 %48, %.360.ph
  %50 = srem i64 %49, 1000000007
  br label %51

51:                                               ; preds = %46, %.thread, %._crit_edge, %47
  %.sink = phi i64 [ %50, %47 ], [ %.360.ph, %._crit_edge ], [ 1, %.thread ], [ 1, %46 ]
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @f, i64 noundef %13) #4
  store i64 %.sink, ptr %52, align 8, !tbaa !5
  call void @_ZSt4swapIiSt4hashIiESt8equal_toIiESaIiEEvRSt18unordered_multisetIT_T0_T1_T2_ESB_(ptr noundef nonnull align 8 dereferenceable(56) @c, ptr noundef nonnull align 8 dereferenceable(56) %3) #4
  call void @_ZSt4swapIiSt4hashIiESt8equal_toIiESaIiEEvRSt18unordered_multisetIT_T0_T1_T2_ESB_(ptr noundef nonnull align 8 dereferenceable(56) @d, ptr noundef nonnull align 8 dereferenceable(56) %4) #4
  %53 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @a, i64 noundef %13) #4
  %54 = load i64, ptr %53, align 8, !tbaa !5
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @b, i64 noundef %13) #4
  %56 = load i64, ptr %55, align 8, !tbaa !5
  %.not71 = icmp eq i64 %54, %56
  br i1 %.not71, label %109, label %57

57:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #4
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @a, i64 noundef %13) #4
  %59 = load i64, ptr %58, align 8, !tbaa !5
  %60 = trunc i64 %59 to i32
  store i32 %60, ptr %7, align 4, !tbaa !9
  %61 = invoke noundef i64 @_ZNKSt18unordered_multisetIiSt4hashIiESt8equal_toIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(56) @d, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %62 unwind label %71

62:                                               ; preds = %57
  %.not72 = icmp eq i64 %61, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #4
  br i1 %.not72, label %75, label %63

63:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #4
  %64 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @a, i64 noundef %13) #4
  %65 = load i64, ptr %64, align 8, !tbaa !5
  %66 = trunc i64 %65 to i32
  store i32 %66, ptr %8, align 4, !tbaa !9
  %67 = invoke ptr @_ZNSt18unordered_multisetIiSt4hashIiESt8equal_toIiESaIiEE4findERKi(ptr noundef nonnull align 8 dereferenceable(56) @d, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %68 unwind label %73

68:                                               ; preds = %63
  %69 = invoke ptr @_ZNSt18unordered_multisetIiSt4hashIiESt8equal_toIiESaIiEE5eraseENSt8__detail14_Node_iteratorIiLb1ELb0EEE(ptr noundef nonnull align 8 dereferenceable(56) @d, ptr %67)
          to label %70 unwind label %73

70:                                               ; preds = %68
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #4
  br label %83

71:                                               ; preds = %57
  %72 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #4
  br label %116

73:                                               ; preds = %68, %63
  %74 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #4
  br label %116

75:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #4
  %76 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @a, i64 noundef %13) #4
  %77 = load i64, ptr %76, align 8, !tbaa !5
  %78 = trunc i64 %77 to i32
  store i32 %78, ptr %9, align 4, !tbaa !9
  %79 = invoke ptr @_ZNSt18unordered_multisetIiSt4hashIiESt8equal_toIiESaIiEE6insertEOi(ptr noundef nonnull align 8 dereferenceable(56) @c, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %80 unwind label %81

80:                                               ; preds = %75
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #4
  br label %83

81:                                               ; preds = %75
  %82 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #4
  br label %116

83:                                               ; preds = %80, %70
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #4
  %84 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @b, i64 noundef %13) #4
  %85 = load i64, ptr %84, align 8, !tbaa !5
  %86 = trunc i64 %85 to i32
  store i32 %86, ptr %10, align 4, !tbaa !9
  %87 = invoke noundef i64 @_ZNKSt18unordered_multisetIiSt4hashIiESt8equal_toIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(56) @c, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %88 unwind label %97

88:                                               ; preds = %83
  %.not73 = icmp eq i64 %87, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #4
  br i1 %.not73, label %101, label %89

89:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #4
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @b, i64 noundef %13) #4
  %91 = load i64, ptr %90, align 8, !tbaa !5
  %92 = trunc i64 %91 to i32
  store i32 %92, ptr %11, align 4, !tbaa !9
  %93 = invoke ptr @_ZNSt18unordered_multisetIiSt4hashIiESt8equal_toIiESaIiEE4findERKi(ptr noundef nonnull align 8 dereferenceable(56) @c, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %94 unwind label %99

94:                                               ; preds = %89
  %95 = invoke ptr @_ZNSt18unordered_multisetIiSt4hashIiESt8equal_toIiESaIiEE5eraseENSt8__detail14_Node_iteratorIiLb1ELb0EEE(ptr noundef nonnull align 8 dereferenceable(56) @c, ptr %93)
          to label %96 unwind label %99

96:                                               ; preds = %94
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #4
  br label %109

97:                                               ; preds = %83
  %98 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #4
  br label %116

99:                                               ; preds = %94, %89
  %100 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #4
  br label %116

101:                                              ; preds = %88
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #4
  %102 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @b, i64 noundef %13) #4
  %103 = load i64, ptr %102, align 8, !tbaa !5
  %104 = trunc i64 %103 to i32
  store i32 %104, ptr %12, align 4, !tbaa !9
  %105 = invoke ptr @_ZNSt18unordered_multisetIiSt4hashIiESt8equal_toIiESaIiEE6insertEOi(ptr noundef nonnull align 8 dereferenceable(56) @d, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %106 unwind label %107

106:                                              ; preds = %101
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #4
  br label %109

107:                                              ; preds = %101
  %108 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #4
  br label %116

109:                                              ; preds = %96, %106, %51
  %110 = call noundef zeroext i1 @_ZNKSt18unordered_multisetIiSt4hashIiESt8equal_toIiESaIiEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(56) @c) #4
  br i1 %110, label %111, label %113

111:                                              ; preds = %109
  %112 = call noundef zeroext i1 @_ZNKSt18unordered_multisetIiSt4hashIiESt8equal_toIiESaIiEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(56) @d) #4
  br i1 %112, label %115, label %113

113:                                              ; preds = %111, %109
  %114 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @e, i64 noundef %13) #4
  store i64 1, ptr %114, align 8, !tbaa !5
  br label %115

115:                                              ; preds = %.thread83, %111, %113
  %.5 = phi i1 [ false, %.thread83 ], [ true, %111 ], [ true, %113 ]
  call void @_ZNSt18unordered_multisetIiSt4hashIiESt8equal_toIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %4) #4
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %4) #4
  call void @_ZNSt18unordered_multisetIiSt4hashIiESt8equal_toIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %3) #4
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %3) #4
  ret i1 %.5

116:                                              ; preds = %107, %99, %97, %81, %73, %71, %24
  %.pn = phi { ptr, i32 } [ %100, %99 ], [ %108, %107 ], [ %98, %97 ], [ %74, %73 ], [ %82, %81 ], [ %72, %71 ], [ %25, %24 ]
  call void @_ZNSt18unordered_multisetIiSt4hashIiESt8equal_toIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %4) #4
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %4) #4
  call void @_ZNSt18unordered_multisetIiSt4hashIiESt8equal_toIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %3) #4
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %3) #4
  resume { ptr, i32 } %.pn
}

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

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIiSt4hashIiESt8equal_toIiESaIiEEvRSt18unordered_multisetIT_T0_T1_T2_ESB_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #1

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

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

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

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

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

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

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

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

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

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


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