; LLVM IR from VastoLorde95/Competitive-Programming :: Codeforces/109 Division 1/Problem C (C)

; 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_ostream" = type { ptr, %"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 }
%"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 i32, align 4
@m = external dso_local global i32, align 4
@u = external dso_local global i32, align 4
@v = external dso_local global i32, align 4
@p = external dso_local global [1000100 x i64], align 16
@MOD = external dso_local global i64, align 8
@h = external dso_local global [1000100 x i64], align 16
@hsh = external dso_local global %"class.std::unordered_map", align 8
@hsh2 = external dso_local global %"class.std::unordered_map", align 8
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@_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 i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i64, align 8
  %7 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %8 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %9 = alloca i64, align 8
  %10 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %11 = alloca i32, align 4
  %12 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %13 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %14 = alloca i64, align 8
  %15 = alloca %"struct.std::__detail::_Node_iterator", align 8
  store i32 0, ptr %1, align 4
  store i64 1, ptr @p, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 1, ptr %2, align 4, !tbaa !9
  br label %16

16:                                               ; preds = %32, %0
  %17 = load i32, ptr %2, align 4, !tbaa !9
  %18 = icmp slt i32 %17, 1000100
  br i1 %18, label %20, label %19

19:                                               ; preds = %16
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  br label %35

20:                                               ; preds = %16
  %21 = load i32, ptr %2, align 4, !tbaa !9
  %22 = sub nsw i32 %21, 1
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds [1000100 x i64], ptr @p, i64 0, i64 %23
  %25 = load i64, ptr %24, align 8, !tbaa !5
  %26 = mul nsw i64 %25, 2
  %27 = load i64, ptr @MOD, align 8, !tbaa !5
  %28 = srem i64 %26, %27
  %29 = load i32, ptr %2, align 4, !tbaa !9
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [1000100 x i64], ptr @p, i64 0, i64 %30
  store i64 %28, ptr %31, align 8, !tbaa !5
  br label %32

32:                                               ; preds = %20
  %33 = load i32, ptr %2, align 4, !tbaa !9
  %34 = add nsw i32 %33, 1
  store i32 %34, ptr %2, align 4, !tbaa !9
  br label %16, !llvm.loop !11

35:                                               ; preds = %19
  %36 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n, ptr noundef @m)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  store i32 1, ptr %3, align 4, !tbaa !9
  br label %37

37:                                               ; preds = %50, %35
  %38 = load i32, ptr %3, align 4, !tbaa !9
  %39 = load i32, ptr @n, align 4, !tbaa !9
  %40 = icmp sle i32 %38, %39
  br i1 %40, label %42, label %41

41:                                               ; preds = %37
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  br label %53

42:                                               ; preds = %37
  %43 = load i32, ptr %3, align 4, !tbaa !9
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [1000100 x i64], ptr @p, i64 0, i64 %44
  %46 = load i64, ptr %45, align 8, !tbaa !5
  %47 = load i32, ptr %3, align 4, !tbaa !9
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [1000100 x i64], ptr @h, i64 0, i64 %48
  store i64 %46, ptr %49, align 8, !tbaa !5
  br label %50

50:                                               ; preds = %42
  %51 = load i32, ptr %3, align 4, !tbaa !9
  %52 = add nsw i32 %51, 1
  store i32 %52, ptr %3, align 4, !tbaa !9
  br label %37, !llvm.loop !13

53:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store i32 0, ptr %4, align 4, !tbaa !9
  br label %54

54:                                               ; preds = %107, %53
  %55 = load i32, ptr %4, align 4, !tbaa !9
  %56 = load i32, ptr @m, align 4, !tbaa !9
  %57 = icmp slt i32 %55, %56
  br i1 %57, label %59, label %58

58:                                               ; preds = %54
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  br label %110

