; LLVM IR from abeaumont/competitive-programming :: cses (2417)

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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::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" }

@s = external dso_local global [1000001 x i64], align 16
@t = external dso_local global [1000001 x i64], align 16
@d = external dso_local global [1000000 x %"class.std::vector"], 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 i32, align 4
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i64, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %20 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %21 = getelementptr i8, ptr %20, i64 -24
  %22 = load i64, ptr %21, align 8
  %23 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %22
  %24 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %23, ptr noundef null)
  %25 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext true)
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #7
  store i64 2, ptr %2, align 8, !tbaa !8
  br label %26

26:                                               ; preds = %52, %0
  %27 = load i64, ptr %2, align 8, !tbaa !8
  %28 = icmp sle i64 %27, 1000000
  br i1 %28, label %30, label %29

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

30:                                               ; preds = %26
  %31 = load i64, ptr %2, align 8, !tbaa !8
  %32 = getelementptr inbounds [1000001 x i64], ptr @s, i64 0, i64 %31
  %33 = load i64, ptr %32, align 8, !tbaa !8
  %34 = icmp ne i64 %33, 0
  br i1 %34, label %51, label %35

35:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  %36 = load i64, ptr %2, align 8, !tbaa !8
  %37 = mul nsw i64 %36, 2
  store i64 %37, ptr %4, align 8, !tbaa !8
  br label %38

38:                                               ; preds = %46, %35
  %39 = load i64, ptr %4, align 8, !tbaa !8
  %40 = icmp sle i64 %39, 1000000
  br i1 %40, label %42, label %41

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

42:                                               ; preds = %38
  %43 = load i64, ptr %2, align 8, !tbaa !8
  %44 = load i64, ptr %4, align 8, !tbaa !8
  %45 = getelementptr inbounds [1000001 x i64], ptr @s, i64 0, i64 %44
  store i64 %43, ptr %45, align 8, !tbaa !8
  br label %46

46:                                               ; preds = %42
  %47 = load i64, ptr %2, align 8, !tbaa !8
  %48 = load i64, ptr %4, align 8, !tbaa !8
  %49 = add nsw i64 %48, %47
  store i64 %49, ptr %4, align 8, !tbaa !8
  br label %38, !llvm.loop !11

50:                                               ; preds = %41
  br label %51

51:                                               ; preds = %50, %30
  br label %52

52:                                               ; preds = %51
  %53 = load i64, ptr %2, align 8, !tbaa !8
  %54 = add nsw i64 %53, 1
  store i64 %54, ptr %2, align 8, !tbaa !8
  br label %26, !llvm.loop !13

55:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %56 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %5)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  store i32 0, ptr %7, align 4, !tbaa !14
  br label %57

57:                                               ; preds = %147, %55
  %58 = load i32, ptr %7, align 4, !tbaa !14
  %59 = sext i32 %58 to i64
  %60 = load i64, ptr %5, align 8, !tbaa !8
  %61 = icmp slt i64 %59, %60
  br i1 %61, label %63, label %62

62:                                               ; preds = %57
  store i32 8, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  br label %150

63:                                               ; preds = %57
  %64 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %6)
  br label %65

65:                                               ; preds = %96, %63
  %66 = load i64, ptr %6, align 8, !tbaa !8
  %67 = icmp sgt i64 %66, 1
  br i1 %67, label %68, label %97

68:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  %69 = load i64, ptr %6, align 8, !tbaa !8
  %70 = getelementptr inbounds [1000001 x i64], ptr @s, i64 0, i64 %69
  %71 = load i64, ptr %70, align 8, !tbaa !8
  %72 = trunc i64 %71 to i32
  store i32 %72, ptr %8, align 4, !tbaa !14
  %73 = load i32, ptr %8, align 4, !tbaa !14
  %74 = icmp ne i32 %73, 0
  br i1 %74, label %78, label %75

75:                                               ; preds = %68
  %76 = load i64, ptr %6, align 8, !tbaa !8
  %77 = trunc i64 %76 to i32
  store i32 %77, ptr %8, align 4, !tbaa !14
  br label %78

