; LLVM IR from eyangch/competitive-programming :: Codeforces/1654 (e)

; 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 }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"struct.std::pair" = type { i64, i64 }

@N = external dso_local global i64, align 8
@A = external dso_local global [100000 x i64], align 16
@dp1 = external dso_local global %"class.std::unordered_map", align 8
@dp2 = external dso_local global [100000 x %"class.std::unordered_map"], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i32, align 4
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca ptr, align 8
  %24 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %25 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %26 = alloca %"struct.std::pair", align 8
  store i32 0, ptr %1, align 4
  %27 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %28 = getelementptr i8, ptr %27, i64 -24
  %29 = load i64, ptr %28, align 8
  %30 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %29
  %31 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %30, ptr noundef null)
  %32 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %33 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @N)
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #7
  store i64 0, ptr %2, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #7
  store i64 0, ptr %3, align 8, !tbaa !8
  br label %34

34:                                               ; preds = %43, %0
  %35 = load i64, ptr %3, align 8, !tbaa !8
  %36 = load i64, ptr @N, align 8, !tbaa !8
  %37 = icmp slt i64 %35, %36
  br i1 %37, label %39, label %38

38:                                               ; preds = %34
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  br label %46

39:                                               ; preds = %34
  %40 = load i64, ptr %3, align 8, !tbaa !8
  %41 = getelementptr inbounds [100000 x i64], ptr @A, i64 0, i64 %40
  %42 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %41)
  br label %43

43:                                               ; preds = %39
  %44 = load i64, ptr %3, align 8, !tbaa !8
  %45 = add nsw i64 %44, 1
  store i64 %45, ptr %3, align 8, !tbaa !8
  br label %34, !llvm.loop !11

46:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  store i64 -100, ptr %4, align 8, !tbaa !8
  br label %47

47:                                               ; preds = %96, %46
  %48 = load i64, ptr %4, align 8, !tbaa !8
  %49 = icmp sle i64 %48, 100
  br i1 %49, label %51, label %50

50:                                               ; preds = %47
  store i32 5, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  br label %99

51:                                               ; preds = %47
  call void @_ZNSt13unordered_mapIxx14semi_safe_hashSt8equal_toIxESaISt4pairIKxxEEE5clearEv(ptr noundef nonnull align 8 dereferenceable(56) @dp1) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  store i64 0, ptr %6, align 8, !tbaa !8
  br label %52

52:                                               ; preds = %92, %51
  %53 = load i64, ptr %6, align 8, !tbaa !8
  %54 = load i64, ptr @N, align 8, !tbaa !8
  %55 = icmp slt i64 %53, %54
  br i1 %55, label %57, label %56

56:                                               ; preds = %52
  store i32 8, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  br label %95

57:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  store i64 0, ptr %7, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %58 = load i64, ptr %6, align 8, !tbaa !8
  %59 = getelementptr inbounds [100000 x i64], ptr @A, i64 0, i64 %58
  %60 = load i64, ptr %59, align 8, !tbaa !8
  %61 = load i64, ptr %4, align 8, !tbaa !8
  %62 = load i64, ptr %6, align 8, !tbaa !8
  %63 = mul nsw i64 %61, %62
  %64 = sub nsw i64 %60, %63
  store i64 %64, ptr %8, align 8, !tbaa !8
  %65 = call noundef i64 @_ZNKSt13unordered_mapIxx14semi_safe_hashSt8equal_toIxESaISt4pairIKxxEEE5countERS4_(ptr noundef nonnull align 8 dereferenceable(56) @dp1, ptr noundef nonnull align 8 dereferenceable(8) %8)
  %66 = icmp ne i64 %65, 0
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  br i1 %66, label %67, label %77

67:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %68 = load i64, ptr %6, align 8, !tbaa !8
  %69 = getelementptr inbounds [100000 x i64], ptr @A, i64 0, i64 %68
  %70 = load i64, ptr %69, align 8, !tbaa !8
  %71 = load i64, ptr %4, align 8, !tbaa !8
  %72 = load i64, ptr %6, align 8, !tbaa !8
  %73 = mul nsw i64 %71, %72
  %74 = sub nsw i64 %70, %73
  store i64 %74, ptr %9, align 8, !tbaa !8
  %75 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt13unordered_mapIxx14semi_safe_hashSt8equal_toIxESaISt4pairIKxxEEEixEOx(ptr noundef nonnull align 8 dereferenceable(56) @dp1, ptr noundef nonnull align 8 dereferenceable(8) %9)
  %76 = load i64, ptr %75, align 8, !tbaa !8
  store i64 %76, ptr %7, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %77

