; LLVM IR from VastoLorde95/Competitive-Programming :: Codeforces/320 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 i64, align 8
@k = external dso_local global i64, align 8
@x = external dso_local global i64, align 8
@a = external dso_local global [200100 x i64], align 16
@l = external dso_local global [200100 x i64], align 16
@r = external dso_local global [200100 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 [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 i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i64, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i32, align 4
  %12 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  %13 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %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 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %20 = getelementptr i8, ptr %19, i64 -24
  %21 = load i64, ptr %20, align 8
  %22 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %21
  %23 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %22, ptr noundef null)
  %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) @n)
  %25 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 8 dereferenceable(8) @k)
  %26 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 8 dereferenceable(8) @x)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  store i32 1, ptr %2, align 4, !tbaa !8
  br label %27

27:                                               ; preds = %38, %0
  %28 = load i32, ptr %2, align 4, !tbaa !8
  %29 = sext i32 %28 to i64
  %30 = load i64, ptr @n, align 8, !tbaa !11
  %31 = icmp sle i64 %29, %30
  br i1 %31, label %33, label %32

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

33:                                               ; preds = %27
  %34 = load i32, ptr %2, align 4, !tbaa !8
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [200100 x i64], ptr @a, i64 0, i64 %35
  %37 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %36)
  br label %38

38:                                               ; preds = %33
  %39 = load i32, ptr %2, align 4, !tbaa !8
  %40 = add nsw i32 %39, 1
  store i32 %40, ptr %2, align 4, !tbaa !8
  br label %27, !llvm.loop !13

41:                                               ; preds = %32
  %42 = load i64, ptr getelementptr inbounds ([200100 x i64], ptr @a, i64 0, i64 1), align 8, !tbaa !11
  store i64 %42, ptr getelementptr inbounds ([200100 x i64], ptr @l, i64 0, i64 1), align 8, !tbaa !11
  %43 = load i64, ptr @n, align 8, !tbaa !11
  %44 = getelementptr inbounds [200100 x i64], ptr @a, i64 0, i64 %43
  %45 = load i64, ptr %44, align 8, !tbaa !11
  %46 = load i64, ptr @n, align 8, !tbaa !11
  %47 = getelementptr inbounds [200100 x i64], ptr @r, i64 0, i64 %46
  store i64 %45, ptr %47, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  store i32 2, ptr %3, align 4, !tbaa !8
  br label %48

48:                                               ; preds = %68, %41
  %49 = load i32, ptr %3, align 4, !tbaa !8
  %50 = sext i32 %49 to i64
  %51 = load i64, ptr @n, align 8, !tbaa !11
  %52 = icmp sle i64 %50, %51
  br i1 %52, label %54, label %53

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

54:                                               ; preds = %48
  %55 = load i32, ptr %3, align 4, !tbaa !8
  %56 = sub nsw i32 %55, 1
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [200100 x i64], ptr @l, i64 0, i64 %57
  %59 = load i64, ptr %58, align 8, !tbaa !11
  %60 = load i32, ptr %3, align 4, !tbaa !8
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [200100 x i64], ptr @a, i64 0, i64 %61
  %63 = load i64, ptr %62, align 8, !tbaa !11
  %64 = or i64 %59, %63
  %65 = load i32, ptr %3, align 4, !tbaa !8
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [200100 x i64], ptr @l, i64 0, i64 %66
  store i64 %64, ptr %67, align 8, !tbaa !11
  br label %68

68:                                               ; preds = %54
  %69 = load i32, ptr %3, align 4, !tbaa !8
  %70 = add nsw i32 %69, 1
  store i32 %70, ptr %3, align 4, !tbaa !8
  br label %48, !llvm.loop !15

71:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  %72 = load i64, ptr @n, align 8, !tbaa !11
  %73 = sub nsw i64 %72, 1
  %74 = trunc i64 %73 to i32
  store i32 %74, ptr %4, align 4, !tbaa !8
  br label %75

