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

; 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::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" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

@xs = external dso_local global [3000 x i64], align 16
@t = external dso_local global [9000000 x i64], align 16
@ans = external dso_local global i64, align 8
@_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 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %14 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %15 = getelementptr i8, ptr %14, i64 -24
  %16 = load i64, ptr %15, align 8
  %17 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %16
  %18 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %17, ptr noundef null)
  %19 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %3) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  %20 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
          to label %21 unwind label %27

21:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  store i32 0, ptr %6, align 4, !tbaa !8
  br label %22

22:                                               ; preds = %135, %21
  %23 = load i32, ptr %6, align 4, !tbaa !8
  %24 = load i32, ptr %2, align 4, !tbaa !8
  %25 = icmp slt i32 %23, %24
  br i1 %25, label %31, label %26

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

27:                                               ; preds = %184, %181, %0
  %28 = landingpad { ptr, i32 }
          cleanup
  %29 = extractvalue { ptr, i32 } %28, 0
  store ptr %29, ptr %4, align 8
  %30 = extractvalue { ptr, i32 } %28, 1
  store i32 %30, ptr %5, align 4
  br label %188

31:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 0, ptr %8, align 4, !tbaa !8
  br label %32

32:                                               ; preds = %87, %31
  %33 = load i32, ptr %6, align 4, !tbaa !8
  %34 = load i32, ptr %8, align 4, !tbaa !8
  %35 = add nsw i32 %33, %34
  %36 = load i32, ptr %2, align 4, !tbaa !8
  %37 = icmp slt i32 %35, %36
  br i1 %37, label %38, label %41

38:                                               ; preds = %32
  %39 = load i32, ptr %8, align 4, !tbaa !8
  %40 = icmp slt i32 %39, 64
  br label %41

41:                                               ; preds = %38, %32
  %42 = phi i1 [ false, %32 ], [ %40, %38 ]
  br i1 %42, label %44, label %43

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

44:                                               ; preds = %41
  %45 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %46 unwind label %52

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

47:                                               ; preds = %79, %46
  %48 = load i32, ptr %9, align 4, !tbaa !8
  %49 = load i32, ptr %2, align 4, !tbaa !8
  %50 = icmp slt i32 %48, %49
  br i1 %50, label %56, label %51

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

52:                                               ; preds = %44
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %4, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %5, align 4
  br label %90

56:                                               ; preds = %47
  %57 = load i32, ptr %8, align 4, !tbaa !8
  %58 = icmp eq i32 %57, 0
  br i1 %58, label %59, label %60

59:                                               ; preds = %56
  br label %65

60:                                               ; preds = %56
  %61 = load i32, ptr %9, align 4, !tbaa !8
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [3000 x i64], ptr @xs, i64 0, i64 %62
  %64 = load i64, ptr %63, align 8, !tbaa !11
  br label %65

65:                                               ; preds = %60, %59
  %66 = phi i64 [ 0, %59 ], [ %64, %60 ]
  %67 = shl i64 %66, 1
  %68 = load i32, ptr %9, align 4, !tbaa !8
  %69 = sext i32 %68 to i64
  %70 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %69)
          to label %71 unwind label %82

71:                                               ; preds = %65
  %72 = load i8, ptr %70, align 1, !tbaa !13
  %73 = sext i8 %72 to i64
  %74 = add nsw i64 %67, %73
  %75 = sub nsw i64 %74, 48
  %76 = load i32, ptr %9, align 4, !tbaa !8
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [3000 x i64], ptr @xs, i64 0, i64 %77
  store i64 %75, ptr %78, align 8, !tbaa !11
  br label %79

79:                                               ; preds = %71
  %80 = load i32, ptr %9, align 4, !tbaa !8
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %9, align 4, !tbaa !8
  br label %47, !llvm.loop !14

82:                                               ; preds = %65
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %4, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %90

86:                                               ; preds = %51
  br label %87

87:                                               ; preds = %86
  %88 = load i32, ptr %8, align 4, !tbaa !8
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %8, align 4, !tbaa !8
  br label %32, !llvm.loop !16

