; LLVM IR from tangjz/acm-icpc :: 51nod (1111)

; 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_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"struct.std::pair" = type { i32, i32 }
%"struct.std::pair.4" = type { i32, i32 }
%"struct.std::pair.2" = 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 }
%"struct.std::hash" = type { i8 }
%"struct.std::equal_to" = type { i8 }
%"class.std::allocator.6" = type { i8 }

@n = external dso_local global i32, align 4
@L = external dso_local global i32, align 4
@R = external dso_local global i32, align 4
@pw = external dso_local global i32, align 4
@ppw = external dso_local global i32, align 4
@r = external dso_local global i32, align 4
@mod = external dso_local global i32, align 4
@High = external dso_local global %"class.std::unordered_map", align 8
@Low = external dso_local global %"class.std::unordered_map", align 8
@tmp = external dso_local global %"class.std::unordered_map", align 8
@staHI = external dso_local global i32, align 4
@endHI = external dso_local global i32, align 4
@szLO = external dso_local global i32, align 4
@queHI = external dso_local global [1200001 x %"struct.std::pair"], align 16
@queLO = external dso_local global [1200001 x %"struct.std::pair"], align 16
@ans = external dso_local global %"struct.std::pair", align 4
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1

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

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

; 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 noundef i32 @_Z7mod_invii(i32 noundef, i32 noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5printv() #2

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #3 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca %"struct.std::pair", align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %"struct.std::pair.4", align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %"struct.std::pair.2", align 8
  %9 = alloca %"struct.std::pair", align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %"struct.std::pair.4", align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca %"struct.std::pair.2", align 8
  %16 = alloca i8, align 1
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca %"struct.std::pair", align 4
  %21 = alloca %"struct.std::pair.4", align 4
  %22 = alloca %"struct.std::pair.2", align 8
  %23 = alloca i32, align 4
  %24 = alloca %"class.std::unordered_map", align 8
  %25 = alloca i32, align 4
  %26 = alloca %"struct.std::hash", align 1
  %27 = alloca %"struct.std::equal_to", align 1
  %28 = alloca %"class.std::allocator.6", align 1
  %29 = alloca ptr, align 8
  %30 = alloca i32, align 4
  %31 = alloca ptr, align 8
  %32 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %33 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %34 = alloca ptr, align 8
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca %"struct.std::pair.4", align 4
  %38 = alloca %"struct.std::pair.2", align 8
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  %43 = alloca i32, align 4
  %44 = alloca %"struct.std::pair", align 4
  %45 = alloca %"struct.std::pair", align 4
  %46 = alloca i32, align 4
  %47 = alloca i32, align 4
  %48 = alloca i32, align 4
  %49 = alloca %"struct.std::pair", align 4
  %50 = alloca %"struct.std::pair.4", align 4
  %51 = alloca %"struct.std::pair.2", align 8
  %52 = alloca %"struct.std::pair", align 4
  %53 = alloca %"struct.std::pair.4", align 4
  %54 = alloca %"struct.std::pair.2", align 8
  %55 = alloca i32, align 4
  %56 = alloca %"struct.std::pair", align 4
  store i32 0, ptr %1, align 4
  %57 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n)
  %58 = load i32, ptr @n, align 4, !tbaa !5
  %59 = icmp eq i32 %58, 1
  br i1 %59, label %60, label %62

60:                                               ; preds = %0
  %61 = call i32 @puts(ptr noundef @.str.5)
  store i32 0, ptr %1, align 4
  br label %384

62:                                               ; preds = %0
  store i32 0, ptr @staHI, align 4, !tbaa !5
  store i32 1, ptr @endHI, align 4, !tbaa !5
  store i32 1, ptr @L, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  store i32 1, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  store i32 -1, ptr %4, align 4, !tbaa !5
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8) %2, ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %63 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) @queHI, ptr noundef nonnull align 4 dereferenceable(8) %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  store i32 1, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  store i32 0, ptr %7, align 4, !tbaa !5
  call void @_ZNSt4pairIKiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %64 = call { ptr, i8 } @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEE6insertEOS6_(ptr noundef nonnull align 8 dereferenceable(56) @High, ptr noundef nonnull align 4 dereferenceable(8) %5)
  %65 = getelementptr inbounds { ptr, i8 }, ptr %8, i32 0, i32 0
  %66 = extractvalue { ptr, i8 } %64, 0
  store ptr %66, ptr %65, align 8
  %67 = getelementptr inbounds { ptr, i8 }, ptr %8, i32 0, i32 1
  %68 = extractvalue { ptr, i8 } %64, 1
  store i8 %68, ptr %67, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  store i32 0, ptr @R, align 4, !tbaa !5
  store i32 1, ptr @szLO, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 0, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 -1, ptr %11, align 4, !tbaa !5
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %69 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) @queLO, ptr noundef nonnull align 4 dereferenceable(8) %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 0, ptr %14, align 4, !tbaa !5
  call void @_ZNSt4pairIKiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %14)
  %70 = call { ptr, i8 } @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEE6insertEOS6_(ptr noundef nonnull align 8 dereferenceable(56) @Low, ptr noundef nonnull align 4 dereferenceable(8) %12)
  %71 = getelementptr inbounds { ptr, i8 }, ptr %15, i32 0, i32 0
  %72 = extractvalue { ptr, i8 } %70, 0
  store ptr %72, ptr %71, align 8
  %73 = getelementptr inbounds { ptr, i8 }, ptr %15, i32 0, i32 1
  %74 = extractvalue { ptr, i8 } %70, 1
  store i8 %74, ptr %73, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  store i32 1, ptr @ppw, align 4, !tbaa !5
  store i32 1, ptr @r, align 4, !tbaa !5
  store i32 1, ptr @pw, align 4, !tbaa !5
  %75 = load i32, ptr @n, align 4, !tbaa !5
  store i32 %75, ptr @mod, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #7
  store i8 0, ptr %16, align 1, !tbaa !9
  br label %76

76:                                               ; preds = %382, %62
  %77 = load i8, ptr %16, align 1, !tbaa !9, !range !11, !noundef !12
  %78 = trunc i8 %77 to i1
  %79 = xor i1 %78, true
  br i1 %79, label %80, label %383

80:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 0, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %81 = load i32, ptr @szLO, align 4, !tbaa !5
  store i32 %81, ptr %18, align 4, !tbaa !5
  br label %82

82:                                               ; preds = %118, %80
  %83 = load i32, ptr %17, align 4, !tbaa !5
  %84 = load i32, ptr %18, align 4, !tbaa !5
  %85 = icmp slt i32 %83, %84
  br i1 %85, label %87, label %86

86:                                               ; preds = %82
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %121

87:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %88 = load i32, ptr %17, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [1200001 x %"struct.std::pair"], ptr @queLO, i64 0, i64 %89
  %91 = getelementptr inbounds %"struct.std::pair", ptr %90, i32 0, i32 0
  %92 = load i32, ptr %91, align 8, !tbaa !13
  %93 = load i32, ptr @pw, align 4, !tbaa !5
  %94 = add nsw i32 %92, %93
  store i32 %94, ptr %19, align 4, !tbaa !5
  %95 = load i32, ptr %19, align 4, !tbaa !5
  %96 = load i32, ptr @n, align 4, !tbaa !5
  %97 = icmp sge i32 %95, %96
  br i1 %97, label %98, label %102

98:                                               ; preds = %87
  %99 = load i32, ptr @n, align 4, !tbaa !5
  %100 = load i32, ptr %19, align 4, !tbaa !5
  %101 = sub nsw i32 %100, %99
  store i32 %101, ptr %19, align 4, !tbaa !5
  br label %102