59:                                               ; preds = %54
  %60 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @u, ptr noundef @v)
  %61 = load i32, ptr @v, align 4, !tbaa !9
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [1000100 x i64], ptr @p, i64 0, i64 %62
  %64 = load i64, ptr %63, align 8, !tbaa !5
  %65 = load i32, ptr @u, align 4, !tbaa !9
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [1000100 x i64], ptr @h, i64 0, i64 %66
  %68 = load i64, ptr %67, align 8, !tbaa !5
  %69 = add nsw i64 %68, %64
  store i64 %69, ptr %67, align 8, !tbaa !5
  %70 = load i32, ptr @u, align 4, !tbaa !9
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [1000100 x i64], ptr @h, i64 0, i64 %71
  %73 = load i64, ptr %72, align 8, !tbaa !5
  %74 = load i64, ptr @MOD, align 8, !tbaa !5
  %75 = icmp sge i64 %73, %74
  br i1 %75, label %76, label %83

76:                                               ; preds = %59
  %77 = load i64, ptr @MOD, align 8, !tbaa !5
  %78 = load i32, ptr @u, align 4, !tbaa !9
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [1000100 x i64], ptr @h, i64 0, i64 %79
  %81 = load i64, ptr %80, align 8, !tbaa !5
  %82 = sub nsw i64 %81, %77
  store i64 %82, ptr %80, align 8, !tbaa !5
  br label %83

83:                                               ; preds = %76, %59
  %84 = load i32, ptr @u, align 4, !tbaa !9
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [1000100 x i64], ptr @p, i64 0, i64 %85
  %87 = load i64, ptr %86, align 8, !tbaa !5
  %88 = load i32, ptr @v, align 4, !tbaa !9
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [1000100 x i64], ptr @h, i64 0, i64 %89
  %91 = load i64, ptr %90, align 8, !tbaa !5
  %92 = add nsw i64 %91, %87
  store i64 %92, ptr %90, align 8, !tbaa !5
  %93 = load i32, ptr @v, align 4, !tbaa !9
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [1000100 x i64], ptr @h, i64 0, i64 %94
  %96 = load i64, ptr %95, align 8, !tbaa !5
  %97 = load i64, ptr @MOD, align 8, !tbaa !5
  %98 = icmp sge i64 %96, %97
  br i1 %98, label %99, label %106

99:                                               ; preds = %83
  %100 = load i64, ptr @MOD, align 8, !tbaa !5
  %101 = load i32, ptr @v, align 4, !tbaa !9
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [1000100 x i64], ptr @h, i64 0, i64 %102
  %104 = load i64, ptr %103, align 8, !tbaa !5
  %105 = sub nsw i64 %104, %100
  store i64 %105, ptr %103, align 8, !tbaa !5
  br label %106

106:                                              ; preds = %99, %83
  br label %107

107:                                              ; preds = %106
  %108 = load i32, ptr %4, align 4, !tbaa !9
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %4, align 4, !tbaa !9
  br label %54, !llvm.loop !14

110:                                              ; preds = %58
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 1, ptr %5, align 4, !tbaa !9
  br label %111

111:                                              ; preds = %123, %110
  %112 = load i32, ptr %5, align 4, !tbaa !9
  %113 = load i32, ptr @n, align 4, !tbaa !9
  %114 = icmp sle i32 %112, %113
  br i1 %114, label %116, label %115

115:                                              ; preds = %111
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %126

116:                                              ; preds = %111
  %117 = load i32, ptr %5, align 4, !tbaa !9
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [1000100 x i64], ptr @h, i64 0, i64 %118
  %120 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt13unordered_mapIxxSt4hashIxESt8equal_toIxESaISt4pairIKxxEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) @hsh, ptr noundef nonnull align 8 dereferenceable(8) %119)
  %121 = load i64, ptr %120, align 8, !tbaa !5
  %122 = add nsw i64 %121, 1
  store i64 %122, ptr %120, align 8, !tbaa !5
  br label %123

123:                                              ; preds = %116
  %124 = load i32, ptr %5, align 4, !tbaa !9
  %125 = add nsw i32 %124, 1
  store i32 %125, ptr %5, align 4, !tbaa !9
  br label %111, !llvm.loop !15

126:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  store i64 0, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %127 = call ptr @_ZNSt13unordered_mapIxxSt4hashIxESt8equal_toIxESaISt4pairIKxxEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) @hsh) #6
  %128 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %7, i32 0, i32 0
  %129 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %128, i32 0, i32 0
  store ptr %127, ptr %129, align 8
  br label %130

130:                                              ; preds = %146, %126
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %131 = call ptr @_ZNSt13unordered_mapIxxSt4hashIxESt8equal_toIxESaISt4pairIKxxEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) @hsh) #6
  %132 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %8, i32 0, i32 0
  %133 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %132, i32 0, i32 0
  store ptr %131, ptr %133, align 8
  %134 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKxxELb0EEES6_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br i1 %134, label %136, label %135

135:                                              ; preds = %130
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %150

136:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %137 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKxxELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  %138 = getelementptr inbounds %"struct.std::pair", ptr %137, i32 0, i32 1
  %139 = load i64, ptr %138, align 8, !tbaa !16
  store i64 %139, ptr %9, align 8, !tbaa !5
  %140 = load i64, ptr %9, align 8, !tbaa !5
  %141 = load i64, ptr %9, align 8, !tbaa !5
  %142 = sub nsw i64 %141, 1
  %143 = mul nsw i64 %140, %142
  %144 = load i64, ptr %6, align 8, !tbaa !5
  %145 = add nsw i64 %144, %143
  store i64 %145, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %146

146:                                              ; preds = %136
  %147 = call ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKxxELb0ELb0EEppEi(ptr noundef nonnull align 8 dereferenceable(8) %7, i32 noundef 0) #6
  %148 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %10, i32 0, i32 0
  %149 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %148, i32 0, i32 0
  store ptr %147, ptr %149, align 8
  br label %130, !llvm.loop !18

150:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 1, ptr %11, align 4, !tbaa !9
  br label %151

151:                                              ; preds = %196, %150
  %152 = load i32, ptr %11, align 4, !tbaa !9
  %153 = load i32, ptr @n, align 4, !tbaa !9
  %154 = icmp sle i32 %152, %153
  br i1 %154, label %156, label %155

155:                                              ; preds = %151
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %199

156:                                              ; preds = %151
  %157 = load i32, ptr %11, align 4, !tbaa !9
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [1000100 x i64], ptr @h, i64 0, i64 %158
  %160 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt13unordered_mapIxxSt4hashIxESt8equal_toIxESaISt4pairIKxxEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) @hsh, ptr noundef nonnull align 8 dereferenceable(8) %159)
  %161 = load i64, ptr %160, align 8, !tbaa !5
  %162 = icmp eq i64 %161, 1
  br i1 %162, label %163, label %195

163:                                              ; preds = %156
  %164 = load i32, ptr %11, align 4, !tbaa !9
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds [1000100 x i64], ptr @h, i64 0, i64 %165
  %167 = load i64, ptr %166, align 8, !tbaa !5
  %168 = load i32, ptr %11, align 4, !tbaa !9
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds [1000100 x i64], ptr @p, i64 0, i64 %169
  %171 = load i64, ptr %170, align 8, !tbaa !5
  %172 = sub nsw i64 %167, %171
  %173 = load i32, ptr %11, align 4, !tbaa !9
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds [1000100 x i64], ptr @h, i64 0, i64 %174
  store i64 %172, ptr %175, align 8, !tbaa !5
  %176 = load i32, ptr %11, align 4, !tbaa !9
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds [1000100 x i64], ptr @h, i64 0, i64 %177
  %179 = load i64, ptr %178, align 8, !tbaa !5
  %180 = icmp slt i64 %179, 0
  br i1 %180, label %181, label %188