90:                                               ; preds = %82, %52
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  br label %188

91:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 0, ptr %10, align 4, !tbaa !8
  br label %92

92:                                               ; preds = %131, %91
  %93 = load i32, ptr %10, align 4, !tbaa !8
  %94 = load i32, ptr %2, align 4, !tbaa !8
  %95 = icmp slt i32 %93, %94
  br i1 %95, label %97, label %96

96:                                               ; preds = %92
  store i32 11, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %134

97:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %98 = load i32, ptr %10, align 4, !tbaa !8
  %99 = add nsw i32 %98, 1
  store i32 %99, ptr %11, align 4, !tbaa !8
  br label %100

100:                                              ; preds = %127, %97
  %101 = load i32, ptr %11, align 4, !tbaa !8
  %102 = load i32, ptr %2, align 4, !tbaa !8
  %103 = icmp slt i32 %101, %102
  br i1 %103, label %105, label %104

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

105:                                              ; preds = %100
  %106 = load i32, ptr %10, align 4, !tbaa !8
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [3000 x i64], ptr @xs, i64 0, i64 %107
  %109 = load i64, ptr %108, align 8, !tbaa !11
  %110 = load i32, ptr %11, align 4, !tbaa !8
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [3000 x i64], ptr @xs, i64 0, i64 %111
  %113 = load i64, ptr %112, align 8, !tbaa !11
  %114 = and i64 %109, %113
  %115 = call i64 @llvm.ctpop.i64(i64 %114)
  %116 = trunc i64 %115 to i32
  %117 = sext i32 %116 to i64
  %118 = load i32, ptr %10, align 4, !tbaa !8
  %119 = load i32, ptr %2, align 4, !tbaa !8
  %120 = mul nsw i32 %118, %119
  %121 = load i32, ptr %11, align 4, !tbaa !8
  %122 = add nsw i32 %120, %121
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [9000000 x i64], ptr @t, i64 0, i64 %123
  %125 = load i64, ptr %124, align 8, !tbaa !11
  %126 = add nsw i64 %125, %117
  store i64 %126, ptr %124, align 8, !tbaa !11
  br label %127

127:                                              ; preds = %105
  %128 = load i32, ptr %11, align 4, !tbaa !8
  %129 = add nsw i32 %128, 1
  store i32 %129, ptr %11, align 4, !tbaa !8
  br label %100, !llvm.loop !17

130:                                              ; preds = %104
  br label %131

131:                                              ; preds = %130
  %132 = load i32, ptr %10, align 4, !tbaa !8
  %133 = add nsw i32 %132, 1
  store i32 %133, ptr %10, align 4, !tbaa !8
  br label %92, !llvm.loop !18

134:                                              ; preds = %96
  br label %135

135:                                              ; preds = %134
  %136 = load i32, ptr %6, align 4, !tbaa !8
  %137 = add nsw i32 %136, 64
  store i32 %137, ptr %6, align 4, !tbaa !8
  br label %22, !llvm.loop !19

138:                                              ; preds = %26
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 0, ptr %12, align 4, !tbaa !8
  br label %139

139:                                              ; preds = %178, %138
  %140 = load i32, ptr %12, align 4, !tbaa !8
  %141 = load i32, ptr %2, align 4, !tbaa !8
  %142 = icmp slt i32 %140, %141
  br i1 %142, label %144, label %143

143:                                              ; preds = %139
  store i32 17, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %181

144:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %145 = load i32, ptr %12, align 4, !tbaa !8
  %146 = add nsw i32 %145, 1
  store i32 %146, ptr %13, align 4, !tbaa !8
  br label %147

147:                                              ; preds = %174, %144
  %148 = load i32, ptr %13, align 4, !tbaa !8
  %149 = load i32, ptr %2, align 4, !tbaa !8
  %150 = icmp slt i32 %148, %149
  br i1 %150, label %152, label %151

151:                                              ; preds = %147
  store i32 20, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %177