77:                                               ; preds = %67, %57
  %78 = load i64, ptr %7, align 8, !tbaa !8
  %79 = add nsw i64 %78, 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %80 = load i64, ptr %6, align 8, !tbaa !8
  %81 = getelementptr inbounds [100000 x i64], ptr @A, i64 0, i64 %80
  %82 = load i64, ptr %81, align 8, !tbaa !8
  %83 = load i64, ptr %4, align 8, !tbaa !8
  %84 = load i64, ptr %6, align 8, !tbaa !8
  %85 = mul nsw i64 %83, %84
  %86 = sub nsw i64 %82, %85
  store i64 %86, ptr %10, align 8, !tbaa !8
  %87 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt13unordered_mapIxx14semi_safe_hashSt8equal_toIxESaISt4pairIKxxEEEixEOx(ptr noundef nonnull align 8 dereferenceable(56) @dp1, ptr noundef nonnull align 8 dereferenceable(8) %10)
  store i64 %79, ptr %87, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %88 = load i64, ptr %7, align 8, !tbaa !8
  %89 = add nsw i64 %88, 1
  store i64 %89, ptr %11, align 8, !tbaa !8
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %91 = load i64, ptr %90, align 8, !tbaa !8
  store i64 %91, ptr %2, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  br label %92

92:                                               ; preds = %77
  %93 = load i64, ptr %6, align 8, !tbaa !8
  %94 = add nsw i64 %93, 1
  store i64 %94, ptr %6, align 8, !tbaa !8
  br label %52, !llvm.loop !13

95:                                               ; preds = %56
  br label %96

96:                                               ; preds = %95
  %97 = load i64, ptr %4, align 8, !tbaa !8
  %98 = add nsw i64 %97, 1
  store i64 %98, ptr %4, align 8, !tbaa !8
  br label %47, !llvm.loop !14

99:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  store i64 0, ptr %12, align 8, !tbaa !8
  br label %100

100:                                              ; preds = %200, %99
  %101 = load i64, ptr %12, align 8, !tbaa !8
  %102 = load i64, ptr @N, align 8, !tbaa !8
  %103 = icmp slt i64 %101, %102
  br i1 %103, label %105, label %104

104:                                              ; preds = %100
  store i32 11, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %203

105:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %106 = load i64, ptr %12, align 8, !tbaa !8
  %107 = sub nsw i64 %106, 1
  store i64 %107, ptr %13, align 8, !tbaa !8
  br label %108

108:                                              ; preds = %175, %105
  %109 = load i64, ptr %13, align 8, !tbaa !8
  %110 = icmp sge i64 %109, 0
  br i1 %110, label %111, label %116

111:                                              ; preds = %108
  %112 = load i64, ptr %12, align 8, !tbaa !8
  %113 = load i64, ptr %13, align 8, !tbaa !8
  %114 = sub nsw i64 %112, %113
  %115 = icmp sle i64 %114, 100
  br label %116

116:                                              ; preds = %111, %108
  %117 = phi i1 [ false, %108 ], [ %115, %111 ]
  br i1 %117, label %119, label %118

118:                                              ; preds = %116
  store i32 14, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %178

119:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %120 = load i64, ptr %12, align 8, !tbaa !8
  %121 = load i64, ptr %13, align 8, !tbaa !8
  %122 = sub nsw i64 %120, %121
  store i64 %122, ptr %14, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %123 = load i64, ptr %12, align 8, !tbaa !8
  %124 = getelementptr inbounds [100000 x i64], ptr @A, i64 0, i64 %123
  %125 = load i64, ptr %124, align 8, !tbaa !8
  %126 = load i64, ptr %13, align 8, !tbaa !8
  %127 = getelementptr inbounds [100000 x i64], ptr @A, i64 0, i64 %126
  %128 = load i64, ptr %127, align 8, !tbaa !8
  %129 = sub nsw i64 %125, %128
  store i64 %129, ptr %15, align 8, !tbaa !8
  %130 = load i64, ptr %15, align 8, !tbaa !8
  %131 = load i64, ptr %14, align 8, !tbaa !8
  %132 = srem i64 %130, %131
  %133 = icmp ne i64 %132, 0
  br i1 %133, label %134, label %135