78:                                               ; preds = %75, %68
  %79 = load i32, ptr %7, align 4, !tbaa !14
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [1000000 x %"class.std::vector"], ptr @d, i64 0, i64 %80
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %82 = load i32, ptr %8, align 4, !tbaa !14
  %83 = sext i32 %82 to i64
  store i64 %83, ptr %9, align 8, !tbaa !8
  call void @_ZNSt6vectorIxSaIxEE9push_backEOx(ptr noundef nonnull align 8 dereferenceable(24) %81, ptr noundef nonnull align 8 dereferenceable(8) %9)
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %84

84:                                               ; preds = %91, %78
  %85 = load i64, ptr %6, align 8, !tbaa !8
  %86 = load i32, ptr %8, align 4, !tbaa !14
  %87 = sext i32 %86 to i64
  %88 = srem i64 %85, %87
  %89 = icmp ne i64 %88, 0
  %90 = xor i1 %89, true
  br i1 %90, label %91, label %96

91:                                               ; preds = %84
  %92 = load i32, ptr %8, align 4, !tbaa !14
  %93 = sext i32 %92 to i64
  %94 = load i64, ptr %6, align 8, !tbaa !8
  %95 = sdiv i64 %94, %93
  store i64 %95, ptr %6, align 8, !tbaa !8
  br label %84, !llvm.loop !16

96:                                               ; preds = %84
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %65, !llvm.loop !17

97:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %98 = load i32, ptr %7, align 4, !tbaa !14
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [1000000 x %"class.std::vector"], ptr @d, i64 0, i64 %99
  %101 = call noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %100) #7
  %102 = trunc i64 %101 to i32
  store i32 %102, ptr %10, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 1, ptr %11, align 4, !tbaa !14
  br label %103

103:                                              ; preds = %143, %97
  %104 = load i32, ptr %11, align 4, !tbaa !14
  %105 = load i32, ptr %10, align 4, !tbaa !14
  %106 = shl i32 1, %105
  %107 = icmp slt i32 %104, %106
  br i1 %107, label %109, label %108

108:                                              ; preds = %103
  store i32 15, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %146

109:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 1, ptr %12, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !14
  br label %110

110:                                              ; preds = %134, %109
  %111 = load i32, ptr %13, align 4, !tbaa !14
  %112 = load i32, ptr %10, align 4, !tbaa !14
  %113 = icmp slt i32 %111, %112
  br i1 %113, label %115, label %114

114:                                              ; preds = %110
  store i32 18, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %137

115:                                              ; preds = %110
  %116 = load i32, ptr %11, align 4, !tbaa !14
  %117 = load i32, ptr %13, align 4, !tbaa !14
  %118 = shl i32 1, %117
  %119 = and i32 %116, %118
  %120 = icmp ne i32 %119, 0
  br i1 %120, label %121, label %133

121:                                              ; preds = %115
  %122 = load i32, ptr %7, align 4, !tbaa !14
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [1000000 x %"class.std::vector"], ptr @d, i64 0, i64 %123
  %125 = load i32, ptr %13, align 4, !tbaa !14
  %126 = sext i32 %125 to i64
  %127 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %124, i64 noundef %126) #7
  %128 = load i64, ptr %127, align 8, !tbaa !8
  %129 = load i32, ptr %12, align 4, !tbaa !14
  %130 = sext i32 %129 to i64
  %131 = mul nsw i64 %130, %128
  %132 = trunc i64 %131 to i32
  store i32 %132, ptr %12, align 4, !tbaa !14
  br label %133

133:                                              ; preds = %121, %115
  br label %134

134:                                              ; preds = %133
  %135 = load i32, ptr %13, align 4, !tbaa !14
  %136 = add nsw i32 %135, 1
  store i32 %136, ptr %13, align 4, !tbaa !14
  br label %110, !llvm.loop !18

137:                                              ; preds = %114
  %138 = load i32, ptr %12, align 4, !tbaa !14
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds [1000001 x i64], ptr @t, i64 0, i64 %139
  %141 = load i64, ptr %140, align 8, !tbaa !8
  %142 = add nsw i64 %141, 1
  store i64 %142, ptr %140, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %143

143:                                              ; preds = %137
  %144 = load i32, ptr %11, align 4, !tbaa !14
  %145 = add nsw i32 %144, 1
  store i32 %145, ptr %11, align 4, !tbaa !14
  br label %103, !llvm.loop !19