152:                                              ; preds = %147
  %153 = load i32, ptr %12, align 4, !tbaa !8
  %154 = load i32, ptr %2, align 4, !tbaa !8
  %155 = mul nsw i32 %153, %154
  %156 = load i32, ptr %13, align 4, !tbaa !8
  %157 = add nsw i32 %155, %156
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [9000000 x i64], ptr @t, i64 0, i64 %158
  %160 = load i64, ptr %159, align 8, !tbaa !11
  %161 = load i32, ptr %12, align 4, !tbaa !8
  %162 = load i32, ptr %2, align 4, !tbaa !8
  %163 = mul nsw i32 %161, %162
  %164 = load i32, ptr %13, align 4, !tbaa !8
  %165 = add nsw i32 %163, %164
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds [9000000 x i64], ptr @t, i64 0, i64 %166
  %168 = load i64, ptr %167, align 8, !tbaa !11
  %169 = sub nsw i64 %168, 1
  %170 = mul nsw i64 %160, %169
  %171 = sdiv i64 %170, 2
  %172 = load i64, ptr @ans, align 8, !tbaa !11
  %173 = add nsw i64 %172, %171
  store i64 %173, ptr @ans, align 8, !tbaa !11
  br label %174

174:                                              ; preds = %152
  %175 = load i32, ptr %13, align 4, !tbaa !8
  %176 = add nsw i32 %175, 1
  store i32 %176, ptr %13, align 4, !tbaa !8
  br label %147, !llvm.loop !20

177:                                              ; preds = %151
  br label %178

178:                                              ; preds = %177
  %179 = load i32, ptr %12, align 4, !tbaa !8
  %180 = add nsw i32 %179, 1
  store i32 %180, ptr %12, align 4, !tbaa !8
  br label %139, !llvm.loop !21

181:                                              ; preds = %143
  %182 = load i64, ptr @ans, align 8, !tbaa !11
  %183 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %182)
          to label %184 unwind label %27

184:                                              ; preds = %181
  %185 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %183, i8 noundef signext 10)
          to label %186 unwind label %27

186:                                              ; preds = %184
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  %187 = load i32, ptr %1, align 4
  ret i32 %187

188:                                              ; preds = %90, %27
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  br label %189

189:                                              ; preds = %188
  %190 = load ptr, ptr %4, align 8
  %191 = load i32, ptr %5, align 4
  %192 = insertvalue { ptr, i32 } poison, ptr %190, 0
  %193 = insertvalue { ptr, i32 } %192, i32 %191, 1
  resume { ptr, i32 } %193
}

; 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: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2

declare i32 @__gxx_personality_v0(...)

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) #2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long long", !10, i64 0}
!13 = !{!10, !10, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}
!18 = distinct !{!18, !15}
!19 = distinct !{!19, !15}
!20 = distinct !{!20, !15}
!21 = distinct !{!21, !15}


; 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::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" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

@xs = external dso_local local_unnamed_addr global [3000 x i64], align 16
@t = external dso_local local_unnamed_addr global [9000000 x i64], align 16
@ans = external dso_local local_unnamed_addr global i64, align 8
@_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 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca %"class.std::__cxx11::basic_string", align 8
  %3 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %4 = getelementptr i8, ptr %3, i64 -24
  %5 = load i64, ptr %4, align 8
  %6 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %5
  %7 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %6, ptr noundef null)
  %8 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #8
  %9 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
          to label %.preheader47 unwind label %17

.preheader47:                                     ; preds = %0
  %10 = load i32, ptr %1, align 4, !tbaa !8
  %11 = icmp sgt i32 %10, 0
  br i1 %11, label %.preheader46, label %.preheader.thread

.preheader.thread:                                ; preds = %.preheader47
  %ans.promoted66104 = load i64, ptr @ans, align 8, !tbaa !11
  br label %._crit_edge72

.preheader46:                                     ; preds = %.preheader47, %._crit_edge59
  %12 = phi i32 [ %19, %._crit_edge59 ], [ %10, %.preheader47 ]
  %.03760 = phi i32 [ %54, %._crit_edge59 ], [ 0, %.preheader47 ]
  %13 = icmp slt i32 %.03760, %12
  br i1 %13, label %.lr.ph53, label %.preheader45

