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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::unordered_set" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"struct.std::pair" = type <{ %"struct.std::__detail::_Node_iterator", i8, [7 x i8] }>
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z8generateii(i32 noundef, i32 noundef) #0

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE6insertEOx(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z4doitv() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i64, align 8
  %5 = alloca %"struct.std::pair", align 8
  %6 = alloca i64, align 8
  %7 = alloca %"struct.std::pair", align 8
  %8 = alloca i128, align 16
  %9 = alloca i128, align 16
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i64, align 8
  %15 = alloca %"struct.std::pair", align 8
  %16 = alloca i32, align 4
  %17 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %18 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %19 = alloca i64, align 8
  %20 = alloca %"struct.std::pair", align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %24 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %25 = alloca %"struct.std::pair", align 8
  %26 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %27 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %28 = alloca %"struct.std::pair", align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #3
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %29

29:                                               ; preds = %49, %0
  %30 = load i32, ptr %1, align 4, !tbaa !5
  %31 = icmp slt i32 %30, 2
  br i1 %31, label %33, label %32

32:                                               ; preds = %29
  store i32 2, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #3
  br label %52

33:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %34

34:                                               ; preds = %45, %33
  %35 = load i32, ptr %3, align 4, !tbaa !5
  %36 = icmp slt i32 %35, 610
  br i1 %36, label %38, label %37

37:                                               ; preds = %34
  store i32 5, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  br label %48

38:                                               ; preds = %34
  %39 = load i32, ptr %1, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [2 x [610 x %"class.std::unordered_set"]], ptr @dp, i64 0, i64 %40
  %42 = load i32, ptr %3, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [610 x %"class.std::unordered_set"], ptr %41, i64 0, i64 %43
  call void @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE5clearEv(ptr noundef nonnull align 8 dereferenceable(56) %44) #3
  br label %45

45:                                               ; preds = %38
  %46 = load i32, ptr %3, align 4, !tbaa !5
  %47 = add nsw i32 %46, 1
  store i32 %47, ptr %3, align 4, !tbaa !5
  br label %34, !llvm.loop !9

48:                                               ; preds = %37
  br label %49

49:                                               ; preds = %48
  %50 = load i32, ptr %1, align 4, !tbaa !5
  %51 = add nsw i32 %50, 1
  store i32 %51, ptr %1, align 4, !tbaa !5
  br label %29, !llvm.loop !11

52:                                               ; preds = %32
  %53 = load i32, ptr @n, align 4, !tbaa !5
  %54 = sub nsw i32 %53, 1
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [610 x %"class.std::unordered_set"], ptr @dp, i64 0, i64 %55
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
  %57 = load i32, ptr @n, align 4, !tbaa !5
  %58 = sub nsw i32 %57, 1
  %59 = sext i32 %58 to i64
  %60 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1gB5cxx11, i64 noundef %59)
  %61 = load i8, ptr %60, align 1, !tbaa !12
  %62 = sext i8 %61 to i32
  %63 = sub nsw i32 %62, 97
  %64 = add nsw i32 %63, 1
  %65 = sext i32 %64 to i64
  %66 = mul nsw i64 26, %65
  %67 = srem i64 %66, 1344409044431
  %68 = load i32, ptr @n, align 4, !tbaa !5
  %69 = sub nsw i32 %68, 1
  %70 = sext i32 %69 to i64
  %71 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) getelementptr inbounds ([2 x %"class.std::__cxx11::basic_string"], ptr @_Z1gB5cxx11, i64 0, i64 1), i64 noundef %70)
  %72 = load i8, ptr %71, align 1, !tbaa !12
  %73 = sext i8 %72 to i32
  %74 = sub nsw i32 %73, 97
  %75 = add nsw i32 %74, 1
  %76 = sext i32 %75 to i64
  %77 = add nsw i64 %67, %76
  %78 = srem i64 %77, 1344409044431
  store i64 %78, ptr %4, align 8, !tbaa !13
  %79 = call { ptr, i8 } @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE6insertEOx(ptr noundef nonnull align 8 dereferenceable(56) %56, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %80 = getelementptr inbounds { ptr, i8 }, ptr %5, i32 0, i32 0
  %81 = extractvalue { ptr, i8 } %79, 0
  store ptr %81, ptr %80, align 8
  %82 = getelementptr inbounds { ptr, i8 }, ptr %5, i32 0, i32 1
  %83 = extractvalue { ptr, i8 } %79, 1
  store i8 %83, ptr %82, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  %84 = load i32, ptr @n, align 4, !tbaa !5
  %85 = sub nsw i32 %84, 1
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [610 x %"class.std::unordered_set"], ptr getelementptr inbounds ([2 x [610 x %"class.std::unordered_set"]], ptr @dp, i64 0, i64 1), i64 0, i64 %86
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  %88 = load i32, ptr @n, align 4, !tbaa !5
  %89 = sub nsw i32 %88, 1
  %90 = sext i32 %89 to i64
  %91 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) getelementptr inbounds ([2 x %"class.std::__cxx11::basic_string"], ptr @_Z1gB5cxx11, i64 0, i64 1), i64 noundef %90)
  %92 = load i8, ptr %91, align 1, !tbaa !12
  %93 = sext i8 %92 to i32
  %94 = sub nsw i32 %93, 97
  %95 = add nsw i32 %94, 1
  %96 = sext i32 %95 to i64
  %97 = mul nsw i64 26, %96
  %98 = srem i64 %97, 1344409044431
  %99 = load i32, ptr @n, align 4, !tbaa !5
  %100 = sub nsw i32 %99, 1
  %101 = sext i32 %100 to i64
  %102 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1gB5cxx11, i64 noundef %101)
  %103 = load i8, ptr %102, align 1, !tbaa !12
  %104 = sext i8 %103 to i32
  %105 = sub nsw i32 %104, 97
  %106 = add nsw i32 %105, 1
  %107 = sext i32 %106 to i64
  %108 = add nsw i64 %98, %107
  %109 = srem i64 %108, 1344409044431
  store i64 %109, ptr %6, align 8, !tbaa !13
  %110 = call { ptr, i8 } @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE6insertEOx(ptr noundef nonnull align 8 dereferenceable(56) %87, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %111 = getelementptr inbounds { ptr, i8 }, ptr %7, i32 0, i32 0
  %112 = extractvalue { ptr, i8 } %110, 0
  store ptr %112, ptr %111, align 8
  %113 = getelementptr inbounds { ptr, i8 }, ptr %7, i32 0, i32 1
  %114 = extractvalue { ptr, i8 } %110, 1
  store i8 %114, ptr %113, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  %115 = load i32, ptr @n, align 4, !tbaa !5
  %116 = sub nsw i32 %115, 2
  store i32 %116, ptr %10, align 4, !tbaa !5
  br label %117

117:                                              ; preds = %286, %52
  %118 = load i32, ptr %10, align 4, !tbaa !5
  %119 = icmp sge i32 %118, 0
  br i1 %119, label %121, label %120

120:                                              ; preds = %117
  store i32 8, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  br label %289

121:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %122

122:                                              ; preds = %282, %121
  %123 = load i32, ptr %11, align 4, !tbaa !5
  %124 = icmp slt i32 %123, 2
  br i1 %124, label %126, label %125

125:                                              ; preds = %122
  store i32 11, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  br label %285

126:                                              ; preds = %122
  store i128 0, ptr %9, align 16, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  %127 = load i32, ptr %11, align 4, !tbaa !5
  store i32 %127, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  %128 = load i32, ptr %10, align 4, !tbaa !5
  store i32 %128, ptr %13, align 4, !tbaa !5
  br label %129

129:                                              ; preds = %133, %126
  %130 = load i32, ptr %13, align 4, !tbaa !5
  %131 = load i32, ptr @n, align 4, !tbaa !5
  %132 = icmp slt i32 %130, %131
  br i1 %132, label %133, label %152

133:                                              ; preds = %129
  %134 = load i128, ptr %9, align 16, !tbaa !15
  %135 = mul nsw i128 %134, 26
  %136 = srem i128 %135, 1344409044431
  %137 = load i32, ptr %12, align 4, !tbaa !5
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds [2 x %"class.std::__cxx11::basic_string"], ptr @_Z1gB5cxx11, i64 0, i64 %138
  %140 = load i32, ptr %13, align 4, !tbaa !5
  %141 = sext i32 %140 to i64
  %142 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %139, i64 noundef %141)
  %143 = load i8, ptr %142, align 1, !tbaa !12
  %144 = sext i8 %143 to i32
  %145 = sub nsw i32 %144, 97
  %146 = add nsw i32 %145, 1
  %147 = sext i32 %146 to i128
  %148 = add nsw i128 %136, %147
  %149 = srem i128 %148, 1344409044431
  store i128 %149, ptr %9, align 16, !tbaa !15
  %150 = load i32, ptr %13, align 4, !tbaa !5
  %151 = add nsw i32 %150, 1
  store i32 %151, ptr %13, align 4, !tbaa !5
  br label %129, !llvm.loop !17

