; LLVM IR from VastoLorde95/Competitive-Programming :: Codeforces/72 Beta Division 1/Problem B (B)

; 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" }

@n = external dso_local global i32, align 4
@k = external dso_local global i64, align 8
@tot = external dso_local global i64, align 8
@a = external dso_local global [100100 x i64], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %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
  store i32 0, ptr %1, align 4
  %12 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %13 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %14 = getelementptr i8, ptr %13, i64 -24
  %15 = load i64, ptr %14, align 8
  %16 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %15
  %17 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %16, ptr noundef null)
  %18 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %19 = getelementptr i8, ptr %18, i64 -24
  %20 = load i64, ptr %19, align 8
  %21 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %20
  %22 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %21, ptr noundef null)
  %23 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @n)
  %24 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 8 dereferenceable(8) @k)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  store i32 0, ptr %2, align 4, !tbaa !8
  br label %25

25:                                               ; preds = %41, %0
  %26 = load i32, ptr %2, align 4, !tbaa !8
  %27 = load i32, ptr @n, align 4, !tbaa !8
  %28 = icmp slt i32 %26, %27
  br i1 %28, label %30, label %29

29:                                               ; preds = %25
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  br label %44

30:                                               ; preds = %25
  %31 = load i32, ptr %2, align 4, !tbaa !8
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [100100 x i64], ptr @a, i64 0, i64 %32
  %34 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %33)
  %35 = load i32, ptr %2, align 4, !tbaa !8
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [100100 x i64], ptr @a, i64 0, i64 %36
  %38 = load i64, ptr %37, align 8, !tbaa !11
  %39 = load i64, ptr @tot, align 8, !tbaa !11
  %40 = add nsw i64 %39, %38
  store i64 %40, ptr @tot, align 8, !tbaa !11
  br label %41

41:                                               ; preds = %30
  %42 = load i32, ptr %2, align 4, !tbaa !8
  %43 = add nsw i32 %42, 1
  store i32 %43, ptr %2, align 4, !tbaa !8
  br label %25, !llvm.loop !13

44:                                               ; preds = %29
  %45 = load i64, ptr @tot, align 8, !tbaa !11
  %46 = load i64, ptr @k, align 8, !tbaa !11
  %47 = icmp slt i64 %45, %46
  br i1 %47, label %48, label %50

48:                                               ; preds = %44
  %49 = call i32 @puts(ptr noundef @.str)
  store i32 0, ptr %1, align 4
  br label %188

50:                                               ; preds = %44
  %51 = load i64, ptr @tot, align 8, !tbaa !11
  %52 = load i64, ptr @k, align 8, !tbaa !11
  %53 = icmp eq i64 %51, %52
  br i1 %53, label %54, label %55

54:                                               ; preds = %50
  store i32 0, ptr %1, align 4
  br label %188

55:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #7
  store i64 0, ptr %3, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  store i64 1000000001, ptr %4, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  br label %56

56:                                               ; preds = %90, %55
  %57 = load i64, ptr %3, align 8, !tbaa !11
  %58 = add nsw i64 %57, 1
  %59 = load i64, ptr %4, align 8, !tbaa !11
  %60 = icmp slt i64 %58, %59
  br i1 %60, label %61, label %91

61:                                               ; preds = %56
  %62 = load i64, ptr %3, align 8, !tbaa !11
  %63 = load i64, ptr %4, align 8, !tbaa !11
  %64 = add nsw i64 %62, %63
  %65 = sdiv i64 %64, 2
  store i64 %65, ptr %5, align 8, !tbaa !11
  store i64 0, ptr @tot, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  store i32 0, ptr %6, align 4, !tbaa !8
  br label %66

66:                                               ; preds = %79, %61
  %67 = load i32, ptr %6, align 4, !tbaa !8
  %68 = load i32, ptr @n, align 4, !tbaa !8
  %69 = icmp slt i32 %67, %68
  br i1 %69, label %71, label %70

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