102:                                              ; preds = %98, %87
  %103 = call noundef i64 @_ZNKSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEE5countERS5_(ptr noundef nonnull align 8 dereferenceable(56) @Low, ptr noundef nonnull align 4 dereferenceable(4) %19)
  %104 = icmp ne i64 %103, 0
  br i1 %104, label %117, label %105

105:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %20, ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) @R)
  %106 = load i32, ptr @szLO, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [1200001 x %"struct.std::pair"], ptr @queLO, i64 0, i64 %107
  %109 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %108, ptr noundef nonnull align 4 dereferenceable(8) %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  call void @_ZNSt4pairIKiiEC2IRiS3_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 4 dereferenceable(8) %21, ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) @szLO)
  %110 = call { ptr, i8 } @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEE6insertEOS6_(ptr noundef nonnull align 8 dereferenceable(56) @Low, ptr noundef nonnull align 4 dereferenceable(8) %21)
  %111 = getelementptr inbounds { ptr, i8 }, ptr %22, i32 0, i32 0
  %112 = extractvalue { ptr, i8 } %110, 0
  store ptr %112, ptr %111, align 8
  %113 = getelementptr inbounds { ptr, i8 }, ptr %22, 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 %21) #7
  %115 = load i32, ptr @szLO, align 4, !tbaa !5
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr @szLO, align 4, !tbaa !5
  br label %117

117:                                              ; preds = %105, %102
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %118

118:                                              ; preds = %117
  %119 = load i32, ptr %17, align 4, !tbaa !5
  %120 = add nsw i32 %119, 1
  store i32 %120, ptr %17, align 4, !tbaa !5
  br label %82, !llvm.loop !15

121:                                              ; preds = %86
  %122 = load i32, ptr @R, align 4, !tbaa !5
  %123 = add nsw i32 %122, 1
  store i32 %123, ptr @R, align 4, !tbaa !5
  %124 = load i32, ptr @pw, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = mul nsw i64 10, %125
  %127 = load i32, ptr @n, align 4, !tbaa !5
  %128 = sext i32 %127 to i64
  %129 = srem i64 %126, %128
  %130 = trunc i64 %129 to i32
  store i32 %130, ptr @pw, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  %131 = load i32, ptr @mod, align 4, !tbaa !5
  %132 = call noundef i32 @_ZSt5__gcdIiET_S0_S0_(i32 noundef 10, i32 noundef %131)
  store i32 %132, ptr %23, align 4, !tbaa !5
  %133 = load i32, ptr %23, align 4, !tbaa !5
  %134 = load i32, ptr @r, align 4, !tbaa !5
  %135 = mul nsw i32 %134, %133
  store i32 %135, ptr @r, align 4, !tbaa !5
  %136 = load i32, ptr %23, align 4, !tbaa !5
  %137 = sdiv i32 10, %136
  %138 = sext i32 %137 to i64
  %139 = load i32, ptr @ppw, align 4, !tbaa !5
  %140 = sext i32 %139 to i64
  %141 = mul nsw i64 %138, %140
  %142 = load i32, ptr @n, align 4, !tbaa !5
  %143 = sext i32 %142 to i64
  %144 = srem i64 %141, %143
  %145 = trunc i64 %144 to i32
  store i32 %145, ptr @ppw, align 4, !tbaa !5
  %146 = load i32, ptr %23, align 4, !tbaa !5
  %147 = load i32, ptr @mod, align 4, !tbaa !5
  %148 = sdiv i32 %147, %146
  store i32 %148, ptr @mod, align 4, !tbaa !5
  %149 = load i32, ptr %23, align 4, !tbaa !5
  %150 = icmp sgt i32 %149, 1
  br i1 %150, label %151, label %202

151:                                              ; preds = %121
  call void @llvm.lifetime.start.p0(i64 56, ptr %24) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  %152 = call noundef i64 @_ZNKSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(56) @High) #7
  %153 = trunc i64 %152 to i32
  store i32 %153, ptr %25, align 4, !tbaa !5
  %154 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @mod, ptr noundef nonnull align 4 dereferenceable(4) %25)
  %155 = load i32, ptr %154, align 4, !tbaa !5
  %156 = sext i32 %155 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %26) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #7
  call void @_ZNSaISt4pairIKiiEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #7
  invoke void @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEEC2EmRKS1_RKS3_RKS7_(ptr noundef nonnull align 8 dereferenceable(56) %24, i64 noundef %156, ptr noundef nonnull align 1 dereferenceable(1) %26, ptr noundef nonnull align 1 dereferenceable(1) %27, ptr noundef nonnull align 1 dereferenceable(1) %28)
          to label %157 unwind label %167

157:                                              ; preds = %151
  call void @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEE4swapERS8_(ptr noundef nonnull align 8 dereferenceable(56) %24, ptr noundef nonnull align 8 dereferenceable(56) @tmp) #7
  call void @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %24) #7
  call void @_ZNSt15__new_allocatorISt4pairIKiiEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr %24) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  store ptr @High, ptr %31, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #7
  %158 = call ptr @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) @High) #7
  %159 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %32, i32 0, i32 0
  %160 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %159, i32 0, i32 0
  store ptr %158, ptr %160, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #7
  %161 = call ptr @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) @High) #7
  %162 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %33, i32 0, i32 0
  %163 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %162, i32 0, i32 0
  store ptr %161, ptr %163, align 8
  br label %164

164:                                              ; preds = %199, %157
  %165 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKiiELb0EEES6_(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull align 8 dereferenceable(8) %33) #7
  br i1 %165, label %171, label %166

166:                                              ; preds = %164
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  br label %201

167:                                              ; preds = %151
  %168 = landingpad { ptr, i32 }
          cleanup
  %169 = extractvalue { ptr, i32 } %168, 0
  store ptr %169, ptr %29, align 8
  %170 = extractvalue { ptr, i32 } %168, 1
  store i32 %170, ptr %30, align 4
  call void @_ZNSt15__new_allocatorISt4pairIKiiEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #7
  br label %386

171:                                              ; preds = %164
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #7
  %172 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKiiELb0ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %32) #7
  store ptr %172, ptr %34, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #7
  %173 = load ptr, ptr %34, align 8, !tbaa !17
  %174 = getelementptr inbounds %"struct.std::pair.4", ptr %173, i32 0, i32 0
  %175 = load i32, ptr %174, align 4, !tbaa !19
  %176 = load i32, ptr @mod, align 4, !tbaa !5
  %177 = srem i32 %175, %176
  store i32 %177, ptr %35, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #7
  %178 = load ptr, ptr %34, align 8, !tbaa !17
  %179 = getelementptr inbounds %"struct.std::pair.4", ptr %178, i32 0, i32 1
  %180 = load i32, ptr %179, align 4, !tbaa !21
  store i32 %180, ptr %36, align 4, !tbaa !5
  %181 = call noundef i64 @_ZNKSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEE5countERS5_(ptr noundef nonnull align 8 dereferenceable(56) @tmp, ptr noundef nonnull align 4 dereferenceable(4) %35)
  %182 = icmp ne i64 %181, 0
  br i1 %182, label %189, label %183

183:                                              ; preds = %171
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #7
  call void @_ZNSt4pairIKiiEC2IRiS3_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 4 dereferenceable(8) %37, ptr noundef nonnull align 4 dereferenceable(4) %35, ptr noundef nonnull align 4 dereferenceable(4) %36)
  %184 = call { ptr, i8 } @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEE6insertEOS6_(ptr noundef nonnull align 8 dereferenceable(56) @tmp, ptr noundef nonnull align 4 dereferenceable(8) %37)
  %185 = getelementptr inbounds { ptr, i8 }, ptr %38, i32 0, i32 0
  %186 = extractvalue { ptr, i8 } %184, 0
  store ptr %186, ptr %185, align 8
  %187 = getelementptr inbounds { ptr, i8 }, ptr %38, i32 0, i32 1
  %188 = extractvalue { ptr, i8 } %184, 1
  store i8 %188, ptr %187, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #7
  br label %198