134:                                              ; preds = %119
  store i32 16, ptr %5, align 4
  br label %172

135:                                              ; preds = %119
  %136 = load i64, ptr %12, align 8, !tbaa !8
  %137 = getelementptr inbounds [100000 x %"class.std::unordered_map"], ptr @dp2, i64 0, i64 %136
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %138 = load i64, ptr %15, align 8, !tbaa !8
  %139 = load i64, ptr %14, align 8, !tbaa !8
  %140 = sdiv i64 %138, %139
  store i64 %140, ptr %16, align 8, !tbaa !8
  %141 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt13unordered_mapIxx14semi_safe_hashSt8equal_toIxESaISt4pairIKxxEEEixEOx(ptr noundef nonnull align 8 dereferenceable(56) %137, ptr noundef nonnull align 8 dereferenceable(8) %16)
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %142 = load i64, ptr %13, align 8, !tbaa !8
  %143 = getelementptr inbounds [100000 x %"class.std::unordered_map"], ptr @dp2, i64 0, i64 %142
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %144 = load i64, ptr %15, align 8, !tbaa !8
  %145 = load i64, ptr %14, align 8, !tbaa !8
  %146 = sdiv i64 %144, %145
  store i64 %146, ptr %18, align 8, !tbaa !8
  %147 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt13unordered_mapIxx14semi_safe_hashSt8equal_toIxESaISt4pairIKxxEEEixEOx(ptr noundef nonnull align 8 dereferenceable(56) %143, ptr noundef nonnull align 8 dereferenceable(8) %18)
  %148 = load i64, ptr %147, align 8, !tbaa !8
  %149 = add nsw i64 %148, 1
  store i64 %149, ptr %17, align 8, !tbaa !8
  %150 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %141, ptr noundef nonnull align 8 dereferenceable(8) %17)
  %151 = load i64, ptr %150, align 8, !tbaa !8
  %152 = load i64, ptr %12, align 8, !tbaa !8
  %153 = getelementptr inbounds [100000 x %"class.std::unordered_map"], ptr @dp2, i64 0, i64 %152
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %154 = load i64, ptr %15, align 8, !tbaa !8
  %155 = load i64, ptr %14, align 8, !tbaa !8
  %156 = sdiv i64 %154, %155
  store i64 %156, ptr %19, align 8, !tbaa !8
  %157 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt13unordered_mapIxx14semi_safe_hashSt8equal_toIxESaISt4pairIKxxEEEixEOx(ptr noundef nonnull align 8 dereferenceable(56) %153, ptr noundef nonnull align 8 dereferenceable(8) %19)
  store i64 %151, ptr %157, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  %158 = load i64, ptr %12, align 8, !tbaa !8
  %159 = getelementptr inbounds [100000 x %"class.std::unordered_map"], ptr @dp2, i64 0, i64 %158
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %160 = load i64, ptr %15, align 8, !tbaa !8
  %161 = load i64, ptr %14, align 8, !tbaa !8
  %162 = sdiv i64 %160, %161
  store i64 %162, ptr %20, align 8, !tbaa !8
  %163 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt13unordered_mapIxx14semi_safe_hashSt8equal_toIxESaISt4pairIKxxEEEixEOx(ptr noundef nonnull align 8 dereferenceable(56) %159, ptr noundef nonnull align 8 dereferenceable(8) %20)
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  store i64 2, ptr %21, align 8, !tbaa !8
  %164 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %163, ptr noundef nonnull align 8 dereferenceable(8) %21)
  %165 = load i64, ptr %164, align 8, !tbaa !8
  %166 = load i64, ptr %12, align 8, !tbaa !8
  %167 = getelementptr inbounds [100000 x %"class.std::unordered_map"], ptr @dp2, i64 0, i64 %166
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %168 = load i64, ptr %15, align 8, !tbaa !8
  %169 = load i64, ptr %14, align 8, !tbaa !8
  %170 = sdiv i64 %168, %169
  store i64 %170, ptr %22, align 8, !tbaa !8
  %171 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt13unordered_mapIxx14semi_safe_hashSt8equal_toIxESaISt4pairIKxxEEEixEOx(ptr noundef nonnull align 8 dereferenceable(56) %167, ptr noundef nonnull align 8 dereferenceable(8) %22)
  store i64 %165, ptr %171, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  store i32 0, ptr %5, align 4
  br label %172