181:                                              ; preds = %163
  %182 = load i64, ptr @MOD, align 8, !tbaa !5
  %183 = load i32, ptr %11, align 4, !tbaa !9
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds [1000100 x i64], ptr @h, i64 0, i64 %184
  %186 = load i64, ptr %185, align 8, !tbaa !5
  %187 = add nsw i64 %186, %182
  store i64 %187, ptr %185, align 8, !tbaa !5
  br label %188

188:                                              ; preds = %181, %163
  %189 = load i32, ptr %11, align 4, !tbaa !9
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds [1000100 x i64], ptr @h, i64 0, i64 %190
  %192 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt13unordered_mapIxxSt4hashIxESt8equal_toIxESaISt4pairIKxxEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) @hsh2, ptr noundef nonnull align 8 dereferenceable(8) %191)
  %193 = load i64, ptr %192, align 8, !tbaa !5
  %194 = add nsw i64 %193, 1
  store i64 %194, ptr %192, align 8, !tbaa !5
  br label %195

195:                                              ; preds = %188, %156
  br label %196

196:                                              ; preds = %195
  %197 = load i32, ptr %11, align 4, !tbaa !9
  %198 = add nsw i32 %197, 1
  store i32 %198, ptr %11, align 4, !tbaa !9
  br label %151, !llvm.loop !19

199:                                              ; preds = %155
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %200 = call ptr @_ZNSt13unordered_mapIxxSt4hashIxESt8equal_toIxESaISt4pairIKxxEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) @hsh2) #6
  %201 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %12, i32 0, i32 0
  %202 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %201, i32 0, i32 0
  store ptr %200, ptr %202, align 8
  br label %203

203:                                              ; preds = %219, %199
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %204 = call ptr @_ZNSt13unordered_mapIxxSt4hashIxESt8equal_toIxESaISt4pairIKxxEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) @hsh2) #6
  %205 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %13, i32 0, i32 0
  %206 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %205, i32 0, i32 0
  store ptr %204, ptr %206, align 8
  %207 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKxxELb0EEES6_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br i1 %207, label %209, label %208

208:                                              ; preds = %203
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %223

209:                                              ; preds = %203
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %210 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKxxELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  %211 = getelementptr inbounds %"struct.std::pair", ptr %210, i32 0, i32 1
  %212 = load i64, ptr %211, align 8, !tbaa !16
  store i64 %212, ptr %14, align 8, !tbaa !5
  %213 = load i64, ptr %14, align 8, !tbaa !5
  %214 = load i64, ptr %14, align 8, !tbaa !5
  %215 = sub nsw i64 %214, 1
  %216 = mul nsw i64 %213, %215
  %217 = load i64, ptr %6, align 8, !tbaa !5
  %218 = add nsw i64 %217, %216
  store i64 %218, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %219

219:                                              ; preds = %209
  %220 = call ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKxxELb0ELb0EEppEi(ptr noundef nonnull align 8 dereferenceable(8) %12, i32 noundef 0) #6
  %221 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %15, i32 0, i32 0
  %222 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %221, i32 0, i32 0
  store ptr %220, ptr %222, align 8
  br label %203, !llvm.loop !20

223:                                              ; preds = %208
  %224 = load i64, ptr %6, align 8, !tbaa !5
  %225 = sdiv i64 %224, 2
  %226 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %225)
  %227 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %226, i8 noundef signext 10)
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  ret i32 0
}

; 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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKxxELb0ELb0EEppEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #4 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) #5

; 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 #5 = { 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 #6 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = !{!17, !6, i64 8}
!17 = !{!"_ZTSSt4pairIKxxE", !6, i64 0, !6, i64 8}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !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_ostream" = type { ptr, %"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 }
%"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
@m = external dso_local global i32, align 4
@u = external dso_local global i32, align 4
@v = external dso_local global i32, align 4
@p = external dso_local local_unnamed_addr global [1000100 x i64], align 16
@MOD = external dso_local local_unnamed_addr global i64, align 8
@h = external dso_local global [1000100 x i64], align 16
@hsh = external dso_local global %"class.std::unordered_map", align 8
@hsh2 = external dso_local global %"class.std::unordered_map", align 8
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@_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 %"struct.std::__detail::_Node_iterator", align 8
  %2 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %3 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %4 = alloca %"struct.std::__detail::_Node_iterator", align 8
  store i64 1, ptr @p, align 16, !tbaa !5
  %5 = load i64, ptr @MOD, align 8, !tbaa !5
  br label %11