189:                                              ; preds = %171
  %190 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) @tmp, ptr noundef nonnull align 4 dereferenceable(4) %35)
  %191 = load i32, ptr %190, align 4, !tbaa !5
  %192 = load i32, ptr %36, align 4, !tbaa !5
  %193 = icmp sgt i32 %191, %192
  br i1 %193, label %194, label %197

194:                                              ; preds = %189
  %195 = load i32, ptr %36, align 4, !tbaa !5
  %196 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) @tmp, ptr noundef nonnull align 4 dereferenceable(4) %35)
  store i32 %195, ptr %196, align 4, !tbaa !5
  br label %197

197:                                              ; preds = %194, %189
  br label %198

198:                                              ; preds = %197, %183
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #7
  br label %199

199:                                              ; preds = %198
  %200 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKiiELb0ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %32) #7
  br label %164

201:                                              ; preds = %166
  call void @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEE4swapERS8_(ptr noundef nonnull align 8 dereferenceable(56) @High, ptr noundef nonnull align 8 dereferenceable(56) @tmp) #7
  br label %202

202:                                              ; preds = %201, %121
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #7
  %203 = load i32, ptr @ppw, align 4, !tbaa !5
  %204 = load i32, ptr @mod, align 4, !tbaa !5
  %205 = call noundef i32 @_Z7mod_invii(i32 noundef %203, i32 noundef %204)
  store i32 %205, ptr %39, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #7
  store i32 0, ptr %40, align 4, !tbaa !5
  br label %206

206:                                              ; preds = %260, %202
  %207 = load i32, ptr %40, align 4, !tbaa !5
  %208 = load i32, ptr @szLO, align 4, !tbaa !5
  %209 = icmp slt i32 %207, %208
  br i1 %209, label %211, label %210

210:                                              ; preds = %206
  store i32 9, ptr %41, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #7
  br label %263

211:                                              ; preds = %206
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #7
  %212 = load i32, ptr %40, align 4, !tbaa !5
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds [1200001 x %"struct.std::pair"], ptr @queLO, i64 0, i64 %213
  %215 = getelementptr inbounds %"struct.std::pair", ptr %214, i32 0, i32 0
  %216 = load i32, ptr %215, align 8, !tbaa !13
  store i32 %216, ptr %42, align 4, !tbaa !5
  %217 = load i32, ptr %42, align 4, !tbaa !5
  %218 = icmp ne i32 %217, 0
  br i1 %218, label %219, label %223

219:                                              ; preds = %211
  %220 = load i32, ptr @n, align 4, !tbaa !5
  %221 = load i32, ptr %42, align 4, !tbaa !5
  %222 = sub nsw i32 %220, %221
  store i32 %222, ptr %42, align 4, !tbaa !5
  br label %223

223:                                              ; preds = %219, %211
  %224 = load i32, ptr %42, align 4, !tbaa !5
  %225 = load i32, ptr @r, align 4, !tbaa !5
  %226 = srem i32 %224, %225
  %227 = icmp ne i32 %226, 0
  br i1 %227, label %228, label %229

228:                                              ; preds = %223
  store i32 11, ptr %41, align 4
  br label %257

229:                                              ; preds = %223
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #7
  %230 = load i32, ptr %42, align 4, !tbaa !5
  %231 = load i32, ptr @r, align 4, !tbaa !5
  %232 = sdiv i32 %230, %231
  %233 = sext i32 %232 to i64
  %234 = load i32, ptr %39, align 4, !tbaa !5
  %235 = sext i32 %234 to i64
  %236 = mul nsw i64 %233, %235
  %237 = load i32, ptr @mod, align 4, !tbaa !5
  %238 = sext i32 %237 to i64
  %239 = srem i64 %236, %238
  %240 = trunc i64 %239 to i32
  store i32 %240, ptr %43, align 4, !tbaa !5
  %241 = call noundef i64 @_ZNKSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEE5countERS5_(ptr noundef nonnull align 8 dereferenceable(56) @High, ptr noundef nonnull align 4 dereferenceable(4) %43)
  %242 = icmp ne i64 %241, 0
  br i1 %242, label %243, label %256

243:                                              ; preds = %229
  %244 = load i8, ptr %16, align 1, !tbaa !9, !range !11, !noundef !12
  %245 = trunc i8 %244 to i1
  br i1 %245, label %249, label %246

246:                                              ; preds = %243
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #7
  %247 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) @High, ptr noundef nonnull align 4 dereferenceable(4) %43)
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %44, ptr noundef nonnull align 4 dereferenceable(4) %247, ptr noundef nonnull align 4 dereferenceable(4) %40)
  %248 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) @ans, ptr noundef nonnull align 4 dereferenceable(8) %44) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #7
  store i8 1, ptr %16, align 1, !tbaa !9
  br label %255

249:                                              ; preds = %243
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #7
  %250 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) @High, ptr noundef nonnull align 4 dereferenceable(4) %43)
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %45, ptr noundef nonnull align 4 dereferenceable(4) %250, ptr noundef nonnull align 4 dereferenceable(4) %40)
  %251 = call noundef zeroext i1 @_ZStgtIiiEbRKSt4pairIT_T0_ES5_(ptr noundef nonnull align 4 dereferenceable(8) @ans, ptr noundef nonnull align 4 dereferenceable(8) %45)
  br i1 %251, label %252, label %254

252:                                              ; preds = %249
  %253 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSERKS0_(ptr noundef nonnull align 4 dereferenceable(8) @ans, ptr noundef nonnull align 4 dereferenceable(8) %45)
  br label %254

254:                                              ; preds = %252, %249
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #7
  br label %255

255:                                              ; preds = %254, %246
  br label %256

256:                                              ; preds = %255, %229
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #7
  store i32 0, ptr %41, align 4
  br label %257

257:                                              ; preds = %256, %228
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #7
  %258 = load i32, ptr %41, align 4
  switch i32 %258, label %391 [
    i32 0, label %259
    i32 11, label %260
  ]

259:                                              ; preds = %257
  br label %260

260:                                              ; preds = %259, %257
  %261 = load i32, ptr %40, align 4, !tbaa !5
  %262 = add nsw i32 %261, 1
  store i32 %262, ptr %40, align 4, !tbaa !5
  br label %206, !llvm.loop !22

263:                                              ; preds = %210
  %264 = load i8, ptr %16, align 1, !tbaa !9, !range !11, !noundef !12
  %265 = trunc i8 %264 to i1
  br i1 %265, label %266, label %267

266:                                              ; preds = %263
  store i32 3, ptr %41, align 4
  br label %380

267:                                              ; preds = %263
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #7
  %268 = load i32, ptr @endHI, align 4, !tbaa !5
  store i32 %268, ptr %46, align 4, !tbaa !5
  br label %269

269:                                              ; preds = %336, %267
  %270 = load i32, ptr @staHI, align 4, !tbaa !5
  %271 = load i32, ptr @endHI, align 4, !tbaa !5
  %272 = icmp slt i32 %270, %271
  br i1 %272, label %273, label %339