152:                                              ; preds = %129
  %153 = load i32, ptr @n, align 4, !tbaa !5
  %154 = sub nsw i32 %153, 1
  store i32 %154, ptr %13, align 4, !tbaa !5
  %155 = load i32, ptr %12, align 4, !tbaa !5
  %156 = xor i32 %155, 1
  store i32 %156, ptr %12, align 4, !tbaa !5
  br label %157

157:                                              ; preds = %161, %152
  %158 = load i32, ptr %13, align 4, !tbaa !5
  %159 = load i32, ptr %10, align 4, !tbaa !5
  %160 = icmp sge i32 %158, %159
  br i1 %160, label %161, label %180

161:                                              ; preds = %157
  %162 = load i128, ptr %9, align 16, !tbaa !15
  %163 = mul nsw i128 %162, 26
  %164 = srem i128 %163, 1344409044431
  %165 = load i32, ptr %12, align 4, !tbaa !5
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds [2 x %"class.std::__cxx11::basic_string"], ptr @_Z1gB5cxx11, i64 0, i64 %166
  %168 = load i32, ptr %13, align 4, !tbaa !5
  %169 = sext i32 %168 to i64
  %170 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %167, i64 noundef %169)
  %171 = load i8, ptr %170, align 1, !tbaa !12
  %172 = sext i8 %171 to i32
  %173 = sub nsw i32 %172, 97
  %174 = add nsw i32 %173, 1
  %175 = sext i32 %174 to i128
  %176 = add nsw i128 %164, %175
  %177 = srem i128 %176, 1344409044431
  store i128 %177, ptr %9, align 16, !tbaa !15
  %178 = load i32, ptr %13, align 4, !tbaa !5
  %179 = add nsw i32 %178, -1
  store i32 %179, ptr %13, align 4, !tbaa !5
  br label %157, !llvm.loop !18

