; LLVM IR from kazunetakahashi/atcoder :: 2019/0804_ABC136/past (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_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_Z5powerx(i64 noundef) #2

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #4 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #6
  %8 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %9 = load i64, ptr %2, align 8, !tbaa !5
  %10 = add nsw i64 %9, 1
  store i64 %10, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  store i64 0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store i32 0, ptr %4, align 4, !tbaa !9
  br label %11

11:                                               ; preds = %38, %0
  %12 = load i32, ptr %4, align 4, !tbaa !9
  %13 = icmp slt i32 %12, 8
  br i1 %13, label %15, label %14

14:                                               ; preds = %11
  store i32 2, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  br label %41

15:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %16 = load i32, ptr %4, align 4, !tbaa !9
  %17 = mul nsw i32 2, %16
  %18 = sext i32 %17 to i64
  %19 = call noundef i64 @_Z5powerx(i64 noundef %18)
  store i64 %19, ptr %6, align 8, !tbaa !5
  br label %20

20:                                               ; preds = %34, %15
  %21 = load i64, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %22 = load i32, ptr %4, align 4, !tbaa !9
  %23 = mul nsw i32 2, %22
  %24 = add nsw i32 1, %23
  %25 = sext i32 %24 to i64
  %26 = call noundef i64 @_Z5powerx(i64 noundef %25)
  store i64 %26, ptr %7, align 8, !tbaa !5
  %27 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %28 = load i64, ptr %27, align 8, !tbaa !5
  %29 = icmp slt i64 %21, %28
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br i1 %29, label %31, label %30

30:                                               ; preds = %20
  store i32 5, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  br label %37

31:                                               ; preds = %20
  %32 = load i64, ptr %3, align 8, !tbaa !5
  %33 = add nsw i64 %32, 1
  store i64 %33, ptr %3, align 8, !tbaa !5
  br label %34

34:                                               ; preds = %31
  %35 = load i64, ptr %6, align 8, !tbaa !5
  %36 = add nsw i64 %35, 1
  store i64 %36, ptr %6, align 8, !tbaa !5
  br label %20, !llvm.loop !11

37:                                               ; preds = %30
  br label %38

38:                                               ; preds = %37
  %39 = load i32, ptr %4, align 4, !tbaa !9
  %40 = add nsw i32 %39, 1
  store i32 %40, ptr %4, align 4, !tbaa !9
  br label %11, !llvm.loop !13

41:                                               ; preds = %14
  %42 = load i64, ptr %3, align 8, !tbaa !5
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %42)
  %44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %43, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  %45 = load i32, ptr %1, align 4
  ret i32 %45
}

; 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

attributes #0 = { 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 #1 = { 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 #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #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 = { nounwind }

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

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


; 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_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8

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

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

; 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 #0 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)) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_Z5powerx(i64 noundef) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #4 {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #6
  %3 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %4 = load i64, ptr %1, align 8, !tbaa !5
  %5 = add nsw i64 %4, 1
  store i64 %5, ptr %1, align 8, !tbaa !5
  %6 = call noundef i64 @_Z5powerx(i64 noundef 0)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %7 = call noundef i64 @_Z5powerx(i64 noundef 1)
  store i64 %7, ptr %2, align 8, !tbaa !5
  %8 = 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) %1)
  %9 = load i64, ptr %8, align 8, !tbaa !5
  %10 = icmp slt i64 %6, %9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  br i1 %10, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %0
  %.1.lcssa = phi i64 [ 0, %0 ], [ %90, %.lr.ph ]
  %11 = call noundef i64 @_Z5powerx(i64 noundef 2)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %12 = call noundef i64 @_Z5powerx(i64 noundef 3)
  store i64 %12, ptr %2, align 8, !tbaa !5
  %13 = 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) %1)
  %14 = load i64, ptr %13, align 8, !tbaa !5
  %15 = icmp slt i64 %11, %14
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  br i1 %15, label %.lr.ph.1, label %._crit_edge.1

.lr.ph.1:                                         ; preds = %._crit_edge, %.lr.ph.1
  %.012.1 = phi i64 [ %17, %.lr.ph.1 ], [ %11, %._crit_edge ]
  %.111.1 = phi i64 [ %16, %.lr.ph.1 ], [ %.1.lcssa, %._crit_edge ]
  %16 = add nsw i64 %.111.1, 1
  %17 = add nsw i64 %.012.1, 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %18 = call noundef i64 @_Z5powerx(i64 noundef 3)
  store i64 %18, ptr %2, align 8, !tbaa !5
  %19 = 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) %1)
  %20 = load i64, ptr %19, align 8, !tbaa !5
  %21 = icmp slt i64 %17, %20
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  br i1 %21, label %.lr.ph.1, label %._crit_edge.1, !llvm.loop !9