273:                                              ; preds = %269
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #7
  %274 = load i32, ptr @staHI, align 4, !tbaa !5
  %275 = sext i32 %274 to i64
  %276 = getelementptr inbounds [1200001 x %"struct.std::pair"], ptr @queHI, i64 0, i64 %275
  %277 = getelementptr inbounds %"struct.std::pair", ptr %276, i32 0, i32 0
  %278 = load i32, ptr %277, align 8, !tbaa !13
  %279 = sext i32 %278 to i64
  %280 = mul nsw i64 10, %279
  %281 = load i32, ptr @n, align 4, !tbaa !5
  %282 = sext i32 %281 to i64
  %283 = srem i64 %280, %282
  %284 = trunc i64 %283 to i32
  store i32 %284, ptr %47, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #7
  %285 = load i32, ptr %47, align 4, !tbaa !5
  %286 = load i32, ptr @mod, align 4, !tbaa !5
  %287 = srem i32 %285, %286
  store i32 %287, ptr %48, align 4, !tbaa !5
  %288 = call noundef i64 @_ZNKSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEE5countERS5_(ptr noundef nonnull align 8 dereferenceable(56) @High, ptr noundef nonnull align 4 dereferenceable(4) %48)
  %289 = icmp ne i64 %288, 0
  br i1 %289, label %302, label %290

290:                                              ; preds = %273
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #7
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %49, ptr noundef nonnull align 4 dereferenceable(4) %47, ptr noundef nonnull align 4 dereferenceable(4) @staHI)
  %291 = load i32, ptr %46, align 4, !tbaa !5
  %292 = sext i32 %291 to i64
  %293 = getelementptr inbounds [1200001 x %"struct.std::pair"], ptr @queHI, i64 0, i64 %292
  %294 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %293, ptr noundef nonnull align 4 dereferenceable(8) %49) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #7
  call void @_ZNSt4pairIKiiEC2IRiS3_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 4 dereferenceable(8) %50, ptr noundef nonnull align 4 dereferenceable(4) %48, ptr noundef nonnull align 4 dereferenceable(4) %46)
  %295 = call { ptr, i8 } @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEE6insertEOS6_(ptr noundef nonnull align 8 dereferenceable(56) @High, ptr noundef nonnull align 4 dereferenceable(8) %50)
  %296 = getelementptr inbounds { ptr, i8 }, ptr %51, i32 0, i32 0
  %297 = extractvalue { ptr, i8 } %295, 0
  store ptr %297, ptr %296, align 8
  %298 = getelementptr inbounds { ptr, i8 }, ptr %51, i32 0, i32 1
  %299 = extractvalue { ptr, i8 } %295, 1
  store i8 %299, ptr %298, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #7
  %300 = load i32, ptr %46, align 4, !tbaa !5
  %301 = add nsw i32 %300, 1
  store i32 %301, ptr %46, align 4, !tbaa !5
  br label %302

302:                                              ; preds = %290, %273
  %303 = load i32, ptr %47, align 4, !tbaa !5
  %304 = add nsw i32 %303, 1
  store i32 %304, ptr %47, align 4, !tbaa !5
  %305 = load i32, ptr @n, align 4, !tbaa !5
  %306 = icmp sge i32 %304, %305
  br i1 %306, label %307, label %311

307:                                              ; preds = %302
  %308 = load i32, ptr @n, align 4, !tbaa !5
  %309 = load i32, ptr %47, align 4, !tbaa !5
  %310 = sub nsw i32 %309, %308
  store i32 %310, ptr %47, align 4, !tbaa !5
  br label %311

311:                                              ; preds = %307, %302
  %312 = load i32, ptr %48, align 4, !tbaa !5
  %313 = add nsw i32 %312, 1
  store i32 %313, ptr %48, align 4, !tbaa !5
  %314 = load i32, ptr @mod, align 4, !tbaa !5
  %315 = icmp sge i32 %313, %314
  br i1 %315, label %316, label %320

316:                                              ; preds = %311
  %317 = load i32, ptr @mod, align 4, !tbaa !5
  %318 = load i32, ptr %48, align 4, !tbaa !5
  %319 = sub nsw i32 %318, %317
  store i32 %319, ptr %48, align 4, !tbaa !5
  br label %320

320:                                              ; preds = %316, %311
  %321 = call noundef i64 @_ZNKSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEE5countERS5_(ptr noundef nonnull align 8 dereferenceable(56) @High, ptr noundef nonnull align 4 dereferenceable(4) %48)
  %322 = icmp ne i64 %321, 0
  br i1 %322, label %335, label %323

323:                                              ; preds = %320
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #7
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %52, ptr noundef nonnull align 4 dereferenceable(4) %47, ptr noundef nonnull align 4 dereferenceable(4) @staHI)
  %324 = load i32, ptr %46, align 4, !tbaa !5
  %325 = sext i32 %324 to i64
  %326 = getelementptr inbounds [1200001 x %"struct.std::pair"], ptr @queHI, i64 0, i64 %325
  %327 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %326, ptr noundef nonnull align 4 dereferenceable(8) %52) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #7
  call void @_ZNSt4pairIKiiEC2IRiS3_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 4 dereferenceable(8) %53, ptr noundef nonnull align 4 dereferenceable(4) %48, ptr noundef nonnull align 4 dereferenceable(4) %46)
  %328 = call { ptr, i8 } @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEE6insertEOS6_(ptr noundef nonnull align 8 dereferenceable(56) @High, ptr noundef nonnull align 4 dereferenceable(8) %53)
  %329 = getelementptr inbounds { ptr, i8 }, ptr %54, i32 0, i32 0
  %330 = extractvalue { ptr, i8 } %328, 0
  store ptr %330, ptr %329, align 8
  %331 = getelementptr inbounds { ptr, i8 }, ptr %54, i32 0, i32 1
  %332 = extractvalue { ptr, i8 } %328, 1
  store i8 %332, ptr %331, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #7
  %333 = load i32, ptr %46, align 4, !tbaa !5
  %334 = add nsw i32 %333, 1
  store i32 %334, ptr %46, align 4, !tbaa !5
  br label %335

335:                                              ; preds = %323, %320
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #7
  br label %336

336:                                              ; preds = %335
  %337 = load i32, ptr @staHI, align 4, !tbaa !5
  %338 = add nsw i32 %337, 1
  store i32 %338, ptr @staHI, align 4, !tbaa !5
  br label %269, !llvm.loop !23

339:                                              ; preds = %269
  %340 = load i32, ptr @L, align 4, !tbaa !5
  %341 = add nsw i32 %340, 1
  store i32 %341, ptr @L, align 4, !tbaa !5
  br label %342

342:                                              ; preds = %376, %339
  %343 = load i32, ptr @endHI, align 4, !tbaa !5
  %344 = load i32, ptr %46, align 4, !tbaa !5
  %345 = icmp slt i32 %343, %344
  br i1 %345, label %346, label %379

346:                                              ; preds = %342
  call void @llvm.lifetime.start.p0(i64 4, ptr %55) #7
  %347 = load i32, ptr @pw, align 4, !tbaa !5
  %348 = sext i32 %347 to i64
  %349 = load i32, ptr @endHI, align 4, !tbaa !5
  %350 = sext i32 %349 to i64
  %351 = getelementptr inbounds [1200001 x %"struct.std::pair"], ptr @queHI, i64 0, i64 %350
  %352 = getelementptr inbounds %"struct.std::pair", ptr %351, i32 0, i32 0
  %353 = load i32, ptr %352, align 8, !tbaa !13
  %354 = sext i32 %353 to i64
  %355 = mul nsw i64 %348, %354
  %356 = load i32, ptr @n, align 4, !tbaa !5
  %357 = sext i32 %356 to i64
  %358 = srem i64 %355, %357
  %359 = trunc i64 %358 to i32
  store i32 %359, ptr %55, align 4, !tbaa !5
  %360 = load i32, ptr %55, align 4, !tbaa !5
  %361 = icmp ne i32 %360, 0
  br i1 %361, label %362, label %366