180:                                              ; preds = %157
  %181 = load i32, ptr %11, align 4, !tbaa !5
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds [2 x [610 x %"class.std::unordered_set"]], ptr @dp, i64 0, i64 %182
  %184 = load i32, ptr %10, align 4, !tbaa !5
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds [610 x %"class.std::unordered_set"], ptr %183, i64 0, i64 %185
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  %187 = load i128, ptr %9, align 16, !tbaa !15
  %188 = trunc i128 %187 to i64
  store i64 %188, ptr %14, align 8, !tbaa !13
  %189 = call { ptr, i8 } @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE6insertEOx(ptr noundef nonnull align 8 dereferenceable(56) %186, ptr noundef nonnull align 8 dereferenceable(8) %14)
  %190 = getelementptr inbounds { ptr, i8 }, ptr %15, i32 0, i32 0
  %191 = extractvalue { ptr, i8 } %189, 0
  store ptr %191, ptr %190, align 8
  %192 = getelementptr inbounds { ptr, i8 }, ptr %15, i32 0, i32 1
  %193 = extractvalue { ptr, i8 } %189, 1
  store i8 %193, ptr %192, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  %194 = load i32, ptr @n, align 4, !tbaa !5
  %195 = load i32, ptr %10, align 4, !tbaa !5
  %196 = sub nsw i32 %194, %195
  %197 = mul nsw i32 %196, 2
  store i32 %197, ptr %16, align 4, !tbaa !5
  %198 = load i32, ptr %11, align 4, !tbaa !5
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds [2 x %"class.std::__cxx11::basic_string"], ptr @_Z1gB5cxx11, i64 0, i64 %199
  %201 = load i32, ptr %10, align 4, !tbaa !5
  %202 = sext i32 %201 to i64
  %203 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %200, i64 noundef %202)
  %204 = load i8, ptr %203, align 1, !tbaa !12
  %205 = sext i8 %204 to i32
  %206 = sub nsw i32 %205, 97
  %207 = add nsw i32 %206, 1
  %208 = sext i32 %207 to i64
  %209 = mul nsw i64 26, %208
  %210 = srem i64 %209, 1344409044431
  %211 = load i32, ptr %11, align 4, !tbaa !5
  %212 = xor i32 %211, 1
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds [2 x %"class.std::__cxx11::basic_string"], ptr @_Z1gB5cxx11, i64 0, i64 %213
  %215 = load i32, ptr %10, align 4, !tbaa !5
  %216 = sext i32 %215 to i64
  %217 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %214, i64 noundef %216)
  %218 = load i8, ptr %217, align 1, !tbaa !12
  %219 = sext i8 %218 to i32
  %220 = sub nsw i32 %219, 97
  %221 = add nsw i32 %220, 1
  %222 = sext i32 %221 to i64
  %223 = add nsw i64 %210, %222
  %224 = srem i64 %223, 1344409044431
  %225 = sext i64 %224 to i128
  store i128 %225, ptr %9, align 16, !tbaa !15
  %226 = load i128, ptr %9, align 16, !tbaa !15
  %227 = load i32, ptr %16, align 4, !tbaa !5
  %228 = sub nsw i32 %227, 2
  %229 = sext i32 %228 to i64
  %230 = getelementptr inbounds [1220 x i64], ptr @pw, i64 0, i64 %229
  %231 = load i64, ptr %230, align 8, !tbaa !13
  %232 = sext i64 %231 to i128
  %233 = mul nsw i128 %226, %232
  %234 = srem i128 %233, 1344409044431
  store i128 %234, ptr %9, align 16, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  %235 = load i32, ptr %11, align 4, !tbaa !5
  %236 = xor i32 %235, 1
  %237 = sext i32 %236 to i64
  %238 = getelementptr inbounds [2 x [610 x %"class.std::unordered_set"]], ptr @dp, i64 0, i64 %237
  %239 = load i32, ptr %10, align 4, !tbaa !5
  %240 = add nsw i32 %239, 1
  %241 = sext i32 %240 to i64
  %242 = getelementptr inbounds [610 x %"class.std::unordered_set"], ptr %238, i64 0, i64 %241
  %243 = call ptr @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %242) #3
  %244 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %17, i32 0, i32 0
  %245 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %244, i32 0, i32 0
  store ptr %243, ptr %245, align 8
  br label %246

246:                                              ; preds = %279, %180
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  %247 = load i32, ptr %11, align 4, !tbaa !5
  %248 = xor i32 %247, 1
  %249 = sext i32 %248 to i64
  %250 = getelementptr inbounds [2 x [610 x %"class.std::unordered_set"]], ptr @dp, i64 0, i64 %249
  %251 = load i32, ptr %10, align 4, !tbaa !5
  %252 = add nsw i32 %251, 1
  %253 = sext i32 %252 to i64
  %254 = getelementptr inbounds [610 x %"class.std::unordered_set"], ptr %250, i64 0, i64 %253
  %255 = call ptr @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %254) #3
  %256 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %18, i32 0, i32 0
  %257 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %256, i32 0, i32 0
  store ptr %255, ptr %257, align 8
  %258 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIxLb0EEES3_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  br i1 %258, label %260, label %259

259:                                              ; preds = %246
  store i32 18, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  br label %281

260:                                              ; preds = %246
  %261 = load i32, ptr %11, align 4, !tbaa !5
  %262 = sext i32 %261 to i64
  %263 = getelementptr inbounds [2 x [610 x %"class.std::unordered_set"]], ptr @dp, i64 0, i64 %262
  %264 = load i32, ptr %10, align 4, !tbaa !5
  %265 = sext i32 %264 to i64
  %266 = getelementptr inbounds [610 x %"class.std::unordered_set"], ptr %263, i64 0, i64 %265
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  %267 = load i128, ptr %9, align 16, !tbaa !15
  %268 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8__detail14_Node_iteratorIxLb1ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #3
  %269 = load i64, ptr %268, align 8, !tbaa !13
  %270 = sext i64 %269 to i128
  %271 = add nsw i128 %267, %270
  %272 = srem i128 %271, 1344409044431
  %273 = trunc i128 %272 to i64
  store i64 %273, ptr %19, align 8, !tbaa !13
  %274 = call { ptr, i8 } @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE6insertEOx(ptr noundef nonnull align 8 dereferenceable(56) %266, ptr noundef nonnull align 8 dereferenceable(8) %19)
  %275 = getelementptr inbounds { ptr, i8 }, ptr %20, i32 0, i32 0
  %276 = extractvalue { ptr, i8 } %274, 0
  store ptr %276, ptr %275, align 8
  %277 = getelementptr inbounds { ptr, i8 }, ptr %20, i32 0, i32 1
  %278 = extractvalue { ptr, i8 } %274, 1
  store i8 %278, ptr %277, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  br label %279