75:                                               ; preds = %93, %71
  %76 = load i32, ptr %4, align 4, !tbaa !8
  %77 = icmp sge i32 %76, 1
  br i1 %77, label %79, label %78

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

79:                                               ; preds = %75
  %80 = load i32, ptr %4, align 4, !tbaa !8
  %81 = add nsw i32 %80, 1
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [200100 x i64], ptr @r, i64 0, i64 %82
  %84 = load i64, ptr %83, align 8, !tbaa !11
  %85 = load i32, ptr %4, align 4, !tbaa !8
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [200100 x i64], ptr @a, i64 0, i64 %86
  %88 = load i64, ptr %87, align 8, !tbaa !11
  %89 = or i64 %84, %88
  %90 = load i32, ptr %4, align 4, !tbaa !8
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [200100 x i64], ptr @r, i64 0, i64 %91
  store i64 %89, ptr %92, align 8, !tbaa !11
  br label %93

93:                                               ; preds = %79
  %94 = load i32, ptr %4, align 4, !tbaa !8
  %95 = add nsw i32 %94, -1
  store i32 %95, ptr %4, align 4, !tbaa !8
  br label %75, !llvm.loop !16

96:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  store i64 1, ptr %5, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  store i32 1, ptr %6, align 4, !tbaa !8
  br label %97

97:                                               ; preds = %107, %96
  %98 = load i32, ptr %6, align 4, !tbaa !8
  %99 = sext i32 %98 to i64
  %100 = load i64, ptr @k, align 8, !tbaa !11
  %101 = icmp sle i64 %99, %100
  br i1 %101, label %103, label %102

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

103:                                              ; preds = %97
  %104 = load i64, ptr @x, align 8, !tbaa !11
  %105 = load i64, ptr %5, align 8, !tbaa !11
  %106 = mul nsw i64 %105, %104
  store i64 %106, ptr %5, align 8, !tbaa !11
  br label %107

107:                                              ; preds = %103
  %108 = load i32, ptr %6, align 4, !tbaa !8
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %6, align 4, !tbaa !8
  br label %97, !llvm.loop !17

110:                                              ; preds = %102
  %111 = load i64, ptr @n, align 8, !tbaa !11
  %112 = icmp eq i64 %111, 1
  br i1 %112, label %113, label %119

113:                                              ; preds = %110
  %114 = load i64, ptr getelementptr inbounds ([200100 x i64], ptr @a, i64 0, i64 1), align 8, !tbaa !11
  %115 = load i64, ptr %5, align 8, !tbaa !11
  %116 = mul nsw i64 %114, %115
  %117 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %116)
  %118 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %117, ptr noundef @.str)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %7, align 4
  br label %171

119:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %120 = load i64, ptr getelementptr inbounds ([200100 x i64], ptr @a, i64 0, i64 1), align 8, !tbaa !11
  %121 = load i64, ptr %5, align 8, !tbaa !11
  %122 = mul nsw i64 %120, %121
  %123 = load i64, ptr getelementptr inbounds ([200100 x i64], ptr @r, i64 0, i64 2), align 16, !tbaa !11
  %124 = or i64 %122, %123
  store i64 %124, ptr %9, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %125 = load i64, ptr @n, align 8, !tbaa !11
  %126 = getelementptr inbounds [200100 x i64], ptr @a, i64 0, i64 %125
  %127 = load i64, ptr %126, align 8, !tbaa !11
  %128 = load i64, ptr %5, align 8, !tbaa !11
  %129 = mul nsw i64 %127, %128
  %130 = load i64, ptr @n, align 8, !tbaa !11
  %131 = sub nsw i64 %130, 1
  %132 = getelementptr inbounds [200100 x i64], ptr @l, i64 0, i64 %131
  %133 = load i64, ptr %132, align 8, !tbaa !11
  %134 = or i64 %129, %133
  store i64 %134, ptr %10, align 8, !tbaa !11
  %135 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10)
  %136 = load i64, ptr %135, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  store i64 %136, ptr %8, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 2, ptr %11, align 4, !tbaa !8
  br label %137