.preheader:                                       ; preds = %._crit_edge59
  %ans.promoted66 = load i64, ptr @ans, align 8, !tbaa !11
  %14 = icmp sgt i32 %19, 0
  br i1 %14, label %.lr.ph71.preheader, label %._crit_edge72

.lr.ph71.preheader:                               ; preds = %.preheader
  %15 = zext nneg i32 %19 to i64
  %16 = zext nneg i32 %19 to i64
  br label %.lr.ph71

17:                                               ; preds = %105, %._crit_edge72, %0
  %18 = landingpad { ptr, i32 }
          cleanup
  br label %108

.preheader45:                                     ; preds = %._crit_edge, %.preheader46
  %19 = phi i32 [ %12, %.preheader46 ], [ %35, %._crit_edge ]
  %20 = icmp sgt i32 %19, 0
  br i1 %20, label %.lr.ph58.preheader, label %._crit_edge59

.lr.ph58.preheader:                               ; preds = %.preheader45
  %21 = zext nneg i32 %19 to i64
  %22 = zext nneg i32 %19 to i64
  br label %.lr.ph58

.lr.ph53:                                         ; preds = %.preheader46, %._crit_edge
  %.03652 = phi i32 [ %36, %._crit_edge ], [ 0, %.preheader46 ]
  %23 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %.preheader44 unwind label %41

.preheader44:                                     ; preds = %.lr.ph53
  %24 = load i32, ptr %1, align 4, !tbaa !8
  %25 = icmp sgt i32 %24, 0
  br i1 %25, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader44
  %26 = icmp eq i32 %.03652, 0
  br i1 %26, label %.lr.ph.split.us, label %.lr.ph.split

.lr.ph.split.us:                                  ; preds = %.lr.ph, %.lr.ph.split.us
  %indvars.iv78 = phi i64 [ %indvars.iv.next79, %.lr.ph.split.us ], [ 0, %.lr.ph ]
  %27 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %indvars.iv78)
  %28 = load i8, ptr %27, align 1, !tbaa !13
  %29 = sext i8 %28 to i64
  %30 = add nsw i64 %29, -48
  %31 = getelementptr inbounds [3000 x i64], ptr @xs, i64 0, i64 %indvars.iv78
  store i64 %30, ptr %31, align 8, !tbaa !11
  %indvars.iv.next79 = add nuw nsw i64 %indvars.iv78, 1
  %32 = load i32, ptr %1, align 4, !tbaa !8
  %33 = sext i32 %32 to i64
  %34 = icmp slt i64 %indvars.iv.next79, %33
  br i1 %34, label %.lr.ph.split.us, label %._crit_edge, !llvm.loop !14

._crit_edge:                                      ; preds = %.lr.ph.split, %.lr.ph.split.us, %.preheader44
  %35 = phi i32 [ %24, %.preheader44 ], [ %32, %.lr.ph.split.us ], [ %51, %.lr.ph.split ]
  %36 = add nuw nsw i32 %.03652, 1
  %37 = add nuw nsw i32 %36, %.03760
  %38 = icmp slt i32 %37, %35
  %39 = icmp ult i32 %.03652, 63
  %40 = and i1 %39, %38
  br i1 %40, label %.lr.ph53, label %.preheader45, !llvm.loop !16

41:                                               ; preds = %.lr.ph53
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %108

.lr.ph.split:                                     ; preds = %.lr.ph, %.lr.ph.split
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph.split ], [ 0, %.lr.ph ]
  %43 = getelementptr inbounds [3000 x i64], ptr @xs, i64 0, i64 %indvars.iv
  %44 = load i64, ptr %43, align 8, !tbaa !11
  %45 = shl i64 %44, 1
  %46 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %indvars.iv)
  %47 = load i8, ptr %46, align 1, !tbaa !13
  %48 = sext i8 %47 to i64
  %49 = add i64 %45, -48
  %50 = add i64 %49, %48
  store i64 %50, ptr %43, align 8, !tbaa !11
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %51 = load i32, ptr %1, align 4, !tbaa !8
  %52 = sext i32 %51 to i64
  %53 = icmp slt i64 %indvars.iv.next, %52
  br i1 %53, label %.lr.ph.split, label %._crit_edge, !llvm.loop !14