279:                                              ; preds = %260
  %280 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorIxLb1ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #3
  br label %246, !llvm.loop !19

281:                                              ; preds = %259
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  br label %282

282:                                              ; preds = %281
  %283 = load i32, ptr %11, align 4, !tbaa !5
  %284 = add nsw i32 %283, 1
  store i32 %284, ptr %11, align 4, !tbaa !5
  br label %122, !llvm.loop !20

285:                                              ; preds = %125
  br label %286

286:                                              ; preds = %285
  %287 = load i32, ptr %10, align 4, !tbaa !5
  %288 = add nsw i32 %287, -1
  store i32 %288, ptr %10, align 4, !tbaa !5
  br label %117, !llvm.loop !21

289:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #3
  store i32 0, ptr %21, align 4, !tbaa !5
  br label %290

290:                                              ; preds = %308, %289
  %291 = load i32, ptr %21, align 4, !tbaa !5
  %292 = icmp slt i32 %291, 2
  br i1 %292, label %294, label %293

293:                                              ; preds = %290
  store i32 21, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #3
  br label %311

294:                                              ; preds = %290
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #3
  store i32 1, ptr %22, align 4, !tbaa !5
  br label %295

295:                                              ; preds = %304, %294
  %296 = load i32, ptr %22, align 4, !tbaa !5
  %297 = load i32, ptr @n, align 4, !tbaa !5
  %298 = sub nsw i32 %297, 1
  %299 = icmp slt i32 %296, %298
  br i1 %299, label %301, label %300

300:                                              ; preds = %295
  store i32 24, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #3
  br label %307

301:                                              ; preds = %295
  %302 = load i32, ptr %21, align 4, !tbaa !5
  %303 = load i32, ptr %22, align 4, !tbaa !5
  call void @_Z8generateii(i32 noundef %302, i32 noundef %303)
  br label %304

304:                                              ; preds = %301
  %305 = load i32, ptr %22, align 4, !tbaa !5
  %306 = add nsw i32 %305, 1
  store i32 %306, ptr %22, align 4, !tbaa !5
  br label %295, !llvm.loop !22

307:                                              ; preds = %300
  br label %308

308:                                              ; preds = %307
  %309 = load i32, ptr %21, align 4, !tbaa !5
  %310 = add nsw i32 %309, 1
  store i32 %310, ptr %21, align 4, !tbaa !5
  br label %290, !llvm.loop !23

311:                                              ; preds = %293
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #3
  %312 = call ptr @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) @dp) #3
  %313 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %23, i32 0, i32 0
  %314 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %313, i32 0, i32 0
  store ptr %312, ptr %314, align 8
  br label %315

315:                                              ; preds = %328, %311
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #3
  %316 = call ptr @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) @dp) #3
  %317 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %24, i32 0, i32 0
  %318 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %317, i32 0, i32 0
  store ptr %316, ptr %318, align 8
  %319 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIxLb0EEES3_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %24) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  br i1 %319, label %321, label %320

320:                                              ; preds = %315
  store i32 27, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  br label %330

321:                                              ; preds = %315
  %322 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8__detail14_Node_iteratorIxLb1ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #3
  %323 = call { ptr, i8 } @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE6insertERKx(ptr noundef nonnull align 8 dereferenceable(56) @s, ptr noundef nonnull align 8 dereferenceable(8) %322)
  %324 = getelementptr inbounds { ptr, i8 }, ptr %25, i32 0, i32 0
  %325 = extractvalue { ptr, i8 } %323, 0
  store ptr %325, ptr %324, align 8
  %326 = getelementptr inbounds { ptr, i8 }, ptr %25, i32 0, i32 1
  %327 = extractvalue { ptr, i8 } %323, 1
  store i8 %327, ptr %326, align 8
  br label %328

328:                                              ; preds = %321
  %329 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorIxLb1ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #3
  br label %315, !llvm.loop !24

330:                                              ; preds = %320
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #3
  %331 = call ptr @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) getelementptr inbounds ([2 x [610 x %"class.std::unordered_set"]], ptr @dp, i64 0, i64 1)) #3
  %332 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %26, i32 0, i32 0
  %333 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %332, i32 0, i32 0
  store ptr %331, ptr %333, align 8
  br label %334

334:                                              ; preds = %347, %330
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #3
  %335 = call ptr @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) getelementptr inbounds ([2 x [610 x %"class.std::unordered_set"]], ptr @dp, i64 0, i64 1)) #3
  %336 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %27, i32 0, i32 0
  %337 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %336, i32 0, i32 0
  store ptr %335, ptr %337, align 8
  %338 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIxLb0EEES3_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %27) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #3
  br i1 %338, label %340, label %339

339:                                              ; preds = %334
  store i32 30, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #3
  br label %349

340:                                              ; preds = %334
  %341 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8__detail14_Node_iteratorIxLb1ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #3
  %342 = call { ptr, i8 } @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE6insertERKx(ptr noundef nonnull align 8 dereferenceable(56) @s, ptr noundef nonnull align 8 dereferenceable(8) %341)
  %343 = getelementptr inbounds { ptr, i8 }, ptr %28, i32 0, i32 0
  %344 = extractvalue { ptr, i8 } %342, 0
  store ptr %344, ptr %343, align 8
  %345 = getelementptr inbounds { ptr, i8 }, ptr %28, i32 0, i32 1
  %346 = extractvalue { ptr, i8 } %342, 1
  store i8 %346, ptr %345, align 8
  br label %347

347:                                              ; preds = %340
  %348 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorIxLb1ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #3
  br label %334, !llvm.loop !25