137:                                              ; preds = %164, %119
  %138 = load i32, ptr %11, align 4, !tbaa !8
  %139 = sext i32 %138 to i64
  %140 = load i64, ptr @n, align 8, !tbaa !11
  %141 = icmp slt i64 %139, %140
  br i1 %141, label %143, label %142

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

143:                                              ; preds = %137
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %144 = load i64, ptr %5, align 8, !tbaa !11
  %145 = load i32, ptr %11, align 4, !tbaa !8
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [200100 x i64], ptr @a, i64 0, i64 %146
  %148 = load i64, ptr %147, align 8, !tbaa !11
  %149 = mul nsw i64 %144, %148
  %150 = load i32, ptr %11, align 4, !tbaa !8
  %151 = sub nsw i32 %150, 1
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds [200100 x i64], ptr @l, i64 0, i64 %152
  %154 = load i64, ptr %153, align 8, !tbaa !11
  %155 = or i64 %149, %154
  %156 = load i32, ptr %11, align 4, !tbaa !8
  %157 = add nsw i32 %156, 1
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [200100 x i64], ptr @r, i64 0, i64 %158
  %160 = load i64, ptr %159, align 8, !tbaa !11
  %161 = or i64 %155, %160
  store i64 %161, ptr %12, align 8, !tbaa !11
  %162 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %12)
  %163 = load i64, ptr %162, align 8, !tbaa !11
  store i64 %163, ptr %8, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %164

164:                                              ; preds = %143
  %165 = load i32, ptr %11, align 4, !tbaa !8
  %166 = add nsw i32 %165, 1
  store i32 %166, ptr %11, align 4, !tbaa !8
  br label %137, !llvm.loop !18

167:                                              ; preds = %142
  %168 = load i64, ptr %8, align 8, !tbaa !11
  %169 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %168)
  %170 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %169, ptr noundef @.str)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  br label %171

171:                                              ; preds = %167, %113
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  %172 = load i32, ptr %1, align 4
  ret i32 %172
}

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

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

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

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

; Function Attrs: 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) #5

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #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 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 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 = { 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}


; 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 i64, align 8
@k = external dso_local global i64, align 8
@x = external dso_local global i64, align 8
@a = external dso_local global [200100 x i64], align 16
@l = external dso_local local_unnamed_addr global [200100 x i64], align 16
@r = external dso_local local_unnamed_addr global [200100 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 [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 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %6 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %7 = getelementptr i8, ptr %6, i64 -24
  %8 = load i64, ptr %7, align 8
  %9 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %8
  %10 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %9, ptr noundef null)
  %11 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %12 = getelementptr i8, ptr %11, i64 -24
  %13 = load i64, ptr %12, align 8
  %14 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %13
  %15 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %14, ptr noundef null)
  %16 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @n)
  %17 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(8) @k)
  %18 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 8 dereferenceable(8) @x)
  %19 = load i64, ptr @n, align 8, !tbaa !8
  %.not38 = icmp slt i64 %19, 1
  br i1 %.not38, label %._crit_edge.thread, label %.lr.ph

._crit_edge.thread:                               ; preds = %0
  %20 = load i64, ptr getelementptr inbounds (i8, ptr @a, i64 8), align 8, !tbaa !8
  store i64 %20, ptr getelementptr inbounds (i8, ptr @l, i64 8), align 8, !tbaa !8
  %21 = getelementptr inbounds [200100 x i64], ptr @a, i64 0, i64 %19
  %22 = load i64, ptr %21, align 8, !tbaa !8
  %23 = getelementptr inbounds [200100 x i64], ptr @r, i64 0, i64 %19
  store i64 %22, ptr %23, align 8, !tbaa !8
  br label %._crit_edge44