._crit_edge.1:                                    ; preds = %.lr.ph.1, %._crit_edge
  %.1.lcssa.1 = phi i64 [ %.1.lcssa, %._crit_edge ], [ %16, %.lr.ph.1 ]
  %22 = call noundef i64 @_Z5powerx(i64 noundef 4)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %23 = call noundef i64 @_Z5powerx(i64 noundef 5)
  store i64 %23, ptr %2, align 8, !tbaa !5
  %24 = 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) %1)
  %25 = load i64, ptr %24, align 8, !tbaa !5
  %26 = icmp slt i64 %22, %25
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  br i1 %26, label %.lr.ph.2, label %._crit_edge.2

.lr.ph.2:                                         ; preds = %._crit_edge.1, %.lr.ph.2
  %.012.2 = phi i64 [ %28, %.lr.ph.2 ], [ %22, %._crit_edge.1 ]
  %.111.2 = phi i64 [ %27, %.lr.ph.2 ], [ %.1.lcssa.1, %._crit_edge.1 ]
  %27 = add nsw i64 %.111.2, 1
  %28 = add nsw i64 %.012.2, 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %29 = call noundef i64 @_Z5powerx(i64 noundef 5)
  store i64 %29, ptr %2, align 8, !tbaa !5
  %30 = 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) %1)
  %31 = load i64, ptr %30, align 8, !tbaa !5
  %32 = icmp slt i64 %28, %31
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  br i1 %32, label %.lr.ph.2, label %._crit_edge.2, !llvm.loop !9

._crit_edge.2:                                    ; preds = %.lr.ph.2, %._crit_edge.1
  %.1.lcssa.2 = phi i64 [ %.1.lcssa.1, %._crit_edge.1 ], [ %27, %.lr.ph.2 ]
  %33 = call noundef i64 @_Z5powerx(i64 noundef 6)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %34 = call noundef i64 @_Z5powerx(i64 noundef 7)
  store i64 %34, ptr %2, align 8, !tbaa !5
  %35 = 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) %1)
  %36 = load i64, ptr %35, align 8, !tbaa !5
  %37 = icmp slt i64 %33, %36
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  br i1 %37, label %.lr.ph.3, label %._crit_edge.3

.lr.ph.3:                                         ; preds = %._crit_edge.2, %.lr.ph.3
  %.012.3 = phi i64 [ %39, %.lr.ph.3 ], [ %33, %._crit_edge.2 ]
  %.111.3 = phi i64 [ %38, %.lr.ph.3 ], [ %.1.lcssa.2, %._crit_edge.2 ]
  %38 = add nsw i64 %.111.3, 1
  %39 = add nsw i64 %.012.3, 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %40 = call noundef i64 @_Z5powerx(i64 noundef 7)
  store i64 %40, ptr %2, align 8, !tbaa !5
  %41 = 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) %1)
  %42 = load i64, ptr %41, align 8, !tbaa !5
  %43 = icmp slt i64 %39, %42
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  br i1 %43, label %.lr.ph.3, label %._crit_edge.3, !llvm.loop !9

._crit_edge.3:                                    ; preds = %.lr.ph.3, %._crit_edge.2
  %.1.lcssa.3 = phi i64 [ %.1.lcssa.2, %._crit_edge.2 ], [ %38, %.lr.ph.3 ]
  %44 = call noundef i64 @_Z5powerx(i64 noundef 8)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %45 = call noundef i64 @_Z5powerx(i64 noundef 9)
  store i64 %45, ptr %2, align 8, !tbaa !5
  %46 = 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) %1)
  %47 = load i64, ptr %46, align 8, !tbaa !5
  %48 = icmp slt i64 %44, %47
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  br i1 %48, label %.lr.ph.4, label %._crit_edge.4

.lr.ph.4:                                         ; preds = %._crit_edge.3, %.lr.ph.4
  %.012.4 = phi i64 [ %50, %.lr.ph.4 ], [ %44, %._crit_edge.3 ]
  %.111.4 = phi i64 [ %49, %.lr.ph.4 ], [ %.1.lcssa.3, %._crit_edge.3 ]
  %49 = add nsw i64 %.111.4, 1
  %50 = add nsw i64 %.012.4, 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %51 = call noundef i64 @_Z5powerx(i64 noundef 9)
  store i64 %51, ptr %2, align 8, !tbaa !5
  %52 = 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) %1)
  %53 = load i64, ptr %52, align 8, !tbaa !5
  %54 = icmp slt i64 %50, %53
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  br i1 %54, label %.lr.ph.4, label %._crit_edge.4, !llvm.loop !9

._crit_edge.4:                                    ; preds = %.lr.ph.4, %._crit_edge.3
  %.1.lcssa.4 = phi i64 [ %.1.lcssa.3, %._crit_edge.3 ], [ %49, %.lr.ph.4 ]
  %55 = call noundef i64 @_Z5powerx(i64 noundef 10)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %56 = call noundef i64 @_Z5powerx(i64 noundef 11)
  store i64 %56, ptr %2, align 8, !tbaa !5
  %57 = 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) %1)
  %58 = load i64, ptr %57, align 8, !tbaa !5
  %59 = icmp slt i64 %55, %58
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  br i1 %59, label %.lr.ph.5, label %._crit_edge.5