349:                                              ; preds = %339
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #3
  ret void
}

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE6insertERKx(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

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

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

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


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

%"class.std::unordered_set" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z8generateii(i32 noundef, i32 noundef) local_unnamed_addr #0

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z4doitv() local_unnamed_addr #0 {
.preheader71:
  %0 = alloca i64, align 8
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %4 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %5 = alloca i64, align 8
  %6 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %7 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %8 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %9 = alloca %"struct.std::__detail::_Node_iterator", align 8
  br label %50

.preheader70.preheader:                           ; preds = %13
  %10 = add nsw i32 %48, -2
  %11 = zext nneg i32 %10 to i64
  br label %.preheader70

.preheader71.1:                                   ; preds = %50, %.preheader71.1
  %indvars.iv.1 = phi i64 [ %indvars.iv.next.1, %.preheader71.1 ], [ 0, %50 ]
  %12 = getelementptr inbounds [2 x [610 x %"class.std::unordered_set"]], ptr @dp, i64 0, i64 1, i64 %indvars.iv.1
  tail call void @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE5clearEv(ptr noundef nonnull align 8 dereferenceable(56) %12) #3
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv.1, 1
  %exitcond.1.not = icmp eq i64 %indvars.iv.next.1, 610
  br i1 %exitcond.1.not, label %13, label %.preheader71.1, !llvm.loop !5

13:                                               ; preds = %.preheader71.1
  %14 = load i32, ptr @n, align 4, !tbaa !7
  %15 = add nsw i32 %14, -1
  %16 = sext i32 %15 to i64
  %17 = getelementptr inbounds [610 x %"class.std::unordered_set"], ptr @dp, i64 0, i64 %16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %0) #3
  %18 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1gB5cxx11, i64 noundef %16)
  %19 = load i8, ptr %18, align 1, !tbaa !11
  %20 = sext i8 %19 to i64
  %21 = mul nsw i64 %20, 26
  %22 = load i32, ptr @n, align 4, !tbaa !7
  %23 = add nsw i32 %22, -1
  %24 = sext i32 %23 to i64
  %25 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) getelementptr inbounds (i8, ptr @_Z1gB5cxx11, i64 32), i64 noundef %24)
  %26 = load i8, ptr %25, align 1, !tbaa !11
  %27 = sext i8 %26 to i64
  %28 = add nsw i64 %21, -2592
  %29 = add nsw i64 %28, %27
  store i64 %29, ptr %0, align 8, !tbaa !12
  %30 = call { ptr, i8 } @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE6insertEOx(ptr noundef nonnull align 8 dereferenceable(56) %17, ptr noundef nonnull align 8 dereferenceable(8) %0)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %0) #3
  %31 = load i32, ptr @n, align 4, !tbaa !7
  %32 = add nsw i32 %31, -1
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [610 x %"class.std::unordered_set"], ptr getelementptr inbounds (i8, ptr @dp, i64 34160), i64 0, i64 %33
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #3
  %35 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) getelementptr inbounds (i8, ptr @_Z1gB5cxx11, i64 32), i64 noundef %33)
  %36 = load i8, ptr %35, align 1, !tbaa !11
  %37 = sext i8 %36 to i64
  %38 = mul nsw i64 %37, 26
  %39 = load i32, ptr @n, align 4, !tbaa !7
  %40 = add nsw i32 %39, -1
  %41 = sext i32 %40 to i64
  %42 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1gB5cxx11, i64 noundef %41)
  %43 = load i8, ptr %42, align 1, !tbaa !11
  %44 = sext i8 %43 to i64
  %45 = add nsw i64 %38, -2592
  %46 = add nsw i64 %45, %44
  store i64 %46, ptr %1, align 8, !tbaa !12
  %47 = call { ptr, i8 } @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE6insertEOx(ptr noundef nonnull align 8 dereferenceable(56) %34, ptr noundef nonnull align 8 dereferenceable(8) %1)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #3
  %48 = load i32, ptr @n, align 4, !tbaa !7
  %49 = icmp sgt i32 %48, 1
  br i1 %49, label %.preheader70.preheader, label %.split.us

50:                                               ; preds = %.preheader71, %50
  %indvars.iv = phi i64 [ 0, %.preheader71 ], [ %indvars.iv.next, %50 ]
  %51 = getelementptr inbounds [2 x [610 x %"class.std::unordered_set"]], ptr @dp, i64 0, i64 0, i64 %indvars.iv
  tail call void @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE5clearEv(ptr noundef nonnull align 8 dereferenceable(56) %51) #3
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 610
  br i1 %exitcond.not, label %.preheader71.1, label %50, !llvm.loop !5

.preheader70:                                     ; preds = %.preheader70.preheader, %._crit_edge86.1
  %indvars.iv107 = phi i64 [ %11, %.preheader70.preheader ], [ %indvars.iv.next108, %._crit_edge86.1 ]
  %52 = add nuw nsw i64 %indvars.iv107, 1
  %53 = load i32, ptr @n, align 4, !tbaa !7
  %54 = sext i32 %53 to i64
  %55 = icmp slt i64 %indvars.iv107, %54
  br i1 %55, label %.lr.ph, label %._crit_edge

.preheader68:                                     ; preds = %._crit_edge86.1
  %.pre = load i32, ptr @n, align 4, !tbaa !7
  %56 = icmp sgt i32 %.pre, 2
  br i1 %56, label %.lr.ph90, label %.split.us