71:                                               ; preds = %66
  %72 = load i32, ptr %6, align 4, !tbaa !8
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [100100 x i64], ptr @a, i64 0, i64 %73
  %75 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %74)
  %76 = load i64, ptr %75, align 8, !tbaa !11
  %77 = load i64, ptr @tot, align 8, !tbaa !11
  %78 = add nsw i64 %77, %76
  store i64 %78, ptr @tot, align 8, !tbaa !11
  br label %79

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

82:                                               ; preds = %70
  %83 = load i64, ptr @tot, align 8, !tbaa !11
  %84 = load i64, ptr @k, align 8, !tbaa !11
  %85 = icmp sgt i64 %83, %84
  br i1 %85, label %86, label %88

86:                                               ; preds = %82
  %87 = load i64, ptr %5, align 8, !tbaa !11
  store i64 %87, ptr %4, align 8, !tbaa !11
  br label %90

88:                                               ; preds = %82
  %89 = load i64, ptr %5, align 8, !tbaa !11
  store i64 %89, ptr %3, align 8, !tbaa !11
  br label %90

90:                                               ; preds = %88, %86
  br label %56, !llvm.loop !16

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

92:                                               ; preds = %111, %91
  %93 = load i32, ptr %7, align 4, !tbaa !8
  %94 = load i32, ptr @n, align 4, !tbaa !8
  %95 = icmp slt i32 %93, %94
  br i1 %95, label %97, label %96

96:                                               ; preds = %92
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  br label %114

97:                                               ; preds = %92
  %98 = load i32, ptr %7, align 4, !tbaa !8
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [100100 x i64], ptr @a, i64 0, i64 %99
  %101 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %100, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %102 = load i64, ptr %101, align 8, !tbaa !11
  %103 = load i64, ptr @k, align 8, !tbaa !11
  %104 = sub nsw i64 %103, %102
  store i64 %104, ptr @k, align 8, !tbaa !11
  %105 = load i64, ptr %3, align 8, !tbaa !11
  %106 = load i32, ptr %7, align 4, !tbaa !8
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [100100 x i64], ptr @a, i64 0, i64 %107
  %109 = load i64, ptr %108, align 8, !tbaa !11
  %110 = sub nsw i64 %109, %105
  store i64 %110, ptr %108, align 8, !tbaa !11
  br label %111

111:                                              ; preds = %97
  %112 = load i32, ptr %7, align 4, !tbaa !8
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr %7, align 4, !tbaa !8
  br label %92, !llvm.loop !17

114:                                              ; preds = %96
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 -1, ptr %8, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store i32 0, ptr %9, align 4, !tbaa !8
  br label %115

115:                                              ; preds = %139, %114
  %116 = load i32, ptr %9, align 4, !tbaa !8
  %117 = load i32, ptr @n, align 4, !tbaa !8
  %118 = icmp slt i32 %116, %117
  br i1 %118, label %120, label %119

119:                                              ; preds = %115
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %142

120:                                              ; preds = %115
  %121 = load i32, ptr %9, align 4, !tbaa !8
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds [100100 x i64], ptr @a, i64 0, i64 %122
  %124 = load i64, ptr %123, align 8, !tbaa !11
  %125 = icmp sgt i64 %124, 0
  br i1 %125, label %126, label %138

126:                                              ; preds = %120
  %127 = load i64, ptr @k, align 8, !tbaa !11
  %128 = icmp sgt i64 %127, 0
  br i1 %128, label %129, label %138

129:                                              ; preds = %126
  %130 = load i32, ptr %9, align 4, !tbaa !8
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds [100100 x i64], ptr @a, i64 0, i64 %131
  %133 = load i64, ptr %132, align 8, !tbaa !11
  %134 = add nsw i64 %133, -1
  store i64 %134, ptr %132, align 8, !tbaa !11
  %135 = load i64, ptr @k, align 8, !tbaa !11
  %136 = add nsw i64 %135, -1
  store i64 %136, ptr @k, align 8, !tbaa !11
  %137 = load i32, ptr %9, align 4, !tbaa !8
  store i32 %137, ptr %8, align 4, !tbaa !8
  br label %138