._crit_edge:                                      ; preds = %.lr.ph
  %24 = load i64, ptr getelementptr inbounds (i8, ptr @a, i64 8), align 8, !tbaa !8
  store i64 %24, ptr getelementptr inbounds (i8, ptr @l, i64 8), align 8, !tbaa !8
  %25 = getelementptr inbounds [200100 x i64], ptr @a, i64 0, i64 %33
  %26 = load i64, ptr %25, align 8, !tbaa !8
  %27 = getelementptr inbounds [200100 x i64], ptr @r, i64 0, i64 %33
  store i64 %26, ptr %27, align 8, !tbaa !8
  %.not3640 = icmp slt i64 %33, 2
  br i1 %.not3640, label %._crit_edge44, label %.lr.ph43.preheader

.lr.ph43.preheader:                               ; preds = %._crit_edge
  %28 = add nsw i64 %33, -1
  %29 = add nsw i64 %33, -2
  %xtraiter = and i64 %28, 3
  %30 = icmp ult i64 %29, 3
  br i1 %30, label %._crit_edge44.loopexit.unr-lcssa, label %.lr.ph43.preheader.new

.lr.ph43.preheader.new:                           ; preds = %.lr.ph43.preheader
  %unroll_iter = and i64 %28, -4
  br label %.lr.ph43

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %0 ]
  %31 = getelementptr inbounds [200100 x i64], ptr @a, i64 0, i64 %indvars.iv
  %32 = 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) %31)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %33 = load i64, ptr @n, align 8, !tbaa !8
  %.not.not = icmp sgt i64 %33, %indvars.iv
  br i1 %.not.not, label %.lr.ph, label %._crit_edge, !llvm.loop !11