.lr.ph:                                           ; preds = %.preheader70, %.lr.ph
  %indvars.iv109 = phi i64 [ %indvars.iv.next110, %.lr.ph ], [ %indvars.iv107, %.preheader70 ]
  %.05875 = phi i128 [ %.sext, %.lr.ph ], [ 0, %.preheader70 ]
  %57 = mul nsw i128 %.05875, 26
  %58 = srem i128 %57, 1344409044431
  %59 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1gB5cxx11, i64 noundef %indvars.iv109)
  %60 = load i8, ptr %59, align 1, !tbaa !11
  %61 = sext i8 %60 to i32
  %62 = add nsw i32 %61, -96
  %63 = sext i32 %62 to i128
  %64 = add nsw i128 %58, %63
  %.lhs.trunc = trunc nsw i128 %64 to i64
  %65 = srem i64 %.lhs.trunc, 1344409044431
  %.sext = sext i64 %65 to i128
  %indvars.iv.next110 = add nuw nsw i64 %indvars.iv109, 1
  %66 = load i32, ptr @n, align 4, !tbaa !7
  %67 = trunc nuw i64 %indvars.iv.next110 to i32
  %68 = icmp sgt i32 %66, %67
  br i1 %68, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !14

._crit_edge.loopexit:                             ; preds = %.lr.ph
  %.pre116 = sext i32 %66 to i64
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader70
  %.pre-phi = phi i64 [ %.pre116, %._crit_edge.loopexit ], [ %54, %.preheader70 ]
  %.058.lcssa = phi i128 [ %.sext, %._crit_edge.loopexit ], [ 0, %.preheader70 ]
  %.lcssa = phi i32 [ %66, %._crit_edge.loopexit ], [ %53, %.preheader70 ]
  %.not.not77 = icmp sgt i64 %.pre-phi, %indvars.iv107
  %extract.t = trunc nsw i128 %.058.lcssa to i64
  br i1 %.not.not77, label %.lr.ph81, label %._crit_edge82

.lr.ph81:                                         ; preds = %._crit_edge, %.lr.ph81
  %.179 = phi i128 [ %.sext67, %.lr.ph81 ], [ %.058.lcssa, %._crit_edge ]
  %.164.in78 = phi i32 [ %.164, %.lr.ph81 ], [ %.lcssa, %._crit_edge ]
  %.164 = add nsw i32 %.164.in78, -1
  %69 = mul nsw i128 %.179, 26
  %70 = srem i128 %69, 1344409044431
  %71 = zext nneg i32 %.164 to i64
  %72 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) getelementptr inbounds (i8, ptr @_Z1gB5cxx11, i64 32), i64 noundef %71)
  %73 = load i8, ptr %72, align 1, !tbaa !11
  %74 = sext i8 %73 to i32
  %75 = add nsw i32 %74, -96
  %76 = sext i32 %75 to i128
  %77 = add nsw i128 %70, %76
  %.lhs.trunc66 = trunc nsw i128 %77 to i64
  %78 = srem i64 %.lhs.trunc66, 1344409044431
  %.sext67 = sext i64 %78 to i128
  %79 = sext i32 %.164 to i64
  %.not.not = icmp slt i64 %indvars.iv107, %79
  br i1 %.not.not, label %.lr.ph81, label %._crit_edge82, !llvm.loop !15

._crit_edge82:                                    ; preds = %.lr.ph81, %._crit_edge
  %.1.lcssa.off0 = phi i64 [ %extract.t, %._crit_edge ], [ %78, %.lr.ph81 ]
  %80 = getelementptr inbounds [2 x [610 x %"class.std::unordered_set"]], ptr @dp, i64 0, i64 0, i64 %indvars.iv107
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #3
  store i64 %.1.lcssa.off0, ptr %2, align 8, !tbaa !12
  %81 = call { ptr, i8 } @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE6insertEOx(ptr noundef nonnull align 8 dereferenceable(56) %80, ptr noundef nonnull align 8 dereferenceable(8) %2)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #3
  %82 = load i32, ptr @n, align 4, !tbaa !7
  %83 = trunc nuw nsw i64 %indvars.iv107 to i32
  %84 = sub nsw i32 %82, %83
  %85 = shl nsw i32 %84, 1
  %86 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1gB5cxx11, i64 noundef %indvars.iv107)
  %87 = load i8, ptr %86, align 1, !tbaa !11
  %88 = sext i8 %87 to i64
  %89 = mul nsw i64 %88, 26
  %90 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) getelementptr inbounds (i8, ptr @_Z1gB5cxx11, i64 32), i64 noundef %indvars.iv107)
  %91 = load i8, ptr %90, align 1, !tbaa !11
  %92 = sext i8 %91 to i64
  %93 = add nsw i64 %89, -2592
  %94 = add nsw i64 %93, %92
  %95 = sext i64 %94 to i128
  %96 = add nsw i32 %85, -2
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [1220 x i64], ptr @pw, i64 0, i64 %97
  %99 = load i64, ptr %98, align 16, !tbaa !12
  %100 = sext i64 %99 to i128
  %101 = mul nsw i128 %95, %100
  %102 = srem i128 %101, 1344409044431
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
  %103 = getelementptr inbounds [2 x [610 x %"class.std::unordered_set"]], ptr @dp, i64 0, i64 1, i64 %52
  %104 = call ptr @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %103) #3
  store ptr %104, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
  %105 = call ptr @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %103) #3
  store ptr %105, ptr %4, align 8
  %106 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIxLb0EEES3_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
  br i1 %106, label %.lr.ph85, label %._crit_edge86

._crit_edge86:                                    ; preds = %.lr.ph85, %._crit_edge82
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
  %107 = load i32, ptr @n, align 4, !tbaa !7
  %108 = sext i32 %107 to i64
  %109 = icmp slt i64 %indvars.iv107, %108
  br i1 %109, label %.lr.ph.1, label %._crit_edge.1