138:                                              ; preds = %129, %126, %120
  br label %139

139:                                              ; preds = %138
  %140 = load i32, ptr %9, align 4, !tbaa !8
  %141 = add nsw i32 %140, 1
  store i32 %141, ptr %9, align 4, !tbaa !8
  br label %115, !llvm.loop !18

142:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %143 = load i32, ptr %8, align 4, !tbaa !8
  %144 = add nsw i32 %143, 1
  store i32 %144, ptr %10, align 4, !tbaa !8
  br label %145

145:                                              ; preds = %162, %142
  %146 = load i32, ptr %10, align 4, !tbaa !8
  %147 = load i32, ptr @n, align 4, !tbaa !8
  %148 = icmp slt i32 %146, %147
  br i1 %148, label %150, label %149

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

150:                                              ; preds = %145
  %151 = load i32, ptr %10, align 4, !tbaa !8
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds [100100 x i64], ptr @a, i64 0, i64 %152
  %154 = load i64, ptr %153, align 8, !tbaa !11
  %155 = icmp sgt i64 %154, 0
  br i1 %155, label %156, label %161

156:                                              ; preds = %150
  %157 = load i32, ptr %10, align 4, !tbaa !8
  %158 = add nsw i32 %157, 1
  %159 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %158)
  %160 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %159, ptr noundef @.str.1)
  br label %161

161:                                              ; preds = %156, %150
  br label %162

162:                                              ; preds = %161
  %163 = load i32, ptr %10, align 4, !tbaa !8
  %164 = add nsw i32 %163, 1
  store i32 %164, ptr %10, align 4, !tbaa !8
  br label %145, !llvm.loop !19

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

166:                                              ; preds = %183, %165
  %167 = load i32, ptr %11, align 4, !tbaa !8
  %168 = load i32, ptr %8, align 4, !tbaa !8
  %169 = icmp sle i32 %167, %168
  br i1 %169, label %171, label %170

170:                                              ; preds = %166
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %186

171:                                              ; preds = %166
  %172 = load i32, ptr %11, align 4, !tbaa !8
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds [100100 x i64], ptr @a, i64 0, i64 %173
  %175 = load i64, ptr %174, align 8, !tbaa !11
  %176 = icmp sgt i64 %175, 0
  br i1 %176, label %177, label %182

177:                                              ; preds = %171
  %178 = load i32, ptr %11, align 4, !tbaa !8
  %179 = add nsw i32 %178, 1
  %180 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %179)
  %181 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %180, ptr noundef @.str.1)
  br label %182

182:                                              ; preds = %177, %171
  br label %183

183:                                              ; preds = %182
  %184 = load i32, ptr %11, align 4, !tbaa !8
  %185 = add nsw i32 %184, 1
  store i32 %185, ptr %11, align 4, !tbaa !8
  br label %166, !llvm.loop !20

186:                                              ; preds = %170
  %187 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  br label %188

188:                                              ; preds = %186, %54, %48
  %189 = load i32, ptr %1, align 4
  ret i32 %189
}

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef) #2 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)) #1

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

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

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

declare i32 @puts(ptr noundef) #1

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #1

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

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

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

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


; 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" }

@n = external dso_local global i32, align 4
@k = external dso_local global i64, align 8
@tot = external dso_local local_unnamed_addr global i64, align 8
@a = external dso_local global [100100 x i64], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1

; 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 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %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 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %10 = getelementptr i8, ptr %9, i64 -24
  %11 = load i64, ptr %10, align 8
  %12 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %11
  %13 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %12, ptr noundef null)
  %14 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @n)
  %15 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(8) @k)
  %16 = load i32, ptr @n, align 4, !tbaa !8
  %17 = icmp sgt i32 %16, 0
  br i1 %17, label %.lr.ph, label %.._crit_edge_crit_edge