.loopexit43:                                      ; preds = %scalar.ph, %middle.block, %.lr.ph58
  %indvars.iv.next82 = add nuw nsw i64 %indvars.iv81, 1
  %exitcond90.not = icmp eq i64 %indvars.iv.next87, %22
  br i1 %exitcond90.not, label %._crit_edge59, label %.lr.ph58, !llvm.loop !17

._crit_edge59:                                    ; preds = %.loopexit43, %.preheader45
  %54 = add nuw nsw i32 %.03760, 64
  %55 = icmp slt i32 %54, %19
  br i1 %55, label %.preheader46, label %.preheader, !llvm.loop !18

.lr.ph58:                                         ; preds = %.lr.ph58.preheader, %.loopexit43
  %indvars.iv86 = phi i64 [ 0, %.lr.ph58.preheader ], [ %indvars.iv.next87, %.loopexit43 ]
  %indvars.iv81 = phi i64 [ 1, %.lr.ph58.preheader ], [ %indvars.iv.next82, %.loopexit43 ]
  %56 = xor i64 %indvars.iv86, -1
  %57 = add nsw i64 %56, %22
  %indvars.iv.next87 = add nuw nsw i64 %indvars.iv86, 1
  %58 = icmp ult i64 %indvars.iv.next87, %21
  br i1 %58, label %.lr.ph56, label %.loopexit43

.lr.ph56:                                         ; preds = %.lr.ph58
  %59 = getelementptr inbounds [3000 x i64], ptr @xs, i64 0, i64 %indvars.iv86
  %60 = load i64, ptr %59, align 8, !tbaa !11
  %61 = mul nuw nsw i64 %indvars.iv86, %22
  %min.iters.check = icmp ult i64 %57, 2
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph56
  %n.vec = and i64 %57, -2
  %ind.end = add i64 %indvars.iv81, %n.vec
  %broadcast.splatinsert = insertelement <2 x i64> poison, i64 %60, i64 0
  %broadcast.splat = shufflevector <2 x i64> %broadcast.splatinsert, <2 x i64> poison, <2 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = add i64 %indvars.iv81, %index
  %62 = getelementptr inbounds [3000 x i64], ptr @xs, i64 0, i64 %offset.idx
  %wide.load = load <2 x i64>, ptr %62, align 8, !tbaa !11
  %63 = and <2 x i64> %wide.load, %broadcast.splat
  %64 = call range(i64 0, 65) <2 x i64> @llvm.ctpop.v2i64(<2 x i64> %63)
  %65 = add nuw nsw i64 %offset.idx, %61
  %66 = getelementptr inbounds [9000000 x i64], ptr @t, i64 0, i64 %65
  %wide.load115 = load <2 x i64>, ptr %66, align 8, !tbaa !11
  %67 = add nsw <2 x i64> %64, %wide.load115
  store <2 x i64> %67, ptr %66, align 8, !tbaa !11
  %index.next = add nuw i64 %index, 2
  %68 = icmp eq i64 %index.next, %n.vec
  br i1 %68, label %middle.block, label %vector.body, !llvm.loop !19

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %57, %n.vec
  br i1 %cmp.n, label %.loopexit43, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph56
  %indvars.iv83.ph = phi i64 [ %indvars.iv81, %.lr.ph56 ], [ %ind.end, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv83 = phi i64 [ %indvars.iv.next84, %scalar.ph ], [ %indvars.iv83.ph, %scalar.ph.preheader ]
  %69 = getelementptr inbounds [3000 x i64], ptr @xs, i64 0, i64 %indvars.iv83
  %70 = load i64, ptr %69, align 8, !tbaa !11
  %71 = and i64 %70, %60
  %72 = call range(i64 0, 65) i64 @llvm.ctpop.i64(i64 %71)
  %73 = add nuw nsw i64 %indvars.iv83, %61
  %74 = getelementptr inbounds [9000000 x i64], ptr @t, i64 0, i64 %73
  %75 = load i64, ptr %74, align 8, !tbaa !11
  %76 = add nsw i64 %72, %75
  store i64 %76, ptr %74, align 8, !tbaa !11
  %indvars.iv.next84 = add nuw nsw i64 %indvars.iv83, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next84, %22
  br i1 %exitcond.not, label %.loopexit43, label %scalar.ph, !llvm.loop !22

..loopexit_crit_edge:                             ; preds = %scalar.ph117, %middle.block116
  %.lcssa = phi i64 [ %96, %middle.block116 ], [ %104, %scalar.ph117 ]
  store i64 %.lcssa, ptr @ans, align 8, !tbaa !11
  br label %.loopexit

.loopexit:                                        ; preds = %..loopexit_crit_edge, %.lr.ph71
  %.lcssa6567 = phi i64 [ %.lcssa, %..loopexit_crit_edge ], [ %.lcssa656869, %.lr.ph71 ]
  %indvars.iv.next92 = add nuw nsw i64 %indvars.iv91, 1
  %exitcond102.not = icmp eq i64 %indvars.iv.next99, %16
  br i1 %exitcond102.not, label %._crit_edge72, label %.lr.ph71, !llvm.loop !23

._crit_edge72:                                    ; preds = %.loopexit, %.preheader.thread, %.preheader
  %77 = phi i64 [ %ans.promoted66, %.preheader ], [ %ans.promoted66104, %.preheader.thread ], [ %.lcssa6567, %.loopexit ]
  %78 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %77)
          to label %105 unwind label %17