172:                                              ; preds = %135, %134
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  %173 = load i32, ptr %5, align 4
  switch i32 %173, label %210 [
    i32 0, label %174
    i32 16, label %175
  ]

174:                                              ; preds = %172
  br label %175

175:                                              ; preds = %174, %172
  %176 = load i64, ptr %13, align 8, !tbaa !8
  %177 = add nsw i64 %176, -1
  store i64 %177, ptr %13, align 8, !tbaa !8
  br label %108, !llvm.loop !15

178:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %179 = load i64, ptr %12, align 8, !tbaa !8
  %180 = getelementptr inbounds [100000 x %"class.std::unordered_map"], ptr @dp2, i64 0, i64 %179
  store ptr %180, ptr %23, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %181 = load ptr, ptr %23, align 8, !tbaa !16
  %182 = call ptr @_ZNSt13unordered_mapIxx14semi_safe_hashSt8equal_toIxESaISt4pairIKxxEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %181) #7
  %183 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %24, i32 0, i32 0
  %184 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %183, i32 0, i32 0
  store ptr %182, ptr %184, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  %185 = load ptr, ptr %23, align 8, !tbaa !16
  %186 = call ptr @_ZNSt13unordered_mapIxx14semi_safe_hashSt8equal_toIxESaISt4pairIKxxEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %185) #7
  %187 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %25, i32 0, i32 0
  %188 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %187, i32 0, i32 0
  store ptr %186, ptr %188, align 8
  br label %189

189:                                              ; preds = %197, %178
  %190 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKxxELb1EEES6_(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(8) %25) #7
  br i1 %190, label %192, label %191

191:                                              ; preds = %189
  store i32 17, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  br label %199

192:                                              ; preds = %189
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #7
  %193 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKxxELb0ELb1EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #7
  call void @_ZNSt4pairIxxEC2IKxxTnNSt9enable_ifIXaaclsr6_PCCFPIT_T0_EE18_ConstructiblePairIS4_S5_EEclsr6_PCCFPIS4_S5_EE26_ImplicitlyConvertiblePairIS4_S5_EEEbE4typeELb1EEERKS_IS4_S5_E(ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef nonnull align 8 dereferenceable(16) %193)
  %194 = getelementptr inbounds %"struct.std::pair", ptr %26, i32 0, i32 1
  %195 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %194)
  %196 = load i64, ptr %195, align 8, !tbaa !8
  store i64 %196, ptr %2, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #7
  br label %197

197:                                              ; preds = %192
  %198 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKxxELb0ELb1EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #7
  br label %189

199:                                              ; preds = %191
  br label %200

200:                                              ; preds = %199
  %201 = load i64, ptr %12, align 8, !tbaa !8
  %202 = add nsw i64 %201, 1
  store i64 %202, ptr %12, align 8, !tbaa !8
  br label %100, !llvm.loop !18

203:                                              ; preds = %104
  %204 = load i64, ptr @N, align 8, !tbaa !8
  %205 = load i64, ptr %2, align 8, !tbaa !8
  %206 = sub nsw i64 %204, %205
  %207 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %206)
  %208 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %207, i8 noundef signext 10)
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #7
  %209 = load i32, ptr %1, align 4
  ret i32 %209