.._crit_edge_crit_edge:                           ; preds = %0
  %.pre = load i64, ptr @tot, align 8, !tbaa !11
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %.._crit_edge_crit_edge
  %18 = phi i32 [ %16, %.._crit_edge_crit_edge ], [ %27, %.lr.ph ]
  %19 = phi i64 [ %.pre, %.._crit_edge_crit_edge ], [ %26, %.lr.ph ]
  %20 = load i64, ptr @k, align 8
  %21 = icmp slt i64 %19, %20
  br i1 %21, label %30, label %32

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %0 ]
  %22 = getelementptr inbounds [100100 x i64], ptr @a, i64 0, i64 %indvars.iv
  %23 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %22)
  %24 = load i64, ptr %22, align 8, !tbaa !11
  %25 = load i64, ptr @tot, align 8, !tbaa !11
  %26 = add nsw i64 %25, %24
  store i64 %26, ptr @tot, align 8, !tbaa !11
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %27 = load i32, ptr @n, align 4, !tbaa !8
  %28 = sext i32 %27 to i64
  %29 = icmp slt i64 %indvars.iv.next, %28
  br i1 %29, label %.lr.ph, label %._crit_edge, !llvm.loop !13

30:                                               ; preds = %._crit_edge
  %31 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str)
  br label %126

32:                                               ; preds = %._crit_edge
  %33 = icmp eq i64 %19, %20
  br i1 %33, label %126, label %.lr.ph52.preheader

.lr.ph52.preheader:                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #8
  store i64 0, ptr %1, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #8
  br label %.lr.ph52

.preheader44:                                     ; preds = %55
  %34 = icmp sgt i32 %43, 0
  br i1 %34, label %.lr.ph54, label %.preheader42

.lr.ph52:                                         ; preds = %.lr.ph52.preheader, %55
  %35 = phi i64 [ %56, %55 ], [ 0, %.lr.ph52.preheader ]
  %36 = phi i64 [ %41, %55 ], [ %20, %.lr.ph52.preheader ]
  %37 = phi i32 [ %43, %55 ], [ %18, %.lr.ph52.preheader ]
  %.03550 = phi i64 [ %.136, %55 ], [ 1000000001, %.lr.ph52.preheader ]
  %38 = add nsw i64 %35, %.03550
  %39 = sdiv i64 %38, 2
  store i64 %39, ptr %2, align 8, !tbaa !11
  store i64 0, ptr @tot, align 8, !tbaa !11
  %40 = icmp sgt i32 %37, 0
  br i1 %40, label %.lr.ph48, label %._crit_edge49

._crit_edge49.loopexit:                           ; preds = %.lr.ph48
  %.pre86 = load i64, ptr @k, align 8
  br label %._crit_edge49

._crit_edge49:                                    ; preds = %._crit_edge49.loopexit, %.lr.ph52
  %41 = phi i64 [ %.pre86, %._crit_edge49.loopexit ], [ %36, %.lr.ph52 ]
  %42 = phi i64 [ %50, %._crit_edge49.loopexit ], [ 0, %.lr.ph52 ]
  %43 = phi i32 [ %51, %._crit_edge49.loopexit ], [ %37, %.lr.ph52 ]
  %44 = icmp sgt i64 %42, %41
  %45 = load i64, ptr %2, align 8, !tbaa !11
  br i1 %44, label %55, label %54

.lr.ph48:                                         ; preds = %.lr.ph52, %.lr.ph48
  %indvars.iv69 = phi i64 [ %indvars.iv.next70, %.lr.ph48 ], [ 0, %.lr.ph52 ]
  %46 = getelementptr inbounds [100100 x i64], ptr @a, i64 0, i64 %indvars.iv69
  %47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %46)
  %48 = load i64, ptr %47, align 8, !tbaa !11
  %49 = load i64, ptr @tot, align 8, !tbaa !11
  %50 = add nsw i64 %49, %48
  store i64 %50, ptr @tot, align 8, !tbaa !11
  %indvars.iv.next70 = add nuw nsw i64 %indvars.iv69, 1
  %51 = load i32, ptr @n, align 4, !tbaa !8
  %52 = sext i32 %51 to i64
  %53 = icmp slt i64 %indvars.iv.next70, %52
  br i1 %53, label %.lr.ph48, label %._crit_edge49.loopexit, !llvm.loop !15