146:                                              ; preds = %108
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %147

147:                                              ; preds = %146
  %148 = load i32, ptr %7, align 4, !tbaa !14
  %149 = add nsw i32 %148, 1
  store i32 %149, ptr %7, align 4, !tbaa !14
  br label %57, !llvm.loop !20

150:                                              ; preds = %62
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  store i64 0, ptr %14, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 0, ptr %15, align 4, !tbaa !14
  br label %151

151:                                              ; preds = %223, %150
  %152 = load i32, ptr %15, align 4, !tbaa !14
  %153 = sext i32 %152 to i64
  %154 = load i64, ptr %5, align 8, !tbaa !8
  %155 = icmp slt i64 %153, %154
  br i1 %155, label %157, label %156

156:                                              ; preds = %151
  store i32 21, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %226

157:                                              ; preds = %151
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %158 = load i32, ptr %15, align 4, !tbaa !14
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds [1000000 x %"class.std::vector"], ptr @d, i64 0, i64 %159
  %161 = call noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %160) #7
  %162 = trunc i64 %161 to i32
  store i32 %162, ptr %16, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 1, ptr %17, align 4, !tbaa !14
  br label %163

163:                                              ; preds = %219, %157
  %164 = load i32, ptr %17, align 4, !tbaa !14
  %165 = load i32, ptr %16, align 4, !tbaa !14
  %166 = shl i32 1, %165
  %167 = icmp slt i32 %164, %166
  br i1 %167, label %169, label %168

168:                                              ; preds = %163
  store i32 24, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %222

169:                                              ; preds = %163
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 1, ptr %18, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 0, ptr %19, align 4, !tbaa !14
  br label %170

170:                                              ; preds = %194, %169
  %171 = load i32, ptr %19, align 4, !tbaa !14
  %172 = load i32, ptr %16, align 4, !tbaa !14
  %173 = icmp slt i32 %171, %172
  br i1 %173, label %175, label %174

174:                                              ; preds = %170
  store i32 27, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %197

175:                                              ; preds = %170
  %176 = load i32, ptr %17, align 4, !tbaa !14
  %177 = load i32, ptr %19, align 4, !tbaa !14
  %178 = shl i32 1, %177
  %179 = and i32 %176, %178
  %180 = icmp ne i32 %179, 0
  br i1 %180, label %181, label %193

181:                                              ; preds = %175
  %182 = load i32, ptr %15, align 4, !tbaa !14
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds [1000000 x %"class.std::vector"], ptr @d, i64 0, i64 %183
  %185 = load i32, ptr %19, align 4, !tbaa !14
  %186 = sext i32 %185 to i64
  %187 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %184, i64 noundef %186) #7
  %188 = load i64, ptr %187, align 8, !tbaa !8
  %189 = load i32, ptr %18, align 4, !tbaa !14
  %190 = sext i32 %189 to i64
  %191 = mul nsw i64 %190, %188
  %192 = trunc i64 %191 to i32
  store i32 %192, ptr %18, align 4, !tbaa !14
  br label %193

193:                                              ; preds = %181, %175
  br label %194

194:                                              ; preds = %193
  %195 = load i32, ptr %19, align 4, !tbaa !14
  %196 = add nsw i32 %195, 1
  store i32 %196, ptr %19, align 4, !tbaa !14
  br label %170, !llvm.loop !21

197:                                              ; preds = %174
  %198 = load i32, ptr %17, align 4, !tbaa !14
  %199 = call i32 @llvm.ctpop.i32(i32 %198)
  %200 = and i32 %199, 1
  %201 = icmp ne i32 %200, 0
  br i1 %201, label %210, label %202

202:                                              ; preds = %197
  %203 = load i32, ptr %18, align 4, !tbaa !14
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds [1000001 x i64], ptr @t, i64 0, i64 %204
  %206 = load i64, ptr %205, align 8, !tbaa !8
  %207 = sub nsw i64 %206, 1
  %208 = load i64, ptr %14, align 8, !tbaa !8
  %209 = add nsw i64 %208, %207
  store i64 %209, ptr %14, align 8, !tbaa !8
  br label %218