.lr.ph.1:                                         ; preds = %._crit_edge86, %.lr.ph.1
  %indvars.iv109.1 = phi i64 [ %indvars.iv.next110.1, %.lr.ph.1 ], [ %indvars.iv107, %._crit_edge86 ]
  %.05875.1 = phi i128 [ %.sext.1, %.lr.ph.1 ], [ 0, %._crit_edge86 ]
  %110 = mul nsw i128 %.05875.1, 26
  %111 = srem i128 %110, 1344409044431
  %112 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) getelementptr inbounds (i8, ptr @_Z1gB5cxx11, i64 32), i64 noundef %indvars.iv109.1)
  %113 = load i8, ptr %112, align 1, !tbaa !11
  %114 = sext i8 %113 to i32
  %115 = add nsw i32 %114, -96
  %116 = sext i32 %115 to i128
  %117 = add nsw i128 %111, %116
  %.lhs.trunc.1 = trunc nsw i128 %117 to i64
  %118 = srem i64 %.lhs.trunc.1, 1344409044431
  %.sext.1 = sext i64 %118 to i128
  %indvars.iv.next110.1 = add nuw nsw i64 %indvars.iv109.1, 1
  %119 = load i32, ptr @n, align 4, !tbaa !7
  %120 = trunc nuw i64 %indvars.iv.next110.1 to i32
  %121 = icmp sgt i32 %119, %120
  br i1 %121, label %.lr.ph.1, label %._crit_edge.loopexit.1, !llvm.loop !14

._crit_edge.loopexit.1:                           ; preds = %.lr.ph.1
  %.pre117 = sext i32 %119 to i64
  br label %._crit_edge.1

._crit_edge.1:                                    ; preds = %._crit_edge.loopexit.1, %._crit_edge86
  %.pre-phi118 = phi i64 [ %.pre117, %._crit_edge.loopexit.1 ], [ %108, %._crit_edge86 ]
  %.058.lcssa.1 = phi i128 [ %.sext.1, %._crit_edge.loopexit.1 ], [ 0, %._crit_edge86 ]
  %.lcssa.1 = phi i32 [ %119, %._crit_edge.loopexit.1 ], [ %107, %._crit_edge86 ]
  %.not.not77.1 = icmp sgt i64 %.pre-phi118, %indvars.iv107
  %extract.t.1 = trunc nsw i128 %.058.lcssa.1 to i64
  br i1 %.not.not77.1, label %.lr.ph81.1, label %._crit_edge82.1

.lr.ph81.1:                                       ; preds = %._crit_edge.1, %.lr.ph81.1
  %.179.1 = phi i128 [ %.sext67.1, %.lr.ph81.1 ], [ %.058.lcssa.1, %._crit_edge.1 ]
  %.164.in78.1 = phi i32 [ %.164.1, %.lr.ph81.1 ], [ %.lcssa.1, %._crit_edge.1 ]
  %.164.1 = add nsw i32 %.164.in78.1, -1
  %122 = mul nsw i128 %.179.1, 26
  %123 = srem i128 %122, 1344409044431
  %124 = zext nneg i32 %.164.1 to i64
  %125 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1gB5cxx11, i64 noundef %124)
  %126 = load i8, ptr %125, align 1, !tbaa !11
  %127 = sext i8 %126 to i32
  %128 = add nsw i32 %127, -96
  %129 = sext i32 %128 to i128
  %130 = add nsw i128 %123, %129
  %.lhs.trunc66.1 = trunc nsw i128 %130 to i64
  %131 = srem i64 %.lhs.trunc66.1, 1344409044431
  %.sext67.1 = sext i64 %131 to i128
  %132 = sext i32 %.164.1 to i64
  %.not.not.1 = icmp slt i64 %indvars.iv107, %132
  br i1 %.not.not.1, label %.lr.ph81.1, label %._crit_edge82.1, !llvm.loop !15

._crit_edge82.1:                                  ; preds = %.lr.ph81.1, %._crit_edge.1
  %.1.lcssa.off0.1 = phi i64 [ %extract.t.1, %._crit_edge.1 ], [ %131, %.lr.ph81.1 ]
  %133 = getelementptr inbounds [2 x [610 x %"class.std::unordered_set"]], ptr @dp, i64 0, i64 1, i64 %indvars.iv107
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #3
  store i64 %.1.lcssa.off0.1, ptr %2, align 8, !tbaa !12
  %134 = call { ptr, i8 } @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE6insertEOx(ptr noundef nonnull align 8 dereferenceable(56) %133, ptr noundef nonnull align 8 dereferenceable(8) %2)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #3
  %135 = load i32, ptr @n, align 4, !tbaa !7
  %136 = sub nsw i32 %135, %83
  %137 = shl nsw i32 %136, 1
  %138 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) getelementptr inbounds (i8, ptr @_Z1gB5cxx11, i64 32), i64 noundef %indvars.iv107)
  %139 = load i8, ptr %138, align 1, !tbaa !11
  %140 = sext i8 %139 to i64
  %141 = mul nsw i64 %140, 26
  %142 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1gB5cxx11, i64 noundef %indvars.iv107)
  %143 = load i8, ptr %142, align 1, !tbaa !11
  %144 = sext i8 %143 to i64
  %145 = add nsw i64 %141, -2592
  %146 = add nsw i64 %145, %144
  %147 = sext i64 %146 to i128
  %148 = add nsw i32 %137, -2
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [1220 x i64], ptr @pw, i64 0, i64 %149
  %151 = load i64, ptr %150, align 16, !tbaa !12
  %152 = sext i64 %151 to i128
  %153 = mul nsw i128 %147, %152
  %154 = srem i128 %153, 1344409044431
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
  %155 = getelementptr inbounds [2 x [610 x %"class.std::unordered_set"]], ptr @dp, i64 0, i64 0, i64 %52
  %156 = call ptr @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %155) #3
  store ptr %156, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
  %157 = call ptr @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %155) #3
  store ptr %157, ptr %4, align 8
  %158 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIxLb0EEES3_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
  br i1 %158, label %.lr.ph85.1, label %._crit_edge86.1