54:                                               ; preds = %._crit_edge49
  store i64 %45, ptr %1, align 8, !tbaa !11
  br label %55

55:                                               ; preds = %._crit_edge49, %54
  %56 = phi i64 [ %45, %54 ], [ %35, %._crit_edge49 ]
  %.136 = phi i64 [ %.03550, %54 ], [ %45, %._crit_edge49 ]
  %57 = add nsw i64 %56, 1
  %58 = icmp slt i64 %57, %.136
  br i1 %58, label %.lr.ph52, label %.preheader44, !llvm.loop !16

.preheader43:                                     ; preds = %.lr.ph54
  %59 = icmp sgt i32 %69, 0
  br i1 %59, label %.lr.ph57.preheader, label %.preheader42

.lr.ph57.preheader:                               ; preds = %.preheader43
  %wide.trip.count = zext nneg i32 %69 to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %60 = icmp eq i32 %69, 1
  br i1 %60, label %.preheader42.loopexit.unr-lcssa, label %.lr.ph57.preheader.new

.lr.ph57.preheader.new:                           ; preds = %.lr.ph57.preheader
  %unroll_iter = and i64 %wide.trip.count, 2147483646
  br label %.lr.ph57

.lr.ph54:                                         ; preds = %.preheader44, %.lr.ph54
  %indvars.iv72 = phi i64 [ %indvars.iv.next73, %.lr.ph54 ], [ 0, %.preheader44 ]
  %61 = getelementptr inbounds [100100 x i64], ptr @a, i64 0, i64 %indvars.iv72
  %62 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %61, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %63 = load i64, ptr %62, align 8, !tbaa !11
  %64 = load i64, ptr @k, align 8, !tbaa !11
  %65 = sub nsw i64 %64, %63
  store i64 %65, ptr @k, align 8, !tbaa !11
  %66 = load i64, ptr %1, align 8, !tbaa !11
  %67 = load i64, ptr %61, align 8, !tbaa !11
  %68 = sub nsw i64 %67, %66
  store i64 %68, ptr %61, align 8, !tbaa !11
  %indvars.iv.next73 = add nuw nsw i64 %indvars.iv72, 1
  %69 = load i32, ptr @n, align 4, !tbaa !8
  %70 = sext i32 %69 to i64
  %71 = icmp slt i64 %indvars.iv.next73, %70
  br i1 %71, label %.lr.ph54, label %.preheader43, !llvm.loop !17