210:                                              ; preds = %197
  %211 = load i32, ptr %18, align 4, !tbaa !14
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds [1000001 x i64], ptr @t, i64 0, i64 %212
  %214 = load i64, ptr %213, align 8, !tbaa !8
  %215 = sub nsw i64 %214, 1
  %216 = load i64, ptr %14, align 8, !tbaa !8
  %217 = sub nsw i64 %216, %215
  store i64 %217, ptr %14, align 8, !tbaa !8
  br label %218

218:                                              ; preds = %210, %202
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %219

219:                                              ; preds = %218
  %220 = load i32, ptr %17, align 4, !tbaa !14
  %221 = add nsw i32 %220, 1
  store i32 %221, ptr %17, align 4, !tbaa !14
  br label %163, !llvm.loop !22

222:                                              ; preds = %168
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %223

223:                                              ; preds = %222
  %224 = load i32, ptr %15, align 4, !tbaa !14
  %225 = add nsw i32 %224, 1
  store i32 %225, ptr %15, align 4, !tbaa !14
  br label %151, !llvm.loop !23

226:                                              ; preds = %156
  %227 = load i64, ptr %5, align 8, !tbaa !8
  %228 = load i64, ptr %5, align 8, !tbaa !8
  %229 = sub nsw i64 %228, 1
  %230 = mul nsw i64 %227, %229
  %231 = sdiv i64 %230, 2
  %232 = load i64, ptr %14, align 8, !tbaa !8
  %233 = sdiv i64 %232, 2
  %234 = add nsw i64 %231, %233
  %235 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %234)
  %236 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %235, i8 noundef signext 10)
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  %237 = load i32, ptr %1, align 4
  ret i32 %237
}

; 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #3

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

; 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)) #4 align 2

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.ctpop.i32(i32) #5

; 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) #4 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!15, !15, i64 0}
!15 = !{!"int", !10, i64 0}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::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" }

@s = external dso_local local_unnamed_addr global [1000001 x i64], align 16
@t = external dso_local local_unnamed_addr global [1000001 x i64], align 16
@d = external dso_local global [1000000 x %"class.std::vector"], 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 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %5 = getelementptr i8, ptr %4, i64 -24
  %6 = load i64, ptr %5, align 8
  %7 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %6
  %8 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %7, ptr noundef null)
  %9 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext true)
  br label %14

10:                                               ; preds = %.loopexit76
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #7
  %11 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %12 = load i64, ptr %1, align 8, !tbaa !8
  %13 = icmp sgt i64 %12, 0
  br i1 %13, label %.lr.ph95, label %._crit_edge108

14:                                               ; preds = %0, %.loopexit76
  %.05279 = phi i64 [ 2, %0 ], [ %22, %.loopexit76 ]
  %15 = getelementptr inbounds [1000001 x i64], ptr @s, i64 0, i64 %.05279
  %16 = load i64, ptr %15, align 8, !tbaa !8
  %.not72 = icmp eq i64 %16, 0
  %17 = icmp ult i64 %.05279, 500001
  %or.cond = and i1 %.not72, %17
  br i1 %or.cond, label %.lr.ph.preheader, label %.loopexit76

.lr.ph.preheader:                                 ; preds = %14
  %18 = shl nuw nsw i64 %.05279, 1
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %.06278 = phi i64 [ %20, %.lr.ph ], [ %18, %.lr.ph.preheader ]
  %19 = getelementptr inbounds [1000001 x i64], ptr @s, i64 0, i64 %.06278
  store i64 %.05279, ptr %19, align 8, !tbaa !8
  %20 = add nuw nsw i64 %.06278, %.05279
  %21 = icmp ult i64 %20, 1000001
  br i1 %21, label %.lr.ph, label %.loopexit76, !llvm.loop !11

.loopexit76:                                      ; preds = %.lr.ph, %14
  %22 = add nuw nsw i64 %.05279, 1
  %exitcond.not = icmp eq i64 %22, 1000001
  br i1 %exitcond.not, label %10, label %14, !llvm.loop !13

.preheader74:                                     ; preds = %._crit_edge90
  %23 = icmp sgt i64 %63, 0
  br i1 %23, label %.lr.ph107, label %._crit_edge108