._crit_edge44.loopexit.unr-lcssa:                 ; preds = %.lr.ph43, %.lr.ph43.preheader
  %.unr = phi i64 [ %24, %.lr.ph43.preheader ], [ %83, %.lr.ph43 ]
  %indvars.iv63.unr = phi i64 [ 2, %.lr.ph43.preheader ], [ %indvars.iv.next64.3, %.lr.ph43 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge44, label %.lr.ph43.epil

.lr.ph43.epil:                                    ; preds = %._crit_edge44.loopexit.unr-lcssa, %.lr.ph43.epil
  %34 = phi i64 [ %37, %.lr.ph43.epil ], [ %.unr, %._crit_edge44.loopexit.unr-lcssa ]
  %indvars.iv63.epil = phi i64 [ %indvars.iv.next64.epil, %.lr.ph43.epil ], [ %indvars.iv63.unr, %._crit_edge44.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph43.epil ], [ 0, %._crit_edge44.loopexit.unr-lcssa ]
  %35 = getelementptr inbounds [200100 x i64], ptr @a, i64 0, i64 %indvars.iv63.epil
  %36 = load i64, ptr %35, align 8, !tbaa !8
  %37 = or i64 %36, %34
  %38 = getelementptr inbounds [200100 x i64], ptr @l, i64 0, i64 %indvars.iv63.epil
  store i64 %37, ptr %38, align 8, !tbaa !8
  %indvars.iv.next64.epil = add nuw nsw i64 %indvars.iv63.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge44, label %.lr.ph43.epil, !llvm.loop !13

._crit_edge44:                                    ; preds = %._crit_edge44.loopexit.unr-lcssa, %.lr.ph43.epil, %._crit_edge.thread, %._crit_edge
  %39 = phi i64 [ %22, %._crit_edge.thread ], [ %26, %._crit_edge ], [ %26, %.lr.ph43.epil ], [ %26, %._crit_edge44.loopexit.unr-lcssa ]
  %40 = phi i64 [ %20, %._crit_edge.thread ], [ %24, %._crit_edge ], [ %24, %.lr.ph43.epil ], [ %24, %._crit_edge44.loopexit.unr-lcssa ]
  %.lcssa82 = phi i64 [ %19, %._crit_edge.thread ], [ %33, %._crit_edge ], [ %33, %.lr.ph43.epil ], [ %33, %._crit_edge44.loopexit.unr-lcssa ]
  %41 = trunc i64 %.lcssa82 to i32
  %.02845 = add i32 %41, -1
  %42 = icmp sgt i32 %.02845, 0
  br i1 %42, label %.lr.ph49.preheader, label %.preheader

.lr.ph49.preheader:                               ; preds = %._crit_edge44
  %43 = zext nneg i32 %.02845 to i64
  %44 = and i64 %.lcssa82, 4294967295
  %min.iters.check = icmp ult i32 %.02845, 26
  br i1 %min.iters.check, label %.lr.ph49.preheader103, label %vector.scevcheck

.lr.ph49.preheader103:                            ; preds = %middle.block, %vector.memcheck, %vector.scevcheck, %.lr.ph49.preheader
  %indvars.iv68.ph = phi i64 [ %44, %vector.memcheck ], [ %44, %vector.scevcheck ], [ %44, %.lr.ph49.preheader ], [ %ind.end, %middle.block ]
  %indvars.iv66.ph = phi i64 [ %43, %vector.memcheck ], [ %43, %vector.scevcheck ], [ %43, %.lr.ph49.preheader ], [ %ind.end91, %middle.block ]
  br label %.lr.ph49

vector.scevcheck:                                 ; preds = %.lr.ph49.preheader
  %45 = add nsw i64 %43, -1
  %46 = shl nuw nsw i64 %43, 3
  %scevgep = getelementptr i8, ptr @r, i64 %46
  %mul.result.neg = mul nsw i64 %45, -8
  %47 = getelementptr i8, ptr %scevgep, i64 %mul.result.neg
  %48 = icmp ugt ptr %47, %scevgep
  %49 = shl nuw nsw i64 %44, 3
  %scevgep87 = getelementptr i8, ptr @r, i64 %49
  %mul.result89.neg = mul nsw i64 %45, -8
  %mul.overflow90 = icmp ugt i64 %45, 2305843009213693951
  %50 = getelementptr i8, ptr %scevgep87, i64 %mul.result89.neg
  %51 = icmp ugt ptr %50, %scevgep87
  %52 = or i1 %51, %mul.overflow90
  %53 = or i1 %48, %52
  br i1 %53, label %.lr.ph49.preheader103, label %vector.memcheck

vector.memcheck:                                  ; preds = %vector.scevcheck
  %54 = sub nsw i64 %44, %43
  %55 = and i64 %54, 2305843009213693948
  %diff.check = icmp eq i64 %55, 0
  br i1 %diff.check, label %.lr.ph49.preheader103, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %43, 2147483644
  %ind.end = sub nsw i64 %44, %n.vec
  %ind.end91 = and i64 %43, 3
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = sub i64 %44, %index
  %offset.idx93 = sub i64 %43, %index
  %56 = getelementptr inbounds [200100 x i64], ptr @r, i64 0, i64 %offset.idx
  %57 = getelementptr inbounds i8, ptr %56, i64 -8
  %58 = getelementptr inbounds i8, ptr %56, i64 -24
  %wide.load = load <2 x i64>, ptr %57, align 8, !tbaa !8
  %wide.load94 = load <2 x i64>, ptr %58, align 8, !tbaa !8
  %59 = getelementptr inbounds [200100 x i64], ptr @a, i64 0, i64 %offset.idx93
  %60 = getelementptr inbounds i8, ptr %59, i64 -8
  %61 = getelementptr inbounds i8, ptr %59, i64 -24
  %wide.load96 = load <2 x i64>, ptr %60, align 8, !tbaa !8
  %wide.load98 = load <2 x i64>, ptr %61, align 8, !tbaa !8
  %62 = or <2 x i64> %wide.load96, %wide.load
  %63 = or <2 x i64> %wide.load98, %wide.load94
  %64 = getelementptr inbounds [200100 x i64], ptr @r, i64 0, i64 %offset.idx93
  %65 = getelementptr inbounds i8, ptr %64, i64 -8
  %66 = getelementptr inbounds i8, ptr %64, i64 -24
  store <2 x i64> %62, ptr %65, align 8, !tbaa !8
  store <2 x i64> %63, ptr %66, align 8, !tbaa !8
  %index.next = add nuw i64 %index, 4
  %67 = icmp eq i64 %index.next, %n.vec
  br i1 %67, label %middle.block, label %vector.body, !llvm.loop !15

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %43
  br i1 %cmp.n, label %.preheader, label %.lr.ph49.preheader103

.lr.ph43:                                         ; preds = %.lr.ph43, %.lr.ph43.preheader.new
  %68 = phi i64 [ %24, %.lr.ph43.preheader.new ], [ %83, %.lr.ph43 ]
  %indvars.iv63 = phi i64 [ 2, %.lr.ph43.preheader.new ], [ %indvars.iv.next64.3, %.lr.ph43 ]
  %niter = phi i64 [ 0, %.lr.ph43.preheader.new ], [ %niter.next.3, %.lr.ph43 ]
  %69 = getelementptr inbounds [200100 x i64], ptr @a, i64 0, i64 %indvars.iv63
  %70 = load i64, ptr %69, align 16, !tbaa !8
  %71 = or i64 %70, %68
  %72 = getelementptr inbounds [200100 x i64], ptr @l, i64 0, i64 %indvars.iv63
  store i64 %71, ptr %72, align 16, !tbaa !8
  %indvars.iv.next64 = or disjoint i64 %indvars.iv63, 1
  %73 = getelementptr inbounds [200100 x i64], ptr @a, i64 0, i64 %indvars.iv.next64
  %74 = load i64, ptr %73, align 8, !tbaa !8
  %75 = or i64 %74, %71
  %76 = getelementptr inbounds [200100 x i64], ptr @l, i64 0, i64 %indvars.iv.next64
  store i64 %75, ptr %76, align 8, !tbaa !8
  %indvars.iv.next64.1 = add nuw nsw i64 %indvars.iv63, 2
  %77 = getelementptr inbounds [200100 x i64], ptr @a, i64 0, i64 %indvars.iv.next64.1
  %78 = load i64, ptr %77, align 16, !tbaa !8
  %79 = or i64 %78, %75
  %80 = getelementptr inbounds [200100 x i64], ptr @l, i64 0, i64 %indvars.iv.next64.1
  store i64 %79, ptr %80, align 16, !tbaa !8
  %indvars.iv.next64.2 = add nuw nsw i64 %indvars.iv63, 3
  %81 = getelementptr inbounds [200100 x i64], ptr @a, i64 0, i64 %indvars.iv.next64.2
  %82 = load i64, ptr %81, align 8, !tbaa !8
  %83 = or i64 %82, %79
  %84 = getelementptr inbounds [200100 x i64], ptr @l, i64 0, i64 %indvars.iv.next64.2
  store i64 %83, ptr %84, align 8, !tbaa !8
  %indvars.iv.next64.3 = add nuw nsw i64 %indvars.iv63, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge44.loopexit.unr-lcssa, label %.lr.ph43, !llvm.loop !18

.preheader:                                       ; preds = %.lr.ph49, %middle.block, %._crit_edge44
  %85 = load i64, ptr @k, align 8, !tbaa !8
  %.not3750 = icmp slt i64 %85, 1
  br i1 %.not3750, label %._crit_edge54, label %.lr.ph53

.lr.ph53:                                         ; preds = %.preheader
  %86 = load i64, ptr @x, align 8, !tbaa !8
  %xtraiter105 = and i64 %85, 7
  %87 = icmp ult i64 %85, 8
  br i1 %87, label %._crit_edge54.loopexit.unr-lcssa, label %.lr.ph53.new

.lr.ph53.new:                                     ; preds = %.lr.ph53
  %unroll_iter109 = and i64 %85, 9223372036854775800
  %factor.op.mul = mul i64 %86, %86
  %factor.op.mul115 = mul i64 %factor.op.mul, %86
  %factor.op.mul116 = mul i64 %factor.op.mul115, %86
  %factor.op.mul117 = mul i64 %factor.op.mul116, %86
  %factor.op.mul118 = mul i64 %factor.op.mul117, %86
  %factor.op.mul119 = mul i64 %factor.op.mul118, %86
  %factor.op.mul120 = mul i64 %factor.op.mul119, %86
  br label %97

.lr.ph49:                                         ; preds = %.lr.ph49.preheader103, %.lr.ph49
  %indvars.iv68 = phi i64 [ %indvars.iv.next69, %.lr.ph49 ], [ %indvars.iv68.ph, %.lr.ph49.preheader103 ]
  %indvars.iv66 = phi i64 [ %indvars.iv.next67, %.lr.ph49 ], [ %indvars.iv66.ph, %.lr.ph49.preheader103 ]
  %88 = getelementptr inbounds [200100 x i64], ptr @r, i64 0, i64 %indvars.iv68
  %89 = load i64, ptr %88, align 8, !tbaa !8
  %90 = getelementptr inbounds [200100 x i64], ptr @a, i64 0, i64 %indvars.iv66
  %91 = load i64, ptr %90, align 8, !tbaa !8
  %92 = or i64 %91, %89
  %93 = getelementptr inbounds [200100 x i64], ptr @r, i64 0, i64 %indvars.iv66
  store i64 %92, ptr %93, align 8, !tbaa !8
  %indvars.iv.next67 = add nsw i64 %indvars.iv66, -1
  %94 = icmp ugt i64 %indvars.iv66, 1
  %indvars.iv.next69 = add nsw i64 %indvars.iv68, -1
  br i1 %94, label %.lr.ph49, label %.preheader, !llvm.loop !19

._crit_edge54.loopexit.unr-lcssa:                 ; preds = %97, %.lr.ph53
  %.lcssa102.ph = phi i64 [ poison, %.lr.ph53 ], [ %.reass.reass.reass.reass.reass.reass.reass, %97 ]
  %.02751.unr = phi i64 [ 1, %.lr.ph53 ], [ %.reass.reass.reass.reass.reass.reass.reass, %97 ]
  %lcmp.mod107.not = icmp eq i64 %xtraiter105, 0
  br i1 %lcmp.mod107.not, label %._crit_edge54, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge54.loopexit.unr-lcssa, %.epil.preheader
  %.02751.epil = phi i64 [ %95, %.epil.preheader ], [ %.02751.unr, %._crit_edge54.loopexit.unr-lcssa ]
  %epil.iter106 = phi i64 [ %epil.iter106.next, %.epil.preheader ], [ 0, %._crit_edge54.loopexit.unr-lcssa ]
  %95 = mul nsw i64 %86, %.02751.epil
  %epil.iter106.next = add i64 %epil.iter106, 1
  %epil.iter106.cmp.not = icmp eq i64 %epil.iter106.next, %xtraiter105
  br i1 %epil.iter106.cmp.not, label %._crit_edge54, label %.epil.preheader, !llvm.loop !20

._crit_edge54:                                    ; preds = %._crit_edge54.loopexit.unr-lcssa, %.epil.preheader, %.preheader
  %.027.lcssa = phi i64 [ 1, %.preheader ], [ %.lcssa102.ph, %._crit_edge54.loopexit.unr-lcssa ], [ %95, %.epil.preheader ]
  %96 = icmp eq i64 %.lcssa82, 1
  br i1 %96, label %98, label %102

97:                                               ; preds = %97, %.lr.ph53.new
  %.02751 = phi i64 [ 1, %.lr.ph53.new ], [ %.reass.reass.reass.reass.reass.reass.reass, %97 ]
  %niter110 = phi i64 [ 0, %.lr.ph53.new ], [ %niter110.next.7, %97 ]
  %.reass.reass.reass.reass.reass.reass.reass = mul i64 %factor.op.mul120, %.02751
  %niter110.next.7 = add i64 %niter110, 8
  %niter110.ncmp.7 = icmp eq i64 %niter110.next.7, %unroll_iter109
  br i1 %niter110.ncmp.7, label %._crit_edge54.loopexit.unr-lcssa, label %97, !llvm.loop !21

98:                                               ; preds = %._crit_edge54
  %99 = mul nsw i64 %.027.lcssa, %40
  %100 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %99)
  %101 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %100, ptr noundef nonnull @.str)
  br label %132