.preheader42.loopexit.unr-lcssa:                  ; preds = %102, %.lr.ph57.preheader
  %.1.lcssa.ph = phi i32 [ poison, %.lr.ph57.preheader ], [ %.1.1, %102 ]
  %indvars.iv75.unr = phi i64 [ 0, %.lr.ph57.preheader ], [ %indvars.iv.next76.1, %102 ]
  %.03255.unr = phi i32 [ -1, %.lr.ph57.preheader ], [ %.1.1, %102 ]
  %.unr = phi i64 [ %65, %.lr.ph57.preheader ], [ %103, %102 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader42, label %.lr.ph57.epil

.lr.ph57.epil:                                    ; preds = %.preheader42.loopexit.unr-lcssa
  %72 = getelementptr inbounds [100100 x i64], ptr @a, i64 0, i64 %indvars.iv75.unr
  %73 = load i64, ptr %72, align 8, !tbaa !11
  %74 = icmp sgt i64 %73, 0
  %75 = icmp sgt i64 %.unr, 0
  %or.cond.epil = select i1 %74, i1 %75, i1 false
  br i1 %or.cond.epil, label %76, label %.preheader42

76:                                               ; preds = %.lr.ph57.epil
  %77 = add nsw i64 %73, -1
  store i64 %77, ptr %72, align 8, !tbaa !11
  %78 = add nsw i64 %.unr, -1
  store i64 %78, ptr @k, align 8, !tbaa !11
  %79 = trunc nuw nsw i64 %indvars.iv75.unr to i32
  br label %.preheader42

.preheader42:                                     ; preds = %.preheader42.loopexit.unr-lcssa, %76, %.lr.ph57.epil, %.preheader44, %.preheader43
  %80 = phi i32 [ %69, %.preheader43 ], [ %43, %.preheader44 ], [ %69, %.lr.ph57.epil ], [ %69, %76 ], [ %69, %.preheader42.loopexit.unr-lcssa ]
  %.032.lcssa = phi i32 [ -1, %.preheader43 ], [ -1, %.preheader44 ], [ %.1.lcssa.ph, %.preheader42.loopexit.unr-lcssa ], [ %79, %76 ], [ %.03255.unr, %.lr.ph57.epil ]
  %.03059 = add nsw i32 %.032.lcssa, 1
  %81 = icmp slt i32 %.03059, %80
  br i1 %81, label %.lr.ph62.preheader, label %.preheader

.lr.ph62.preheader:                               ; preds = %.preheader42
  %82 = sext i32 %.032.lcssa to i64
  %83 = add nsw i64 %82, 1
  br label %.lr.ph62

.lr.ph57:                                         ; preds = %102, %.lr.ph57.preheader.new
  %indvars.iv75 = phi i64 [ 0, %.lr.ph57.preheader.new ], [ %indvars.iv.next76.1, %102 ]
  %.03255 = phi i32 [ -1, %.lr.ph57.preheader.new ], [ %.1.1, %102 ]
  %84 = phi i64 [ %65, %.lr.ph57.preheader.new ], [ %103, %102 ]
  %niter = phi i64 [ 0, %.lr.ph57.preheader.new ], [ %niter.next.1, %102 ]
  %85 = getelementptr inbounds [100100 x i64], ptr @a, i64 0, i64 %indvars.iv75
  %86 = load i64, ptr %85, align 16, !tbaa !11
  %87 = icmp sgt i64 %86, 0
  %88 = icmp sgt i64 %84, 0
  %or.cond = select i1 %87, i1 %88, i1 false
  br i1 %or.cond, label %89, label %.lr.ph57.1

89:                                               ; preds = %.lr.ph57
  %90 = add nsw i64 %86, -1
  store i64 %90, ptr %85, align 16, !tbaa !11
  %91 = add nsw i64 %84, -1
  store i64 %91, ptr @k, align 8, !tbaa !11
  %92 = trunc nuw nsw i64 %indvars.iv75 to i32
  br label %.lr.ph57.1

.lr.ph57.1:                                       ; preds = %.lr.ph57, %89
  %93 = phi i64 [ %91, %89 ], [ %84, %.lr.ph57 ]
  %.1 = phi i32 [ %92, %89 ], [ %.03255, %.lr.ph57 ]
  %indvars.iv.next76 = or disjoint i64 %indvars.iv75, 1
  %94 = getelementptr inbounds [100100 x i64], ptr @a, i64 0, i64 %indvars.iv.next76
  %95 = load i64, ptr %94, align 8, !tbaa !11
  %96 = icmp sgt i64 %95, 0
  %97 = icmp sgt i64 %93, 0
  %or.cond.1 = select i1 %96, i1 %97, i1 false
  br i1 %or.cond.1, label %98, label %102

98:                                               ; preds = %.lr.ph57.1
  %99 = add nsw i64 %95, -1
  store i64 %99, ptr %94, align 8, !tbaa !11
  %100 = add nsw i64 %93, -1
  store i64 %100, ptr @k, align 8, !tbaa !11
  %101 = trunc nuw nsw i64 %indvars.iv.next76 to i32
  br label %102

102:                                              ; preds = %98, %.lr.ph57.1
  %103 = phi i64 [ %100, %98 ], [ %93, %.lr.ph57.1 ]
  %.1.1 = phi i32 [ %101, %98 ], [ %.1, %.lr.ph57.1 ]
  %indvars.iv.next76.1 = add nuw nsw i64 %indvars.iv75, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.preheader42.loopexit.unr-lcssa, label %.lr.ph57, !llvm.loop !18

.preheader:                                       ; preds = %112, %.preheader42
  %.not63 = icmp slt i32 %.032.lcssa, 0
  br i1 %.not63, label %._crit_edge66, label %.lr.ph65.preheader

.lr.ph65.preheader:                               ; preds = %.preheader
  %wide.trip.count84 = zext nneg i32 %.03059 to i64
  br label %.lr.ph65

.lr.ph62:                                         ; preds = %.lr.ph62.preheader, %112
  %104 = phi i32 [ %80, %.lr.ph62.preheader ], [ %113, %112 ]
  %indvars.iv78 = phi i64 [ %83, %.lr.ph62.preheader ], [ %indvars.iv.next79, %112 ]
  %.030.in60 = phi i32 [ %.032.lcssa, %.lr.ph62.preheader ], [ %116, %112 ]
  %105 = getelementptr inbounds [100100 x i64], ptr @a, i64 0, i64 %indvars.iv78
  %106 = load i64, ptr %105, align 8, !tbaa !11
  %107 = icmp sgt i64 %106, 0
  br i1 %107, label %108, label %112

108:                                              ; preds = %.lr.ph62
  %109 = add nsw i32 %.030.in60, 2
  %110 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %109)
  %111 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %110, ptr noundef nonnull @.str.1)
  %.pre89 = load i32, ptr @n, align 4, !tbaa !8
  br label %112