210:                                              ; preds = %172
  unreachable
}

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

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) #2

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIxxEC2IKxxTnNSt9enable_ifIXaaclsr6_PCCFPIT_T0_EE18_ConstructiblePairIS4_S5_EEclsr6_PCCFPIS4_S5_EE26_ImplicitlyConvertiblePairIS4_S5_EEEbE4typeELb1EEERKS_IS4_S5_E(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #6

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

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"long long", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = !{!17, !17, i64 0}
!17 = !{!"any pointer", !10, i64 0}
!18 = distinct !{!18, !12}


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

%"class.std::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 }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"struct.std::pair" = type { i64, i64 }

@N = external dso_local global i64, align 8
@A = external dso_local global [100000 x i64], align 16
@dp1 = external dso_local global %"class.std::unordered_map", align 8
@dp2 = external dso_local global [100000 x %"class.std::unordered_map"], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %14 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %15 = alloca %"struct.std::pair", align 8
  %16 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %17 = getelementptr i8, ptr %16, i64 -24
  %18 = load i64, ptr %17, align 8
  %19 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %18
  %20 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %19, ptr noundef null)
  %21 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %22 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @N)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #7
  store i64 0, ptr %1, align 8, !tbaa !8
  %23 = load i64, ptr @N, align 8, !tbaa !8
  %24 = icmp sgt i64 %23, 0
  br i1 %24, label %.lr.ph, label %.preheader58.preheader

.preheader58.preheader:                           ; preds = %.lr.ph, %0
  br label %.preheader58

.lr.ph:                                           ; preds = %0, %.lr.ph
  %.059 = phi i64 [ %27, %.lr.ph ], [ 0, %0 ]
  %25 = getelementptr inbounds [100000 x i64], ptr @A, i64 0, i64 %.059
  %26 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %25)
  %27 = add nuw nsw i64 %.059, 1
  %28 = load i64, ptr @N, align 8, !tbaa !8
  %29 = icmp slt i64 %27, %28
  br i1 %29, label %.lr.ph, label %.preheader58.preheader, !llvm.loop !11

.preheader57:                                     ; preds = %._crit_edge
  %30 = icmp sgt i64 %34, 0
  br i1 %30, label %.preheader.lr.ph, label %._crit_edge71

.preheader.lr.ph:                                 ; preds = %.preheader57
  %31 = getelementptr inbounds i8, ptr %15, i64 8
  br label %.preheader

.preheader58:                                     ; preds = %.preheader58.preheader, %._crit_edge
  %.04962 = phi i64 [ %35, %._crit_edge ], [ -100, %.preheader58.preheader ]
  call void @_ZNSt13unordered_mapIxx14semi_safe_hashSt8equal_toIxESaISt4pairIKxxEEE5clearEv(ptr noundef nonnull align 8 dereferenceable(56) @dp1) #7
  %32 = load i64, ptr @N, align 8, !tbaa !8
  %33 = icmp sgt i64 %32, 0
  br i1 %33, label %.lr.ph61, label %._crit_edge

._crit_edge:                                      ; preds = %46, %.preheader58
  %34 = phi i64 [ %32, %.preheader58 ], [ %54, %46 ]
  %35 = add nsw i64 %.04962, 1
  %exitcond.not = icmp eq i64 %35, 101
  br i1 %exitcond.not, label %.preheader57, label %.preheader58, !llvm.loop !13