362:                                              ; preds = %346
  %363 = load i32, ptr @n, align 4, !tbaa !5
  %364 = load i32, ptr %55, align 4, !tbaa !5
  %365 = sub nsw i32 %363, %364
  store i32 %365, ptr %55, align 4, !tbaa !5
  br label %366

366:                                              ; preds = %362, %346
  %367 = call noundef i64 @_ZNKSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEE5countERS5_(ptr noundef nonnull align 8 dereferenceable(56) @Low, ptr noundef nonnull align 4 dereferenceable(4) %55)
  %368 = icmp ne i64 %367, 0
  br i1 %368, label %369, label %372

369:                                              ; preds = %366
  call void @llvm.lifetime.start.p0(i64 8, ptr %56) #7
  %370 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) @Low, ptr noundef nonnull align 4 dereferenceable(4) %55)
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %56, ptr noundef nonnull align 4 dereferenceable(4) @endHI, ptr noundef nonnull align 4 dereferenceable(4) %370)
  %371 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) @ans, ptr noundef nonnull align 4 dereferenceable(8) %56) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #7
  store i8 1, ptr %16, align 1, !tbaa !9
  store i32 15, ptr %41, align 4
  br label %373

372:                                              ; preds = %366
  store i32 0, ptr %41, align 4
  br label %373

373:                                              ; preds = %372, %369
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #7
  %374 = load i32, ptr %41, align 4
  switch i32 %374, label %391 [
    i32 0, label %375
    i32 15, label %379
  ]

375:                                              ; preds = %373
  br label %376

376:                                              ; preds = %375
  %377 = load i32, ptr @endHI, align 4, !tbaa !5
  %378 = add nsw i32 %377, 1
  store i32 %378, ptr @endHI, align 4, !tbaa !5
  br label %342, !llvm.loop !24

379:                                              ; preds = %373, %342
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #7
  store i32 0, ptr %41, align 4
  br label %380

380:                                              ; preds = %379, %266
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  %381 = load i32, ptr %41, align 4
  switch i32 %381, label %391 [
    i32 0, label %382
    i32 3, label %383
  ]

382:                                              ; preds = %380
  br label %76, !llvm.loop !25

383:                                              ; preds = %380, %76
  call void @_Z5printv()
  store i32 0, ptr %1, align 4
  store i32 1, ptr %41, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #7
  br label %384

384:                                              ; preds = %383, %60
  %385 = load i32, ptr %1, align 4
  ret i32 %385

386:                                              ; preds = %167
  %387 = load ptr, ptr %29, align 8
  %388 = load i32, ptr %30, align 4
  %389 = insertvalue { ptr, i32 } poison, ptr %387, 0
  %390 = insertvalue { ptr, i32 } %389, i32 %388, 1
  resume { ptr, i32 } %390

391:                                              ; preds = %380, %373, %257
  unreachable
}

declare i32 @__isoc99_scanf(ptr noundef, ...) #4

declare i32 @puts(ptr noundef) #4

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNKSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEE5countERS5_(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 void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #5 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZSt5__gcdIiET_S0_S0_(i32 noundef, i32 noundef) #5

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaISt4pairIKiiEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEEC2EmRKS1_RKS3_RKS7_(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorISt4pairIKiiEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 align 2

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZStgtIiiEbRKSt4pairIT_T0_ES5_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #6

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !6, i64 0}
!14 = !{!"_ZTSSt4pairIiiE", !6, i64 0, !6, i64 4}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!18, !18, i64 0}
!18 = !{!"any pointer", !7, i64 0}
!19 = !{!20, !6, i64 0}
!20 = !{!"_ZTSSt4pairIKiiE", !6, i64 0, !6, i64 4}
!21 = !{!20, !6, i64 4}
!22 = distinct !{!22, !16}
!23 = distinct !{!23, !16}
!24 = distinct !{!24, !16}
!25 = distinct !{!25, !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::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"struct.std::pair" = type { i32, i32 }
%"struct.std::pair.4" = type { i32, i32 }
%"struct.std::hash" = type { i8 }
%"struct.std::equal_to" = type { i8 }
%"class.std::allocator.6" = type { i8 }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }

@n = external dso_local global i32, align 4
@L = external dso_local local_unnamed_addr global i32, align 4
@R = external dso_local global i32, align 4
@pw = external dso_local local_unnamed_addr global i32, align 4
@ppw = external dso_local local_unnamed_addr global i32, align 4
@r = external dso_local local_unnamed_addr global i32, align 4
@mod = external dso_local global i32, align 4
@High = external dso_local global %"class.std::unordered_map", align 8
@Low = external dso_local global %"class.std::unordered_map", align 8
@tmp = external dso_local global %"class.std::unordered_map", align 8
@staHI = external dso_local global i32, align 4
@endHI = external dso_local global i32, align 4
@szLO = external dso_local global i32, align 4
@queHI = external dso_local global [1200001 x %"struct.std::pair"], align 16
@queLO = external dso_local global [1200001 x %"struct.std::pair"], align 16
@ans = external dso_local global %"struct.std::pair", align 4
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1

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

; 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 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 noundef i32 @_Z7mod_invii(i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5printv() local_unnamed_addr #2

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"struct.std::pair", align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca %"struct.std::pair.4", align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"struct.std::pair", align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %"struct.std::pair.4", align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %"struct.std::pair", align 4
  %15 = alloca %"struct.std::pair.4", align 4
  %16 = alloca %"class.std::unordered_map", align 8
  %17 = alloca i32, align 4
  %18 = alloca %"struct.std::hash", align 1
  %19 = alloca %"struct.std::equal_to", align 1
  %20 = alloca %"class.std::allocator.6", align 1
  %21 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %22 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca %"struct.std::pair.4", align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca %"struct.std::pair", align 4
  %29 = alloca %"struct.std::pair", align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca %"struct.std::pair", align 4
  %34 = alloca %"struct.std::pair.4", align 4
  %35 = alloca %"struct.std::pair", align 4
  %36 = alloca %"struct.std::pair.4", align 4
  %37 = alloca i32, align 4
  %38 = alloca %"struct.std::pair", align 4
  %39 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n)
  %40 = load i32, ptr @n, align 4, !tbaa !5
  %41 = icmp eq i32 %40, 1
  br i1 %41, label %42, label %44

42:                                               ; preds = %0
  %43 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.5)
  br label %249

44:                                               ; preds = %0
  store i32 0, ptr @staHI, align 4, !tbaa !5
  store i32 1, ptr @endHI, align 4, !tbaa !5
  store i32 1, ptr @L, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  store i32 1, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  store i32 -1, ptr %3, align 4, !tbaa !5
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8) %1, ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %45 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) @queHI, ptr noundef nonnull align 4 dereferenceable(8) %1) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  store i32 1, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  store i32 0, ptr %6, align 4, !tbaa !5
  call void @_ZNSt4pairIKiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %46 = call { ptr, i8 } @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEE6insertEOS6_(ptr noundef nonnull align 8 dereferenceable(56) @High, ptr noundef nonnull align 4 dereferenceable(8) %4)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  store i32 0, ptr @R, align 4, !tbaa !5
  store i32 1, ptr @szLO, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #7
  store i32 0, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #7
  store i32 -1, ptr %9, align 4, !tbaa !5
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %47 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) @queLO, ptr noundef nonnull align 4 dereferenceable(8) %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #7
  store i32 0, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #7
  store i32 0, ptr %12, align 4, !tbaa !5
  call void @_ZNSt4pairIKiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %48 = call { ptr, i8 } @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEE6insertEOS6_(ptr noundef nonnull align 8 dereferenceable(56) @Low, ptr noundef nonnull align 4 dereferenceable(8) %10)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  store i32 1, ptr @ppw, align 4, !tbaa !5
  store i32 1, ptr @r, align 4, !tbaa !5
  store i32 1, ptr @pw, align 4, !tbaa !5
  %49 = load i32, ptr @n, align 4, !tbaa !5
  store i32 %49, ptr @mod, align 4, !tbaa !5
  br label %50