6:                                                ; preds = %11
  %7 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n, ptr noundef nonnull @m)
  %8 = load i32, ptr @n, align 4, !tbaa !9
  %.not46 = icmp slt i32 %8, 1
  br i1 %.not46, label %.preheader44, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %6
  %9 = zext nneg i32 %8 to i64
  %10 = shl nuw nsw i64 %9, 3
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 8 getelementptr inbounds (i8, ptr @h, i64 8), ptr nonnull align 8 getelementptr inbounds (i8, ptr @p, i64 8), i64 %10, i1 false), !tbaa !5
  br label %.preheader44

11:                                               ; preds = %16, %0
  %12 = phi i64 [ 1, %0 ], [ %18, %16 ]
  %indvars.iv = phi i64 [ 1, %0 ], [ %indvars.iv.next.1, %16 ]
  %13 = shl nsw i64 %12, 1
  %14 = srem i64 %13, %5
  %15 = getelementptr inbounds [1000100 x i64], ptr @p, i64 0, i64 %indvars.iv
  store i64 %14, ptr %15, align 8, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 1000100
  br i1 %exitcond.not, label %6, label %16, !llvm.loop !11

16:                                               ; preds = %11
  %17 = shl nsw i64 %14, 1
  %18 = srem i64 %17, %5
  %19 = getelementptr inbounds [1000100 x i64], ptr @p, i64 0, i64 %indvars.iv.next
  store i64 %18, ptr %19, align 8, !tbaa !5
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  br label %11

.preheader44:                                     ; preds = %.lr.ph.preheader, %6
  %20 = load i32, ptr @m, align 4, !tbaa !9
  %21 = icmp sgt i32 %20, 0
  br i1 %21, label %.lr.ph49, label %.preheader

.preheader.loopexit:                              ; preds = %36
  %.pre = load i32, ptr @n, align 4, !tbaa !9
  br label %.preheader

.preheader:                                       ; preds = %.preheader.loopexit, %.preheader44
  %22 = phi i32 [ %.pre, %.preheader.loopexit ], [ %8, %.preheader44 ]
  %.not4050 = icmp slt i32 %22, 1
  br i1 %.not4050, label %._crit_edge, label %.lr.ph52

.lr.ph49:                                         ; preds = %.preheader44, %36
  %.03248 = phi i32 [ %43, %36 ], [ 0, %.preheader44 ]
  %23 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @u, ptr noundef nonnull @v)
  %24 = load i32, ptr @v, align 4, !tbaa !9
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds [1000100 x i64], ptr @p, i64 0, i64 %25
  %27 = load i64, ptr %26, align 8, !tbaa !5
  %28 = load i32, ptr @u, align 4, !tbaa !9
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds [1000100 x i64], ptr @h, i64 0, i64 %29
  %31 = load i64, ptr %30, align 8, !tbaa !5
  %32 = add nsw i64 %31, %27
  store i64 %32, ptr %30, align 8, !tbaa !5
  %33 = load i64, ptr @MOD, align 8, !tbaa !5
  %.not42 = icmp slt i64 %32, %33
  br i1 %.not42, label %36, label %34

34:                                               ; preds = %.lr.ph49
  %35 = sub nsw i64 %32, %33
  store i64 %35, ptr %30, align 8, !tbaa !5
  br label %36