.lr.ph61:                                         ; preds = %.preheader58, %46
  %.05360 = phi i64 [ %53, %46 ], [ 0, %.preheader58 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #7
  %36 = getelementptr inbounds [100000 x i64], ptr @A, i64 0, i64 %.05360
  %37 = load i64, ptr %36, align 8, !tbaa !8
  %38 = mul nsw i64 %.05360, %.04962
  %39 = sub nsw i64 %37, %38
  store i64 %39, ptr %2, align 8, !tbaa !8
  %40 = call noundef i64 @_ZNKSt13unordered_mapIxx14semi_safe_hashSt8equal_toIxESaISt4pairIKxxEEE5countERS4_(ptr noundef nonnull align 8 dereferenceable(56) @dp1, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %.not56 = icmp eq i64 %40, 0
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  br i1 %.not56, label %46, label %41

41:                                               ; preds = %.lr.ph61
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  %42 = load i64, ptr %36, align 8, !tbaa !8
  %43 = sub nsw i64 %42, %38
  store i64 %43, ptr %3, align 8, !tbaa !8
  %44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt13unordered_mapIxx14semi_safe_hashSt8equal_toIxESaISt4pairIKxxEEEixEOx(ptr noundef nonnull align 8 dereferenceable(56) @dp1, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %45 = load i64, ptr %44, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  br label %46

46:                                               ; preds = %41, %.lr.ph61
  %.052 = phi i64 [ %45, %41 ], [ 0, %.lr.ph61 ]
  %47 = add nsw i64 %.052, 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  %48 = load i64, ptr %36, align 8, !tbaa !8
  %49 = sub nsw i64 %48, %38
  store i64 %49, ptr %4, align 8, !tbaa !8
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt13unordered_mapIxx14semi_safe_hashSt8equal_toIxESaISt4pairIKxxEEEixEOx(ptr noundef nonnull align 8 dereferenceable(56) @dp1, ptr noundef nonnull align 8 dereferenceable(8) %4)
  store i64 %47, ptr %50, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  store i64 %47, ptr %5, align 8, !tbaa !8
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %52 = load i64, ptr %51, align 8, !tbaa !8
  store i64 %52, ptr %1, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  %53 = add nuw nsw i64 %.05360, 1
  %54 = load i64, ptr @N, align 8, !tbaa !8
  %55 = icmp slt i64 %53, %54
  br i1 %55, label %.lr.ph61, label %._crit_edge, !llvm.loop !14

.preheader:                                       ; preds = %.preheader.lr.ph, %._crit_edge69
  %.05170 = phi i64 [ 0, %.preheader.lr.ph ], [ %92, %._crit_edge69 ]
  %.not72 = icmp eq i64 %.05170, 0
  br i1 %.not72, label %._crit_edge66, label %.lr.ph65

.lr.ph65:                                         ; preds = %.preheader
  %.05063 = add nsw i64 %.05170, -1
  %56 = getelementptr inbounds [100000 x i64], ptr @A, i64 0, i64 %.05170
  %57 = getelementptr inbounds [100000 x %"class.std::unordered_map"], ptr @dp2, i64 0, i64 %.05170
  br label %66

._crit_edge71:                                    ; preds = %._crit_edge69, %.preheader57
  %.lcssa = phi i64 [ %34, %.preheader57 ], [ %93, %._crit_edge69 ]
  %58 = load i64, ptr %1, align 8, !tbaa !8
  %59 = sub nsw i64 %.lcssa, %58
  %60 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %59)
  %61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %60, i8 noundef signext 10)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #7
  ret i32 0

._crit_edge66:                                    ; preds = %87, %.preheader
  %62 = getelementptr inbounds [100000 x %"class.std::unordered_map"], ptr @dp2, i64 0, i64 %.05170
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #7
  %63 = call ptr @_ZNSt13unordered_mapIxx14semi_safe_hashSt8equal_toIxESaISt4pairIKxxEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %62) #7
  store ptr %63, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #7
  %64 = call ptr @_ZNSt13unordered_mapIxx14semi_safe_hashSt8equal_toIxESaISt4pairIKxxEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %62) #7
  store ptr %64, ptr %14, align 8
  %65 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKxxELb1EEES6_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  br i1 %65, label %.lr.ph68, label %._crit_edge69

66:                                               ; preds = %.lr.ph65, %87
  %67 = phi i64 [ 1, %.lr.ph65 ], [ %89, %87 ]
  %.05064 = phi i64 [ %.05063, %.lr.ph65 ], [ %.050, %87 ]
  %68 = load i64, ptr %56, align 8, !tbaa !8
  %69 = getelementptr inbounds [100000 x i64], ptr @A, i64 0, i64 %.05064
  %70 = load i64, ptr %69, align 8, !tbaa !8
  %71 = sub nsw i64 %68, %70
  %72 = srem i64 %71, %67
  %73 = sdiv i64 %71, %67
  %.not = icmp eq i64 %72, 0
  br i1 %.not, label %74, label %87

74:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  store i64 %73, ptr %6, align 8, !tbaa !8
  %75 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt13unordered_mapIxx14semi_safe_hashSt8equal_toIxESaISt4pairIKxxEEEixEOx(ptr noundef nonnull align 8 dereferenceable(56) %57, ptr noundef nonnull align 8 dereferenceable(8) %6)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %76 = getelementptr inbounds [100000 x %"class.std::unordered_map"], ptr @dp2, i64 0, i64 %.05064
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  store i64 %73, ptr %8, align 8, !tbaa !8
  %77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt13unordered_mapIxx14semi_safe_hashSt8equal_toIxESaISt4pairIKxxEEEixEOx(ptr noundef nonnull align 8 dereferenceable(56) %76, ptr noundef nonnull align 8 dereferenceable(8) %8)
  %78 = load i64, ptr %77, align 8, !tbaa !8
  %79 = add nsw i64 %78, 1
  store i64 %79, ptr %7, align 8, !tbaa !8
  %80 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %75, ptr noundef nonnull align 8 dereferenceable(8) %7)
  %81 = load i64, ptr %80, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  store i64 %73, ptr %9, align 8, !tbaa !8
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt13unordered_mapIxx14semi_safe_hashSt8equal_toIxESaISt4pairIKxxEEEixEOx(ptr noundef nonnull align 8 dereferenceable(56) %57, ptr noundef nonnull align 8 dereferenceable(8) %9)
  store i64 %81, ptr %82, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  store i64 %73, ptr %10, align 8, !tbaa !8
  %83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt13unordered_mapIxx14semi_safe_hashSt8equal_toIxESaISt4pairIKxxEEEixEOx(ptr noundef nonnull align 8 dereferenceable(56) %57, ptr noundef nonnull align 8 dereferenceable(8) %10)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  store i64 2, ptr %11, align 8, !tbaa !8
  %84 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %83, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %85 = load i64, ptr %84, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  store i64 %73, ptr %12, align 8, !tbaa !8
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt13unordered_mapIxx14semi_safe_hashSt8equal_toIxESaISt4pairIKxxEEEixEOx(ptr noundef nonnull align 8 dereferenceable(56) %57, ptr noundef nonnull align 8 dereferenceable(8) %12)
  store i64 %85, ptr %86, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  br label %87

87:                                               ; preds = %66, %74
  %.050 = add nsw i64 %.05064, -1
  %88 = icmp sgt i64 %.05064, 0
  %89 = sub nsw i64 %.05170, %.050
  %90 = icmp ult i64 %89, 101
  %91 = select i1 %88, i1 %90, i1 false
  br i1 %91, label %66, label %._crit_edge66, !llvm.loop !15

._crit_edge69:                                    ; preds = %.lr.ph68, %._crit_edge66
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  %92 = add nuw nsw i64 %.05170, 1
  %93 = load i64, ptr @N, align 8, !tbaa !8
  %94 = icmp slt i64 %92, %93
  br i1 %94, label %.preheader, label %._crit_edge71, !llvm.loop !16

.lr.ph68:                                         ; preds = %._crit_edge66, %.lr.ph68
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #7
  %95 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKxxELb0ELb1EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  call void @_ZNSt4pairIxxEC2IKxxTnNSt9enable_ifIXaaclsr6_PCCFPIT_T0_EE18_ConstructiblePairIS4_S5_EEclsr6_PCCFPIS4_S5_EE26_ImplicitlyConvertiblePairIS4_S5_EEEbE4typeELb1EEERKS_IS4_S5_E(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %95)
  %96 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %31)
  %97 = load i64, ptr %96, align 8, !tbaa !8
  store i64 %97, ptr %1, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #7
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKxxELb0ELb1EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  %99 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKxxELb1EEES6_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  br i1 %99, label %.lr.ph68, label %._crit_edge69
}

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

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) local_unnamed_addr #2

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(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 ptr @_ZNSt13unordered_mapIxx14semi_safe_hashSt8equal_toIxESaISt4pairIKxxEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIxxEC2IKxxTnNSt9enable_ifIXaaclsr6_PCCFPIT_T0_EE18_ConstructiblePairIS4_S5_EEclsr6_PCCFPIS4_S5_EE26_ImplicitlyConvertiblePairIS4_S5_EEEbE4typeELb1EEERKS_IS4_S5_E(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #6

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

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"long long", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}


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