.lr.ph71:                                         ; preds = %.lr.ph71.preheader, %.loopexit
  %indvars.iv98 = phi i64 [ 0, %.lr.ph71.preheader ], [ %indvars.iv.next99, %.loopexit ]
  %indvars.iv91 = phi i64 [ 1, %.lr.ph71.preheader ], [ %indvars.iv.next92, %.loopexit ]
  %.lcssa656869 = phi i64 [ %ans.promoted66, %.lr.ph71.preheader ], [ %.lcssa6567, %.loopexit ]
  %79 = xor i64 %indvars.iv98, -1
  %80 = add nsw i64 %79, %16
  %indvars.iv.next99 = add nuw nsw i64 %indvars.iv98, 1
  %81 = icmp ult i64 %indvars.iv.next99, %15
  br i1 %81, label %.lr.ph64, label %.loopexit

.lr.ph64:                                         ; preds = %.lr.ph71
  %82 = mul nuw nsw i64 %indvars.iv98, %16
  %min.iters.check118 = icmp ult i64 %80, 4
  br i1 %min.iters.check118, label %scalar.ph117.preheader, label %vector.ph119

vector.ph119:                                     ; preds = %.lr.ph64
  %n.vec121 = and i64 %80, -4
  %ind.end122 = add i64 %indvars.iv91, %n.vec121
  %83 = insertelement <2 x i64> <i64 poison, i64 0>, i64 %.lcssa656869, i64 0
  br label %vector.body124