.lr.ph85.1:                                       ; preds = %._crit_edge82.1, %.lr.ph85.1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  %159 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8__detail14_Node_iteratorIxLb1ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #3
  %160 = load i64, ptr %159, align 8, !tbaa !12
  %161 = sext i64 %160 to i128
  %162 = add nsw i128 %154, %161
  %163 = srem i128 %162, 1344409044431
  %164 = trunc nsw i128 %163 to i64
  store i64 %164, ptr %5, align 8, !tbaa !12
  %165 = call { ptr, i8 } @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE6insertEOx(ptr noundef nonnull align 8 dereferenceable(56) %133, ptr noundef nonnull align 8 dereferenceable(8) %5)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  %166 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorIxLb1ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
  %167 = call ptr @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %155) #3
  store ptr %167, ptr %4, align 8
  %168 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIxLb0EEES3_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
  br i1 %168, label %.lr.ph85.1, label %._crit_edge86.1, !llvm.loop !16

._crit_edge86.1:                                  ; preds = %.lr.ph85.1, %._crit_edge82.1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
  %indvars.iv.next108 = add nsw i64 %indvars.iv107, -1
  %169 = icmp sgt i64 %indvars.iv107, 0
  br i1 %169, label %.preheader70, label %.preheader68, !llvm.loop !17

.lr.ph85:                                         ; preds = %._crit_edge82, %.lr.ph85
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  %170 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8__detail14_Node_iteratorIxLb1ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #3
  %171 = load i64, ptr %170, align 8, !tbaa !12
  %172 = sext i64 %171 to i128
  %173 = add nsw i128 %102, %172
  %174 = srem i128 %173, 1344409044431
  %175 = trunc nsw i128 %174 to i64
  store i64 %175, ptr %5, align 8, !tbaa !12
  %176 = call { ptr, i8 } @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE6insertEOx(ptr noundef nonnull align 8 dereferenceable(56) %80, ptr noundef nonnull align 8 dereferenceable(8) %5)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  %177 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorIxLb1ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
  %178 = call ptr @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %103) #3
  store ptr %178, ptr %4, align 8
  %179 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIxLb0EEES3_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
  br i1 %179, label %.lr.ph85, label %._crit_edge86, !llvm.loop !16

.split.us:                                        ; preds = %.lr.ph90.1, %13, %._crit_edge91, %.preheader68
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
  %180 = call ptr @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) @dp) #3
  store ptr %180, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #3
  %181 = call ptr @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) @dp) #3
  store ptr %181, ptr %7, align 8
  %182 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIxLb0EEES3_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #3
  br i1 %182, label %.lr.ph94, label %._crit_edge95

._crit_edge91:                                    ; preds = %.lr.ph90
  %183 = icmp sgt i32 %189, 2
  br i1 %183, label %.lr.ph90.1, label %.split.us

.lr.ph90.1:                                       ; preds = %._crit_edge91, %.lr.ph90.1
  %.05989.1 = phi i32 [ %184, %.lr.ph90.1 ], [ 1, %._crit_edge91 ]
  call void @_Z8generateii(i32 noundef 1, i32 noundef %.05989.1)
  %184 = add nuw nsw i32 %.05989.1, 1
  %185 = load i32, ptr @n, align 4, !tbaa !7
  %186 = add nsw i32 %185, -1
  %187 = icmp slt i32 %184, %186
  br i1 %187, label %.lr.ph90.1, label %.split.us, !llvm.loop !18

.lr.ph90:                                         ; preds = %.preheader68, %.lr.ph90
  %.05989 = phi i32 [ %188, %.lr.ph90 ], [ 1, %.preheader68 ]
  call void @_Z8generateii(i32 noundef 0, i32 noundef %.05989)
  %188 = add nuw nsw i32 %.05989, 1
  %189 = load i32, ptr @n, align 4, !tbaa !7
  %190 = add nsw i32 %189, -1
  %191 = icmp slt i32 %188, %190
  br i1 %191, label %.lr.ph90, label %._crit_edge91, !llvm.loop !18

._crit_edge95:                                    ; preds = %.lr.ph94, %.split.us
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #3
  %192 = call ptr @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) getelementptr inbounds (i8, ptr @dp, i64 34160)) #3
  store ptr %192, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #3
  %193 = call ptr @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) getelementptr inbounds (i8, ptr @dp, i64 34160)) #3
  store ptr %193, ptr %9, align 8
  %194 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIxLb0EEES3_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #3
  br i1 %194, label %.lr.ph97, label %._crit_edge98

.lr.ph94:                                         ; preds = %.split.us, %.lr.ph94
  %195 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8__detail14_Node_iteratorIxLb1ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #3
  %196 = call { ptr, i8 } @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE6insertERKx(ptr noundef nonnull align 8 dereferenceable(56) @s, ptr noundef nonnull align 8 dereferenceable(8) %195)
  %197 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorIxLb1ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #3
  %198 = call ptr @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) @dp) #3
  store ptr %198, ptr %7, align 8
  %199 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIxLb0EEES3_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #3
  br i1 %199, label %.lr.ph94, label %._crit_edge95, !llvm.loop !19

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

.lr.ph97:                                         ; preds = %._crit_edge95, %.lr.ph97
  %200 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8__detail14_Node_iteratorIxLb1ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #3
  %201 = call { ptr, i8 } @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE6insertERKx(ptr noundef nonnull align 8 dereferenceable(56) @s, ptr noundef nonnull align 8 dereferenceable(8) %200)
  %202 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorIxLb1ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #3
  %203 = call ptr @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) getelementptr inbounds (i8, ptr @dp, i64 34160)) #3
  store ptr %203, ptr %9, align 8
  %204 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIxLb0EEES3_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #3
  br i1 %204, label %.lr.ph97, label %._crit_edge98, !llvm.loop !20
}

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

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

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

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

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


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