.lr.ph95:                                         ; preds = %10, %._crit_edge90
  %indvars.iv119 = phi i64 [ %indvars.iv.next120, %._crit_edge90 ], [ 0, %10 ]
  %24 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %.pr = load i64, ptr %2, align 8, !tbaa !8
  %25 = icmp sgt i64 %.pr, 1
  br i1 %25, label %.lr.ph83, label %._crit_edge

.lr.ph83:                                         ; preds = %.lr.ph95
  %26 = getelementptr inbounds [1000000 x %"class.std::vector"], ptr @d, i64 0, i64 %indvars.iv119
  br label %28

..loopexit_crit_edge:                             ; preds = %.lr.ph81
  store i64 %36, ptr %2, align 8, !tbaa !8
  br label %.loopexit

.loopexit:                                        ; preds = %..loopexit_crit_edge, %28
  %.lcssa77 = phi i64 [ %36, %..loopexit_crit_edge ], [ %.promoted, %28 ]
  %27 = icmp sgt i64 %.lcssa77, 1
  br i1 %27, label %28, label %._crit_edge, !llvm.loop !14

28:                                               ; preds = %.lr.ph83, %.loopexit
  %29 = phi i64 [ %.pr, %.lr.ph83 ], [ %.lcssa77, %.loopexit ]
  %30 = getelementptr inbounds [1000001 x i64], ptr @s, i64 0, i64 %29
  %31 = load i64, ptr %30, align 8, !tbaa !8
  %32 = and i64 %31, 4294967295
  %.not70 = icmp eq i64 %32, 0
  %spec.select = select i1 %.not70, i64 %29, i64 %31
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  %sext = shl i64 %spec.select, 32
  %33 = ashr exact i64 %sext, 32
  store i64 %33, ptr %3, align 8, !tbaa !8
  call void @_ZNSt6vectorIxSaIxEE9push_backEOx(ptr noundef nonnull align 8 dereferenceable(24) %26, ptr noundef nonnull align 8 dereferenceable(8) %3)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  %.promoted = load i64, ptr %2, align 8, !tbaa !8
  %34 = srem i64 %.promoted, %33
  %.not7180 = icmp eq i64 %34, 0
  br i1 %.not7180, label %.lr.ph81, label %.loopexit

.lr.ph81:                                         ; preds = %28, %.lr.ph81
  %35 = phi i64 [ %36, %.lr.ph81 ], [ %.promoted, %28 ]
  %36 = sdiv i64 %35, %33
  %37 = srem i64 %36, %33
  %.not71 = icmp eq i64 %37, 0
  br i1 %.not71, label %.lr.ph81, label %..loopexit_crit_edge, !llvm.loop !15

._crit_edge:                                      ; preds = %.loopexit, %.lr.ph95
  %38 = getelementptr inbounds [1000000 x %"class.std::vector"], ptr @d, i64 0, i64 %indvars.iv119
  %39 = call noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %38) #7
  %40 = trunc i64 %39 to i32
  %41 = shl nuw i32 1, %40
  %42 = icmp sgt i32 %41, 1
  br i1 %42, label %.preheader75.lr.ph, label %._crit_edge90

.preheader75.lr.ph:                               ; preds = %._crit_edge
  %43 = icmp sgt i32 %40, 0
  br i1 %43, label %.preheader75.us.preheader, label %.preheader75.lr.ph.split

.preheader75.us.preheader:                        ; preds = %.preheader75.lr.ph
  %wide.trip.count = and i64 %39, 2147483647
  br label %.preheader75.us

.preheader75.us:                                  ; preds = %.preheader75.us.preheader, %._crit_edge87.us
  %.05989.us = phi i32 [ %58, %._crit_edge87.us ], [ 1, %.preheader75.us.preheader ]
  br label %44

44:                                               ; preds = %.preheader75.us, %53
  %indvars.iv = phi i64 [ 0, %.preheader75.us ], [ %indvars.iv.next, %53 ]
  %.05784.us = phi i32 [ 1, %.preheader75.us ], [ %.158.us, %53 ]
  %45 = trunc nuw nsw i64 %indvars.iv to i32
  %46 = shl nuw i32 1, %45
  %47 = and i32 %46, %.05989.us
  %.not69.us = icmp eq i32 %47, 0
  br i1 %.not69.us, label %53, label %48