50:                                               ; preds = %44, %.loopexit
  %.03283 = phi i8 [ 0, %44 ], [ %.1.lcssa, %.loopexit ]
  %51 = load i32, ptr @szLO, align 4, !tbaa !5
  %52 = icmp sgt i32 %51, 0
  br i1 %52, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %50
  %wide.trip.count = zext nneg i32 %51 to i64
  br label %.lr.ph

._crit_edge:                                      ; preds = %95, %50
  %53 = load i32, ptr @R, align 4, !tbaa !5
  %54 = add nsw i32 %53, 1
  store i32 %54, ptr @R, align 4, !tbaa !5
  %55 = load i32, ptr @pw, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = mul nsw i64 %56, 10
  %58 = load i32, ptr @n, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = srem i64 %57, %59
  %61 = trunc nsw i64 %60 to i32
  store i32 %61, ptr @pw, align 4, !tbaa !5
  %62 = load i32, ptr @mod, align 4, !tbaa !5
  %63 = call noundef i32 @_ZSt5__gcdIiET_S0_S0_(i32 noundef 10, i32 noundef %62)
  %64 = load i32, ptr @r, align 4, !tbaa !5
  %65 = mul nsw i32 %64, %63
  store i32 %65, ptr @r, align 4, !tbaa !5
  %66 = sdiv i32 10, %63
  %67 = sext i32 %66 to i64
  %68 = load i32, ptr @ppw, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = mul nsw i64 %69, %67
  %71 = load i32, ptr @n, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = srem i64 %70, %72
  %74 = trunc nsw i64 %73 to i32
  store i32 %74, ptr @ppw, align 4, !tbaa !5
  %75 = load i32, ptr @mod, align 4, !tbaa !5
  %76 = sdiv i32 %75, %63
  store i32 %76, ptr @mod, align 4, !tbaa !5
  %77 = icmp sgt i32 %63, 1
  br i1 %77, label %96, label %127

.lr.ph:                                           ; preds = %.lr.ph.preheader, %95
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %95 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #7
  %78 = getelementptr inbounds [1200001 x %"struct.std::pair"], ptr @queLO, i64 0, i64 %indvars.iv
  %79 = load i32, ptr %78, align 8, !tbaa !9
  %80 = load i32, ptr @pw, align 4, !tbaa !5
  %81 = add nsw i32 %80, %79
  store i32 %81, ptr %13, align 4, !tbaa !5
  %82 = load i32, ptr @n, align 4, !tbaa !5
  %.not56 = icmp slt i32 %81, %82
  br i1 %.not56, label %85, label %83

83:                                               ; preds = %.lr.ph
  %84 = sub nsw i32 %81, %82
  store i32 %84, ptr %13, align 4, !tbaa !5
  br label %85

85:                                               ; preds = %83, %.lr.ph
  %86 = call noundef i64 @_ZNKSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEE5countERS5_(ptr noundef nonnull align 8 dereferenceable(56) @Low, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %.not57 = icmp eq i64 %86, 0
  br i1 %.not57, label %87, label %95

87:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #7
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) @R)
  %88 = load i32, ptr @szLO, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [1200001 x %"struct.std::pair"], ptr @queLO, i64 0, i64 %89
  %91 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %90, ptr noundef nonnull align 4 dereferenceable(8) %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #7
  call void @_ZNSt4pairIKiiEC2IRiS3_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 4 dereferenceable(8) %15, ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) @szLO)
  %92 = call { ptr, i8 } @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEE6insertEOS6_(ptr noundef nonnull align 8 dereferenceable(56) @Low, ptr noundef nonnull align 4 dereferenceable(8) %15)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  %93 = load i32, ptr @szLO, align 4, !tbaa !5
  %94 = add nsw i32 %93, 1
  store i32 %94, ptr @szLO, align 4, !tbaa !5
  br label %95

95:                                               ; preds = %87, %85
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #7
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !11

96:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %16) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #7
  %97 = call noundef i64 @_ZNKSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(56) @High) #7
  %98 = trunc i64 %97 to i32
  store i32 %98, ptr %17, align 4, !tbaa !5
  %99 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @mod, ptr noundef nonnull align 4 dereferenceable(4) %17)
  %100 = load i32, ptr %99, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %18) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %19) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %20) #7
  call void @_ZNSaISt4pairIKiiEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #7
  invoke void @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEEC2EmRKS1_RKS3_RKS7_(ptr noundef nonnull align 8 dereferenceable(56) %16, i64 noundef %101, ptr noundef nonnull align 1 dereferenceable(1) %18, ptr noundef nonnull align 1 dereferenceable(1) %19, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %102 unwind label %106

102:                                              ; preds = %96
  call void @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEE4swapERS8_(ptr noundef nonnull align 8 dereferenceable(56) %16, ptr noundef nonnull align 8 dereferenceable(56) @tmp) #7
  call void @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %16) #7
  call void @_ZNSt15__new_allocatorISt4pairIKiiEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %16) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #7
  %103 = call ptr @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) @High) #7
  store ptr %103, ptr %21, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #7
  %104 = call ptr @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) @High) #7
  store ptr %104, ptr %22, align 8
  %105 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKiiELb0EEES6_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22) #7
  br i1 %105, label %.lr.ph71, label %._crit_edge72

._crit_edge72:                                    ; preds = %124, %102
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #7
  call void @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEE4swapERS8_(ptr noundef nonnull align 8 dereferenceable(56) @High, ptr noundef nonnull align 8 dereferenceable(56) @tmp) #7
  %.pre = load i32, ptr @ppw, align 4, !tbaa !5
  %.pre85 = load i32, ptr @mod, align 4, !tbaa !5
  br label %127

106:                                              ; preds = %96
  %107 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt4pairIKiiEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %16) #7
  resume { ptr, i32 } %107

.lr.ph71:                                         ; preds = %102, %124
  %108 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKiiELb0ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #7
  %109 = load i32, ptr %108, align 4, !tbaa !13
  %110 = load i32, ptr @mod, align 4, !tbaa !5
  %111 = srem i32 %109, %110
  store i32 %111, ptr %23, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %24) #7
  %112 = getelementptr inbounds i8, ptr %108, i64 4
  %113 = load i32, ptr %112, align 4, !tbaa !15
  store i32 %113, ptr %24, align 4, !tbaa !5
  %114 = call noundef i64 @_ZNKSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEE5countERS5_(ptr noundef nonnull align 8 dereferenceable(56) @tmp, ptr noundef nonnull align 4 dereferenceable(4) %23)
  %.not55 = icmp eq i64 %114, 0
  br i1 %.not55, label %115, label %117

115:                                              ; preds = %.lr.ph71
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %25) #7
  call void @_ZNSt4pairIKiiEC2IRiS3_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 4 dereferenceable(8) %25, ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef nonnull align 4 dereferenceable(4) %24)
  %116 = call { ptr, i8 } @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEE6insertEOS6_(ptr noundef nonnull align 8 dereferenceable(56) @tmp, ptr noundef nonnull align 4 dereferenceable(8) %25)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #7
  br label %124