.lr.ph.5:                                         ; preds = %._crit_edge.4, %.lr.ph.5
  %.012.5 = phi i64 [ %61, %.lr.ph.5 ], [ %55, %._crit_edge.4 ]
  %.111.5 = phi i64 [ %60, %.lr.ph.5 ], [ %.1.lcssa.4, %._crit_edge.4 ]
  %60 = add nsw i64 %.111.5, 1
  %61 = add nsw i64 %.012.5, 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %62 = call noundef i64 @_Z5powerx(i64 noundef 11)
  store i64 %62, ptr %2, align 8, !tbaa !5
  %63 = 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) %1)
  %64 = load i64, ptr %63, align 8, !tbaa !5
  %65 = icmp slt i64 %61, %64
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  br i1 %65, label %.lr.ph.5, label %._crit_edge.5, !llvm.loop !9

._crit_edge.5:                                    ; preds = %.lr.ph.5, %._crit_edge.4
  %.1.lcssa.5 = phi i64 [ %.1.lcssa.4, %._crit_edge.4 ], [ %60, %.lr.ph.5 ]
  %66 = call noundef i64 @_Z5powerx(i64 noundef 12)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %67 = call noundef i64 @_Z5powerx(i64 noundef 13)
  store i64 %67, ptr %2, align 8, !tbaa !5
  %68 = 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) %1)
  %69 = load i64, ptr %68, align 8, !tbaa !5
  %70 = icmp slt i64 %66, %69
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  br i1 %70, label %.lr.ph.6, label %._crit_edge.6

.lr.ph.6:                                         ; preds = %._crit_edge.5, %.lr.ph.6
  %.012.6 = phi i64 [ %72, %.lr.ph.6 ], [ %66, %._crit_edge.5 ]
  %.111.6 = phi i64 [ %71, %.lr.ph.6 ], [ %.1.lcssa.5, %._crit_edge.5 ]
  %71 = add nsw i64 %.111.6, 1
  %72 = add nsw i64 %.012.6, 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %73 = call noundef i64 @_Z5powerx(i64 noundef 13)
  store i64 %73, ptr %2, align 8, !tbaa !5
  %74 = 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) %1)
  %75 = load i64, ptr %74, align 8, !tbaa !5
  %76 = icmp slt i64 %72, %75
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  br i1 %76, label %.lr.ph.6, label %._crit_edge.6, !llvm.loop !9

._crit_edge.6:                                    ; preds = %.lr.ph.6, %._crit_edge.5
  %.1.lcssa.6 = phi i64 [ %.1.lcssa.5, %._crit_edge.5 ], [ %71, %.lr.ph.6 ]
  %77 = call noundef i64 @_Z5powerx(i64 noundef 14)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %78 = call noundef i64 @_Z5powerx(i64 noundef 15)
  store i64 %78, ptr %2, align 8, !tbaa !5
  %79 = 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) %1)
  %80 = load i64, ptr %79, align 8, !tbaa !5
  %81 = icmp slt i64 %77, %80
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  br i1 %81, label %.lr.ph.7, label %._crit_edge.7

.lr.ph.7:                                         ; preds = %._crit_edge.6, %.lr.ph.7
  %.012.7 = phi i64 [ %83, %.lr.ph.7 ], [ %77, %._crit_edge.6 ]
  %.111.7 = phi i64 [ %82, %.lr.ph.7 ], [ %.1.lcssa.6, %._crit_edge.6 ]
  %82 = add nsw i64 %.111.7, 1
  %83 = add nsw i64 %.012.7, 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %84 = call noundef i64 @_Z5powerx(i64 noundef 15)
  store i64 %84, ptr %2, align 8, !tbaa !5
  %85 = 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) %1)
  %86 = load i64, ptr %85, align 8, !tbaa !5
  %87 = icmp slt i64 %83, %86
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  br i1 %87, label %.lr.ph.7, label %._crit_edge.7, !llvm.loop !9

._crit_edge.7:                                    ; preds = %.lr.ph.7, %._crit_edge.6
  %.1.lcssa.7 = phi i64 [ %.1.lcssa.6, %._crit_edge.6 ], [ %82, %.lr.ph.7 ]
  %88 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %.1.lcssa.7)
  %89 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %88, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  ret i32 0

.lr.ph:                                           ; preds = %0, %.lr.ph
  %.012 = phi i64 [ %91, %.lr.ph ], [ %6, %0 ]
  %.111 = phi i64 [ %90, %.lr.ph ], [ 0, %0 ]
  %90 = add nuw nsw i64 %.111, 1
  %91 = add nsw i64 %.012, 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %92 = call noundef i64 @_Z5powerx(i64 noundef 1)
  store i64 %92, ptr %2, align 8, !tbaa !5
  %93 = 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) %1)
  %94 = load i64, ptr %93, align 8, !tbaa !5
  %95 = icmp slt i64 %91, %94
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  br i1 %95, label %.lr.ph, label %._crit_edge, !llvm.loop !9
}

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

attributes #0 = { 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 #1 = { 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 #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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #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 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


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