112:                                              ; preds = %.lr.ph62, %108
  %113 = phi i32 [ %104, %.lr.ph62 ], [ %.pre89, %108 ]
  %indvars.iv.next79 = add nsw i64 %indvars.iv78, 1
  %114 = sext i32 %113 to i64
  %115 = icmp slt i64 %indvars.iv.next79, %114
  %116 = trunc nsw i64 %indvars.iv78 to i32
  br i1 %115, label %.lr.ph62, label %.preheader, !llvm.loop !19

._crit_edge66:                                    ; preds = %.lr.ph65._crit_edge, %.preheader
  %117 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #8
  br label %126

.lr.ph65:                                         ; preds = %.lr.ph65.preheader, %.lr.ph65._crit_edge
  %indvars.iv81 = phi i64 [ 0, %.lr.ph65.preheader ], [ %121, %.lr.ph65._crit_edge ]
  %118 = getelementptr inbounds [100100 x i64], ptr @a, i64 0, i64 %indvars.iv81
  %119 = load i64, ptr %118, align 8, !tbaa !11
  %120 = icmp sgt i64 %119, 0
  %121 = add nuw nsw i64 %indvars.iv81, 1
  br i1 %120, label %122, label %.lr.ph65._crit_edge

122:                                              ; preds = %.lr.ph65
  %123 = trunc nuw i64 %121 to i32
  %124 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %123)
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %124, ptr noundef nonnull @.str.1)
  br label %.lr.ph65._crit_edge

.lr.ph65._crit_edge:                              ; preds = %.lr.ph65, %122
  %exitcond85.not = icmp eq i64 %121, %wide.trip.count84
  br i1 %exitcond85.not, label %._crit_edge66, label %.lr.ph65, !llvm.loop !20

126:                                              ; preds = %32, %._crit_edge66, %30
  ret i32 0
}

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef) local_unnamed_addr #2 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 #1

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #7

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #1

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #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 = { "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 = { 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 #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #6 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 #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 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}


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