117:                                              ; preds = %.lr.ph71
  %118 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) @tmp, ptr noundef nonnull align 4 dereferenceable(4) %23)
  %119 = load i32, ptr %118, align 4, !tbaa !5
  %120 = load i32, ptr %24, align 4, !tbaa !5
  %121 = icmp sgt i32 %119, %120
  br i1 %121, label %122, label %124

122:                                              ; preds = %117
  %123 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) @tmp, ptr noundef nonnull align 4 dereferenceable(4) %23)
  store i32 %120, ptr %123, align 4, !tbaa !5
  br label %124

124:                                              ; preds = %117, %122, %115
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #7
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKiiELb0ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #7
  %126 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKiiELb0EEES6_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22) #7
  br i1 %126, label %.lr.ph71, label %._crit_edge72

127:                                              ; preds = %._crit_edge72, %._crit_edge
  %128 = phi i32 [ %.pre85, %._crit_edge72 ], [ %76, %._crit_edge ]
  %129 = phi i32 [ %.pre, %._crit_edge72 ], [ %74, %._crit_edge ]
  %130 = call noundef i32 @_Z7mod_invii(i32 noundef %129, i32 noundef %128)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %26) #7
  store i32 0, ptr %26, align 4, !tbaa !5
  %131 = load i32, ptr @szLO, align 4, !tbaa !5
  %132 = icmp sgt i32 %131, 0
  br i1 %132, label %.lr.ph76, label %._crit_edge77

.lr.ph76:                                         ; preds = %127
  %133 = sext i32 %130 to i64
  br label %135

._crit_edge77:                                    ; preds = %165, %127
  %.1.lcssa = phi i8 [ %.03283, %127 ], [ %.3, %165 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #7
  %134 = trunc nuw i8 %.1.lcssa to i1
  br i1 %134, label %.thread64, label %170

135:                                              ; preds = %.lr.ph76, %165
  %136 = phi i32 [ %131, %.lr.ph76 ], [ %166, %165 ]
  %.174 = phi i8 [ %.03283, %.lr.ph76 ], [ %.3, %165 ]
  %storemerge73 = phi i32 [ 0, %.lr.ph76 ], [ %168, %165 ]
  %137 = sext i32 %storemerge73 to i64
  %138 = getelementptr inbounds [1200001 x %"struct.std::pair"], ptr @queLO, i64 0, i64 %137
  %139 = load i32, ptr %138, align 8, !tbaa !9
  %.not52 = icmp eq i32 %139, 0
  %140 = load i32, ptr @n, align 4
  %141 = sub nsw i32 %140, %139
  %.036 = select i1 %.not52, i32 0, i32 %141
  %142 = load i32, ptr @r, align 4, !tbaa !5
  %143 = srem i32 %.036, %142
  %144 = sdiv i32 %.036, %142
  %.not53 = icmp eq i32 %143, 0
  br i1 %.not53, label %145, label %165

145:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %27) #7
  %146 = sext i32 %144 to i64
  %147 = mul nsw i64 %146, %133
  %148 = load i32, ptr @mod, align 4, !tbaa !5
  %149 = sext i32 %148 to i64
  %150 = srem i64 %147, %149
  %151 = trunc nsw i64 %150 to i32
  store i32 %151, ptr %27, align 4, !tbaa !5
  %152 = call noundef i64 @_ZNKSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEE5countERS5_(ptr noundef nonnull align 8 dereferenceable(56) @High, ptr noundef nonnull align 4 dereferenceable(4) %27)
  %.not54 = icmp eq i64 %152, 0
  br i1 %.not54, label %164, label %153

153:                                              ; preds = %145
  %154 = trunc nuw i8 %.174 to i1
  br i1 %154, label %158, label %155

155:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %28) #7
  %156 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) @High, ptr noundef nonnull align 4 dereferenceable(4) %27)
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %28, ptr noundef nonnull align 4 dereferenceable(4) %156, ptr noundef nonnull align 4 dereferenceable(4) %26)
  %157 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) @ans, ptr noundef nonnull align 4 dereferenceable(8) %28) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #7
  br label %164

158:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %29) #7
  %159 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) @High, ptr noundef nonnull align 4 dereferenceable(4) %27)
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %29, ptr noundef nonnull align 4 dereferenceable(4) %159, ptr noundef nonnull align 4 dereferenceable(4) %26)
  %160 = call noundef zeroext i1 @_ZStgtIiiEbRKSt4pairIT_T0_ES5_(ptr noundef nonnull align 4 dereferenceable(8) @ans, ptr noundef nonnull align 4 dereferenceable(8) %29)
  br i1 %160, label %161, label %163

161:                                              ; preds = %158
  %162 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSERKS0_(ptr noundef nonnull align 4 dereferenceable(8) @ans, ptr noundef nonnull align 4 dereferenceable(8) %29)
  br label %163

163:                                              ; preds = %161, %158
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %29) #7
  br label %164

164:                                              ; preds = %155, %163, %145
  %.2 = phi i8 [ %.174, %163 ], [ 1, %155 ], [ %.174, %145 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %27) #7
  %.pre86 = load i32, ptr %26, align 4, !tbaa !5
  %.pre87 = load i32, ptr @szLO, align 4, !tbaa !5
  br label %165

165:                                              ; preds = %135, %164
  %166 = phi i32 [ %.pre87, %164 ], [ %136, %135 ]
  %167 = phi i32 [ %.pre86, %164 ], [ %storemerge73, %135 ]
  %.3 = phi i8 [ %.2, %164 ], [ %.174, %135 ]
  %168 = add nsw i32 %167, 1
  store i32 %168, ptr %26, align 4, !tbaa !5
  %169 = icmp slt i32 %168, %166
  br i1 %169, label %135, label %._crit_edge77, !llvm.loop !16

170:                                              ; preds = %._crit_edge77
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %30) #7
  %171 = load i32, ptr @endHI, align 4, !tbaa !5
  store i32 %171, ptr %30, align 4, !tbaa !5
  %172 = load i32, ptr @staHI, align 4, !tbaa !5
  %173 = icmp slt i32 %172, %171
  br i1 %173, label %.lr.ph79, label %._crit_edge80.thread

._crit_edge80.thread:                             ; preds = %170
  %174 = load i32, ptr @L, align 4, !tbaa !5
  %175 = add nsw i32 %174, 1
  store i32 %175, ptr @L, align 4, !tbaa !5
  br label %.loopexit

.lr.ph79:                                         ; preds = %170, %219
  %176 = phi i32 [ %221, %219 ], [ %172, %170 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %31) #7
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds [1200001 x %"struct.std::pair"], ptr @queHI, i64 0, i64 %177
  %179 = load i32, ptr %178, align 8, !tbaa !9
  %180 = sext i32 %179 to i64
  %181 = mul nsw i64 %180, 10
  %182 = load i32, ptr @n, align 4, !tbaa !5
  %183 = sext i32 %182 to i64
  %184 = srem i64 %181, %183
  %185 = trunc nsw i64 %184 to i32
  store i32 %185, ptr %31, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %32) #7
  %186 = load i32, ptr @mod, align 4, !tbaa !5
  %187 = srem i32 %185, %186
  store i32 %187, ptr %32, align 4, !tbaa !5
  %188 = call noundef i64 @_ZNKSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEE5countERS5_(ptr noundef nonnull align 8 dereferenceable(56) @High, ptr noundef nonnull align 4 dereferenceable(4) %32)
  %.not48 = icmp eq i64 %188, 0
  br i1 %.not48, label %189, label %197