48:                                               ; preds = %44
  %49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef %indvars.iv) #7
  %50 = load i64, ptr %49, align 8, !tbaa !8
  %51 = trunc i64 %50 to i32
  %52 = mul i32 %.05784.us, %51
  br label %53

53:                                               ; preds = %48, %44
  %.158.us = phi i32 [ %52, %48 ], [ %.05784.us, %44 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond117.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond117.not, label %._crit_edge87.us, label %44, !llvm.loop !16

._crit_edge87.us:                                 ; preds = %53
  %54 = sext i32 %.158.us to i64
  %55 = getelementptr inbounds [1000001 x i64], ptr @t, i64 0, i64 %54
  %56 = load i64, ptr %55, align 8, !tbaa !8
  %57 = add nsw i64 %56, 1
  store i64 %57, ptr %55, align 8, !tbaa !8
  %58 = add nuw nsw i32 %.05989.us, 1
  %exitcond118.not = icmp eq i32 %58, %41
  br i1 %exitcond118.not, label %._crit_edge90, label %.preheader75.us, !llvm.loop !17

.preheader75.lr.ph.split:                         ; preds = %.preheader75.lr.ph
  %.promoted91 = load i64, ptr getelementptr inbounds (i8, ptr @t, i64 8), align 8, !tbaa !8
  %59 = add nsw i32 %41, -2
  %60 = zext nneg i32 %59 to i64
  %61 = add i64 %.promoted91, 1
  %62 = add i64 %61, %60
  store i64 %62, ptr getelementptr inbounds (i8, ptr @t, i64 8), align 8, !tbaa !8
  br label %._crit_edge90

._crit_edge90:                                    ; preds = %._crit_edge87.us, %.preheader75.lr.ph.split, %._crit_edge
  %indvars.iv.next120 = add nuw nsw i64 %indvars.iv119, 1
  %63 = load i64, ptr %1, align 8, !tbaa !8
  %64 = icmp sgt i64 %63, %indvars.iv.next120
  br i1 %64, label %.lr.ph95, label %.preheader74, !llvm.loop !18

._crit_edge108.loopexit:                          ; preds = %._crit_edge103
  %65 = sdiv i64 %.155.lcssa, 2
  br label %._crit_edge108

._crit_edge108:                                   ; preds = %10, %._crit_edge108.loopexit, %.preheader74
  %.054.lcssa = phi i64 [ 0, %.preheader74 ], [ %65, %._crit_edge108.loopexit ], [ 0, %10 ]
  %.lcssa = phi i64 [ %63, %.preheader74 ], [ %104, %._crit_edge108.loopexit ], [ %12, %10 ]
  %66 = add nsw i64 %.lcssa, -1
  %67 = mul nsw i64 %66, %.lcssa
  %68 = sdiv i64 %67, 2
  %69 = add nsw i64 %68, %.054.lcssa
  %70 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %69)
  %71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %70, i8 noundef signext 10)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #7
  ret i32 0

.lr.ph107:                                        ; preds = %.preheader74, %._crit_edge103
  %indvars.iv129 = phi i64 [ %indvars.iv.next130, %._crit_edge103 ], [ 0, %.preheader74 ]
  %.054105 = phi i64 [ %.155.lcssa, %._crit_edge103 ], [ 0, %.preheader74 ]
  %72 = getelementptr inbounds [1000000 x %"class.std::vector"], ptr @d, i64 0, i64 %indvars.iv129
  %73 = call noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %72) #7
  %74 = trunc i64 %73 to i32
  %75 = shl nuw i32 1, %74
  %76 = icmp sgt i32 %75, 1
  br i1 %76, label %.preheader.lr.ph, label %._crit_edge103

.preheader.lr.ph:                                 ; preds = %.lr.ph107
  %77 = icmp sgt i32 %74, 0
  br i1 %77, label %.preheader.us.preheader, label %.preheader.lr.ph.split

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph
  %wide.trip.count126 = and i64 %73, 2147483647
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge99.us
  %.051102.us = phi i32 [ %96, %._crit_edge99.us ], [ 1, %.preheader.us.preheader ]
  %.155101.us = phi i64 [ %.2.us, %._crit_edge99.us ], [ %.054105, %.preheader.us.preheader ]
  br label %78