102:                                              ; preds = %._crit_edge54
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #7
  %103 = mul nsw i64 %.027.lcssa, %40
  %104 = load i64, ptr getelementptr inbounds (i8, ptr @r, i64 16), align 16, !tbaa !8
  %105 = or i64 %104, %103
  store i64 %105, ptr %2, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  %106 = mul nsw i64 %.027.lcssa, %39
  %107 = add nsw i64 %.lcssa82, -1
  %108 = getelementptr inbounds [200100 x i64], ptr @l, i64 0, i64 %107
  %109 = load i64, ptr %108, align 8, !tbaa !8
  %110 = or i64 %109, %106
  store i64 %110, ptr %3, align 8, !tbaa !8
  %111 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %112 = load i64, ptr %111, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  store i64 %112, ptr %1, align 8, !tbaa !8
  %113 = load i64, ptr @n, align 8, !tbaa !8
  %114 = icmp sgt i64 %113, 2
  br i1 %114, label %.lr.ph58, label %._crit_edge59

._crit_edge59:                                    ; preds = %.lr.ph58, %102
  %115 = phi i64 [ %112, %102 ], [ %129, %.lr.ph58 ]
  %116 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %115)
  %117 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %116, ptr noundef nonnull @.str)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #7
  br label %132

.lr.ph58:                                         ; preds = %102, %.lr.ph58
  %indvars.iv77 = phi i64 [ %indvars.iv.next78, %.lr.ph58 ], [ 2, %102 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  %118 = getelementptr inbounds [200100 x i64], ptr @a, i64 0, i64 %indvars.iv77
  %119 = load i64, ptr %118, align 8, !tbaa !8
  %120 = mul nsw i64 %119, %.027.lcssa
  %121 = add nsw i64 %indvars.iv77, -1
  %122 = getelementptr inbounds [200100 x i64], ptr @l, i64 0, i64 %121
  %123 = load i64, ptr %122, align 8, !tbaa !8
  %124 = or i64 %120, %123
  %indvars.iv.next78 = add nuw nsw i64 %indvars.iv77, 1
  %125 = getelementptr inbounds [200100 x i64], ptr @r, i64 0, i64 %indvars.iv.next78
  %126 = load i64, ptr %125, align 8, !tbaa !8
  %127 = or i64 %124, %126
  store i64 %127, ptr %4, align 8, !tbaa !8
  %128 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %129 = load i64, ptr %128, align 8, !tbaa !8
  store i64 %129, ptr %1, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  %130 = load i64, ptr @n, align 8, !tbaa !8
  %131 = icmp sgt i64 %130, %indvars.iv.next78
  br i1 %131, label %.lr.ph58, label %._crit_edge59, !llvm.loop !22

132:                                              ; preds = %._crit_edge59, %98
  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

; 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: 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 #5

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { 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, !14}
!14 = !{!"llvm.loop.unroll.disable"}
!15 = distinct !{!15, !12, !16, !17}
!16 = !{!"llvm.loop.isvectorized", i32 1}
!17 = !{!"llvm.loop.unroll.runtime.disable"}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12, !16}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !12}
!22 = distinct !{!22, !12}


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