36:                                               ; preds = %34, %.lr.ph49
  %37 = getelementptr inbounds [1000100 x i64], ptr @p, i64 0, i64 %29
  %38 = load i64, ptr %37, align 8, !tbaa !5
  %39 = getelementptr inbounds [1000100 x i64], ptr @h, i64 0, i64 %25
  %40 = load i64, ptr %39, align 8, !tbaa !5
  %41 = add nsw i64 %40, %38
  %.not43 = icmp slt i64 %41, %33
  %42 = select i1 %.not43, i64 0, i64 %33
  %spec.select = sub nsw i64 %41, %42
  store i64 %spec.select, ptr %39, align 8, !tbaa !5
  %43 = add nuw nsw i32 %.03248, 1
  %44 = load i32, ptr @m, align 4, !tbaa !9
  %45 = icmp slt i32 %43, %44
  br i1 %45, label %.lr.ph49, label %.preheader.loopexit, !llvm.loop !13

._crit_edge:                                      ; preds = %.lr.ph52, %.preheader
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #7
  %46 = tail call ptr @_ZNSt13unordered_mapIxxSt4hashIxESt8equal_toIxESaISt4pairIKxxEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) @hsh) #7
  store ptr %46, ptr %1, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #7
  %47 = tail call ptr @_ZNSt13unordered_mapIxxSt4hashIxESt8equal_toIxESaISt4pairIKxxEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) @hsh) #7
  store ptr %47, ptr %2, align 8
  %48 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKxxELb0EEES6_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  br i1 %48, label %.lr.ph55, label %._crit_edge56

.lr.ph52:                                         ; preds = %.preheader, %.lr.ph52
  %indvars.iv72 = phi i64 [ %indvars.iv.next73, %.lr.ph52 ], [ 1, %.preheader ]
  %49 = getelementptr inbounds [1000100 x i64], ptr @h, i64 0, i64 %indvars.iv72
  %50 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt13unordered_mapIxxSt4hashIxESt8equal_toIxESaISt4pairIKxxEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) @hsh, ptr noundef nonnull align 8 dereferenceable(8) %49)
  %51 = load i64, ptr %50, align 8, !tbaa !5
  %52 = add nsw i64 %51, 1
  store i64 %52, ptr %50, align 8, !tbaa !5
  %indvars.iv.next73 = add nuw nsw i64 %indvars.iv72, 1
  %53 = load i32, ptr @n, align 4, !tbaa !9
  %54 = sext i32 %53 to i64
  %.not40.not = icmp slt i64 %indvars.iv72, %54
  br i1 %.not40.not, label %.lr.ph52, label %._crit_edge, !llvm.loop !14

._crit_edge56:                                    ; preds = %.lr.ph55, %._crit_edge
  %.034.lcssa = phi i64 [ 0, %._crit_edge ], [ %61, %.lr.ph55 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #7
  %55 = load i32, ptr @n, align 4, !tbaa !9
  %.not4157 = icmp slt i32 %55, 1
  br i1 %.not4157, label %._crit_edge61, label %.lr.ph60

.lr.ph55:                                         ; preds = %._crit_edge, %.lr.ph55
  %.03453 = phi i64 [ %61, %.lr.ph55 ], [ 0, %._crit_edge ]
  %56 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKxxELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %1) #7
  %57 = getelementptr inbounds i8, ptr %56, i64 8
  %58 = load i64, ptr %57, align 8, !tbaa !15
  %59 = add nsw i64 %58, -1
  %60 = mul nsw i64 %59, %58
  %61 = add nsw i64 %60, %.03453
  %62 = call ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKxxELb0ELb0EEppEi(ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef 0) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #7
  %63 = call ptr @_ZNSt13unordered_mapIxxSt4hashIxESt8equal_toIxESaISt4pairIKxxEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) @hsh) #7
  store ptr %63, ptr %2, align 8
  %64 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKxxELb0EEES6_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  br i1 %64, label %.lr.ph55, label %._crit_edge56, !llvm.loop !17

._crit_edge61:                                    ; preds = %85, %._crit_edge56
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  %65 = call ptr @_ZNSt13unordered_mapIxxSt4hashIxESt8equal_toIxESaISt4pairIKxxEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) @hsh2) #7
  store ptr %65, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  %66 = call ptr @_ZNSt13unordered_mapIxxSt4hashIxESt8equal_toIxESaISt4pairIKxxEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) @hsh2) #7
  store ptr %66, ptr %4, align 8
  %67 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKxxELb0EEES6_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  br i1 %67, label %.lr.ph64, label %._crit_edge65