189:                                              ; preds = %.lr.ph79
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %33) #7
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %33, ptr noundef nonnull align 4 dereferenceable(4) %31, ptr noundef nonnull align 4 dereferenceable(4) @staHI)
  %190 = load i32, ptr %30, align 4, !tbaa !5
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds [1200001 x %"struct.std::pair"], ptr @queHI, i64 0, i64 %191
  %193 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %192, ptr noundef nonnull align 4 dereferenceable(8) %33) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %33) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %34) #7
  call void @_ZNSt4pairIKiiEC2IRiS3_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 4 dereferenceable(8) %34, ptr noundef nonnull align 4 dereferenceable(4) %32, ptr noundef nonnull align 4 dereferenceable(4) %30)
  %194 = call { ptr, i8 } @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEE6insertEOS6_(ptr noundef nonnull align 8 dereferenceable(56) @High, ptr noundef nonnull align 4 dereferenceable(8) %34)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %34) #7
  %195 = load i32, ptr %30, align 4, !tbaa !5
  %196 = add nsw i32 %195, 1
  store i32 %196, ptr %30, align 4, !tbaa !5
  br label %197

197:                                              ; preds = %189, %.lr.ph79
  %198 = load i32, ptr %31, align 4, !tbaa !5
  %199 = add nsw i32 %198, 1
  store i32 %199, ptr %31, align 4, !tbaa !5
  %200 = load i32, ptr @n, align 4, !tbaa !5
  %.not49 = icmp slt i32 %199, %200
  br i1 %.not49, label %203, label %201

201:                                              ; preds = %197
  %202 = sub nsw i32 %199, %200
  store i32 %202, ptr %31, align 4, !tbaa !5
  br label %203

203:                                              ; preds = %201, %197
  %204 = load i32, ptr %32, align 4, !tbaa !5
  %205 = add nsw i32 %204, 1
  store i32 %205, ptr %32, align 4, !tbaa !5
  %206 = load i32, ptr @mod, align 4, !tbaa !5
  %.not50 = icmp slt i32 %205, %206
  br i1 %.not50, label %209, label %207

207:                                              ; preds = %203
  %208 = sub nsw i32 %205, %206
  store i32 %208, ptr %32, align 4, !tbaa !5
  br label %209

209:                                              ; preds = %207, %203
  %210 = call noundef i64 @_ZNKSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEE5countERS5_(ptr noundef nonnull align 8 dereferenceable(56) @High, ptr noundef nonnull align 4 dereferenceable(4) %32)
  %.not51 = icmp eq i64 %210, 0
  br i1 %.not51, label %211, label %219

211:                                              ; preds = %209
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %35) #7
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %35, ptr noundef nonnull align 4 dereferenceable(4) %31, ptr noundef nonnull align 4 dereferenceable(4) @staHI)
  %212 = load i32, ptr %30, align 4, !tbaa !5
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds [1200001 x %"struct.std::pair"], ptr @queHI, i64 0, i64 %213
  %215 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %214, ptr noundef nonnull align 4 dereferenceable(8) %35) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %35) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %36) #7
  call void @_ZNSt4pairIKiiEC2IRiS3_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 4 dereferenceable(8) %36, ptr noundef nonnull align 4 dereferenceable(4) %32, ptr noundef nonnull align 4 dereferenceable(4) %30)
  %216 = call { ptr, i8 } @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEE6insertEOS6_(ptr noundef nonnull align 8 dereferenceable(56) @High, ptr noundef nonnull align 4 dereferenceable(8) %36)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %36) #7
  %217 = load i32, ptr %30, align 4, !tbaa !5
  %218 = add nsw i32 %217, 1
  store i32 %218, ptr %30, align 4, !tbaa !5
  br label %219

219:                                              ; preds = %211, %209
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %32) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %31) #7
  %220 = load i32, ptr @staHI, align 4, !tbaa !5
  %221 = add nsw i32 %220, 1
  store i32 %221, ptr @staHI, align 4, !tbaa !5
  %222 = load i32, ptr @endHI, align 4, !tbaa !5
  %223 = icmp slt i32 %221, %222
  br i1 %223, label %.lr.ph79, label %._crit_edge80, !llvm.loop !17

._crit_edge80:                                    ; preds = %219
  %.pre88 = load i32, ptr %30, align 4, !tbaa !5
  %224 = load i32, ptr @L, align 4, !tbaa !5
  %225 = add nsw i32 %224, 1
  store i32 %225, ptr @L, align 4, !tbaa !5
  %226 = icmp slt i32 %222, %.pre88
  br i1 %226, label %.lr.ph82, label %.loopexit

.lr.ph82:                                         ; preds = %._crit_edge80, %243
  %227 = phi i32 [ %245, %243 ], [ %222, %._crit_edge80 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %37) #7
  %228 = load i32, ptr @pw, align 4, !tbaa !5
  %229 = sext i32 %228 to i64
  %230 = sext i32 %227 to i64
  %231 = getelementptr inbounds [1200001 x %"struct.std::pair"], ptr @queHI, i64 0, i64 %230
  %232 = load i32, ptr %231, align 8, !tbaa !9
  %233 = sext i32 %232 to i64
  %234 = mul nsw i64 %233, %229
  %235 = load i32, ptr @n, align 4, !tbaa !5
  %236 = sext i32 %235 to i64
  %237 = srem i64 %234, %236
  %238 = trunc nsw i64 %237 to i32
  %.not = icmp eq i64 %237, 0
  %239 = sub nsw i32 %235, %238
  %spec.select = select i1 %.not, i32 0, i32 %239
  store i32 %spec.select, ptr %37, align 4, !tbaa !5
  %240 = call noundef i64 @_ZNKSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEE5countERS5_(ptr noundef nonnull align 8 dereferenceable(56) @Low, ptr noundef nonnull align 4 dereferenceable(4) %37)
  %.not47 = icmp eq i64 %240, 0
  br i1 %.not47, label %243, label %.loopexit.thread

.loopexit.thread:                                 ; preds = %.lr.ph82
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %38) #7
  %241 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) @Low, ptr noundef nonnull align 4 dereferenceable(4) %37)
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %38, ptr noundef nonnull align 4 dereferenceable(4) @endHI, ptr noundef nonnull align 4 dereferenceable(4) %241)
  %242 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) @ans, ptr noundef nonnull align 4 dereferenceable(8) %38) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %38) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %37) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %30) #7
  br label %.thread64

243:                                              ; preds = %.lr.ph82
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %37) #7
  %244 = load i32, ptr @endHI, align 4, !tbaa !5
  %245 = add nsw i32 %244, 1
  store i32 %245, ptr @endHI, align 4, !tbaa !5
  %246 = load i32, ptr %30, align 4, !tbaa !5
  %247 = icmp slt i32 %245, %246
  br i1 %247, label %.lr.ph82, label %.loopexit, !llvm.loop !18

.loopexit:                                        ; preds = %243, %._crit_edge80.thread, %._crit_edge80
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %30) #7
  %248 = trunc nuw i8 %.1.lcssa to i1
  br i1 %248, label %.thread64, label %50

.thread64:                                        ; preds = %._crit_edge77, %.loopexit, %.loopexit.thread
  call void @_Z5printv()
  br label %249

249:                                              ; preds = %.thread64, %42
  ret i32 0
}

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

; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #4

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNKSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEE5countERS5_(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 void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #5 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZSt5__gcdIiET_S0_S0_(i32 noundef, i32 noundef) local_unnamed_addr #5

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaISt4pairIKiiEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEEC2EmRKS1_RKS3_RKS7_(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorISt4pairIKiiEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 align 2

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZStgtIiiEbRKSt4pairIT_T0_ES5_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #6

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

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

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

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


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