78:                                               ; preds = %.preheader.us, %87
  %indvars.iv123 = phi i64 [ 0, %.preheader.us ], [ %indvars.iv.next124, %87 ]
  %.05096.us = phi i32 [ 1, %.preheader.us ], [ %.1.us, %87 ]
  %79 = trunc nuw nsw i64 %indvars.iv123 to i32
  %80 = shl nuw i32 1, %79
  %81 = and i32 %80, %.051102.us
  %.not68.us = icmp eq i32 %81, 0
  br i1 %.not68.us, label %87, label %82

82:                                               ; preds = %78
  %83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %72, i64 noundef %indvars.iv123) #7
  %84 = load i64, ptr %83, align 8, !tbaa !8
  %85 = trunc i64 %84 to i32
  %86 = mul i32 %.05096.us, %85
  br label %87

87:                                               ; preds = %82, %78
  %.1.us = phi i32 [ %86, %82 ], [ %.05096.us, %78 ]
  %indvars.iv.next124 = add nuw nsw i64 %indvars.iv123, 1
  %exitcond127.not = icmp eq i64 %indvars.iv.next124, %wide.trip.count126
  br i1 %exitcond127.not, label %._crit_edge99.us, label %78, !llvm.loop !19

._crit_edge99.us:                                 ; preds = %87
  %88 = call range(i32 0, 32) i32 @llvm.ctpop.i32(i32 %.051102.us)
  %89 = and i32 %88, 1
  %.not.us = icmp eq i32 %89, 0
  %90 = sext i32 %.1.us to i64
  %91 = getelementptr inbounds [1000001 x i64], ptr @t, i64 0, i64 %90
  %92 = load i64, ptr %91, align 8, !tbaa !8
  %.neg73.us = add i64 %.155101.us, 1
  %93 = sub i64 %.neg73.us, %92
  %94 = add i64 %.155101.us, -1
  %95 = add i64 %94, %92
  %.2.us = select i1 %.not.us, i64 %95, i64 %93
  %96 = add nuw nsw i32 %.051102.us, 1
  %exitcond128.not = icmp eq i32 %96, %75
  br i1 %exitcond128.not, label %._crit_edge103, label %.preheader.us, !llvm.loop !20

.preheader.lr.ph.split:                           ; preds = %.preheader.lr.ph
  %97 = load i64, ptr getelementptr inbounds (i8, ptr @t, i64 8), align 8
  br label %.preheader

.preheader:                                       ; preds = %.preheader.lr.ph.split, %.preheader
  %.051102 = phi i32 [ 1, %.preheader.lr.ph.split ], [ %103, %.preheader ]
  %.155101 = phi i64 [ %.054105, %.preheader.lr.ph.split ], [ %.2, %.preheader ]
  %98 = call range(i32 0, 32) i32 @llvm.ctpop.i32(i32 %.051102)
  %99 = and i32 %98, 1
  %.not = icmp eq i32 %99, 0
  %.neg73 = add i64 %.155101, 1
  %100 = sub i64 %.neg73, %97
  %101 = add i64 %.155101, -1
  %102 = add i64 %101, %97
  %.2 = select i1 %.not, i64 %102, i64 %100
  %103 = add nuw nsw i32 %.051102, 1
  %exitcond122.not = icmp eq i32 %103, %75
  br i1 %exitcond122.not, label %._crit_edge103, label %.preheader, !llvm.loop !20

._crit_edge103:                                   ; preds = %.preheader, %._crit_edge99.us, %.lr.ph107
  %.155.lcssa = phi i64 [ %.054105, %.lr.ph107 ], [ %.2.us, %._crit_edge99.us ], [ %.2, %.preheader ]
  %indvars.iv.next130 = add nuw nsw i64 %indvars.iv129, 1
  %104 = load i64, ptr %1, align 8, !tbaa !8
  %105 = icmp sgt i64 %104, %indvars.iv.next130
  br i1 %105, label %.lr.ph107, label %._crit_edge108.loopexit, !llvm.loop !21
}

; 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #3

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

; Function Attrs: mustprogress 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 #4 align 2

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

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.ctpop.i32(i32) #5

; 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 #4 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12}


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