.lr.ph60:                                         ; preds = %._crit_edge56, %85
  %indvars.iv75 = phi i64 [ %indvars.iv.next76, %85 ], [ 1, %._crit_edge56 ]
  %68 = getelementptr inbounds [1000100 x i64], ptr @h, i64 0, i64 %indvars.iv75
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt13unordered_mapIxxSt4hashIxESt8equal_toIxESaISt4pairIKxxEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) @hsh, ptr noundef nonnull align 8 dereferenceable(8) %68)
  %70 = load i64, ptr %69, align 8, !tbaa !5
  %71 = icmp eq i64 %70, 1
  br i1 %71, label %72, label %85

72:                                               ; preds = %.lr.ph60
  %73 = load i64, ptr %68, align 8, !tbaa !5
  %74 = getelementptr inbounds [1000100 x i64], ptr @p, i64 0, i64 %indvars.iv75
  %75 = load i64, ptr %74, align 8, !tbaa !5
  %76 = sub nsw i64 %73, %75
  store i64 %76, ptr %68, align 8, !tbaa !5
  %77 = icmp slt i64 %76, 0
  br i1 %77, label %78, label %81

78:                                               ; preds = %72
  %79 = load i64, ptr @MOD, align 8, !tbaa !5
  %80 = add nsw i64 %79, %76
  store i64 %80, ptr %68, align 8, !tbaa !5
  br label %81

81:                                               ; preds = %78, %72
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt13unordered_mapIxxSt4hashIxESt8equal_toIxESaISt4pairIKxxEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) @hsh2, ptr noundef nonnull align 8 dereferenceable(8) %68)
  %83 = load i64, ptr %82, align 8, !tbaa !5
  %84 = add nsw i64 %83, 1
  store i64 %84, ptr %82, align 8, !tbaa !5
  br label %85

85:                                               ; preds = %.lr.ph60, %81
  %indvars.iv.next76 = add nuw nsw i64 %indvars.iv75, 1
  %86 = load i32, ptr @n, align 4, !tbaa !9
  %87 = sext i32 %86 to i64
  %.not41.not = icmp slt i64 %indvars.iv75, %87
  br i1 %.not41.not, label %.lr.ph60, label %._crit_edge61, !llvm.loop !18

._crit_edge65:                                    ; preds = %.lr.ph64, %._crit_edge61
  %.1.lcssa = phi i64 [ %.034.lcssa, %._crit_edge61 ], [ %96, %.lr.ph64 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  %88 = sdiv i64 %.1.lcssa, 2
  %89 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %88)
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %89, i8 noundef signext 10)
  ret i32 0

.lr.ph64:                                         ; preds = %._crit_edge61, %.lr.ph64
  %.162 = phi i64 [ %96, %.lr.ph64 ], [ %.034.lcssa, %._crit_edge61 ]
  %91 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKxxELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  %92 = getelementptr inbounds i8, ptr %91, i64 8
  %93 = load i64, ptr %92, align 8, !tbaa !15
  %94 = add nsw i64 %93, -1
  %95 = mul nsw i64 %94, %93
  %96 = add nsw i64 %95, %.162
  %97 = call ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKxxELb0ELb0EEppEi(ptr noundef nonnull align 8 dereferenceable(8) %3, i32 noundef 0) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  %98 = call ptr @_ZNSt13unordered_mapIxxSt4hashIxESt8equal_toIxESaISt4pairIKxxEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) @hsh2) #7
  store ptr %98, ptr %4, align 8
  %99 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKxxELb0EEES6_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  br i1 %99, label %.lr.ph64, label %._crit_edge65, !llvm.loop !19
}

; 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: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKxxELb0ELb0EEppEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #4 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 #5

; 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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #6

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


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