vector.body124:                                   ; preds = %vector.body124, %vector.ph119
  %index125 = phi i64 [ 0, %vector.ph119 ], [ %index.next130, %vector.body124 ]
  %vec.phi = phi <2 x i64> [ %83, %vector.ph119 ], [ %93, %vector.body124 ]
  %vec.phi126 = phi <2 x i64> [ zeroinitializer, %vector.ph119 ], [ %94, %vector.body124 ]
  %offset.idx127 = add i64 %indvars.iv91, %index125
  %84 = add nuw nsw i64 %offset.idx127, %82
  %85 = getelementptr inbounds [9000000 x i64], ptr @t, i64 0, i64 %84
  %86 = getelementptr inbounds i8, ptr %85, i64 16
  %wide.load128 = load <2 x i64>, ptr %85, align 8, !tbaa !11
  %wide.load129 = load <2 x i64>, ptr %86, align 8, !tbaa !11
  %87 = add nsw <2 x i64> %wide.load128, <i64 -1, i64 -1>
  %88 = add nsw <2 x i64> %wide.load129, <i64 -1, i64 -1>
  %89 = mul nsw <2 x i64> %87, %wide.load128
  %90 = mul nsw <2 x i64> %88, %wide.load129
  %91 = sdiv <2 x i64> %89, <i64 2, i64 2>
  %92 = sdiv <2 x i64> %90, <i64 2, i64 2>
  %93 = add <2 x i64> %91, %vec.phi
  %94 = add <2 x i64> %92, %vec.phi126
  %index.next130 = add nuw i64 %index125, 4
  %95 = icmp eq i64 %index.next130, %n.vec121
  br i1 %95, label %middle.block116, label %vector.body124, !llvm.loop !24

middle.block116:                                  ; preds = %vector.body124
  %bin.rdx = add <2 x i64> %94, %93
  %96 = call i64 @llvm.vector.reduce.add.v2i64(<2 x i64> %bin.rdx)
  %cmp.n131 = icmp eq i64 %80, %n.vec121
  br i1 %cmp.n131, label %..loopexit_crit_edge, label %scalar.ph117.preheader

scalar.ph117.preheader:                           ; preds = %middle.block116, %.lr.ph64
  %indvars.iv93.ph = phi i64 [ %indvars.iv91, %.lr.ph64 ], [ %ind.end122, %middle.block116 ]
  %.ph = phi i64 [ %.lcssa656869, %.lr.ph64 ], [ %96, %middle.block116 ]
  br label %scalar.ph117

scalar.ph117:                                     ; preds = %scalar.ph117.preheader, %scalar.ph117
  %indvars.iv93 = phi i64 [ %indvars.iv.next94, %scalar.ph117 ], [ %indvars.iv93.ph, %scalar.ph117.preheader ]
  %97 = phi i64 [ %104, %scalar.ph117 ], [ %.ph, %scalar.ph117.preheader ]
  %98 = add nuw nsw i64 %indvars.iv93, %82
  %99 = getelementptr inbounds [9000000 x i64], ptr @t, i64 0, i64 %98
  %100 = load i64, ptr %99, align 8, !tbaa !11
  %101 = add nsw i64 %100, -1
  %102 = mul nsw i64 %101, %100
  %103 = sdiv i64 %102, 2
  %104 = add nsw i64 %103, %97
  %indvars.iv.next94 = add nuw nsw i64 %indvars.iv93, 1
  %exitcond97.not = icmp eq i64 %indvars.iv.next94, %16
  br i1 %exitcond97.not, label %..loopexit_crit_edge, label %scalar.ph117, !llvm.loop !25

105:                                              ; preds = %._crit_edge72
  %106 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %78, i8 noundef signext 10)
          to label %107 unwind label %17

107:                                              ; preds = %105
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  ret i32 0

108:                                              ; preds = %41, %17
  %.pn = phi { ptr, i32 } [ %42, %41 ], [ %18, %17 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  resume { ptr, i32 } %.pn
}

; 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 nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2

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

; 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 nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.ctpop.i64(i64) #4

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x i64> @llvm.ctpop.v2i64(<2 x i64>) #7

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.vector.reduce.add.v2i64(<2 x i64>) #7

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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { 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 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long long", !10, i64 0}
!13 = !{!10, !10, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}
!18 = distinct !{!18, !15}
!19 = distinct !{!19, !15, !20, !21}
!20 = !{!"llvm.loop.isvectorized", i32 1}
!21 = !{!"llvm.loop.unroll.runtime.disable"}
!22 = distinct !{!22, !15, !21, !20}
!23 = distinct !{!23, !15}
!24 = distinct !{!24, !15, !20, !21}
!25 = distinct !{!25, !15, !21, !20}


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