; LLVM IR from VastoLorde95/Competitive-Programming :: Codeforces/309 Division 2/Problem D (D)

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

@fib = external dso_local global [60 x i64], align 16
@n = external dso_local global i64, align 8
@k = external dso_local global i64, align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.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
  store i32 0, ptr %1, align 4
  store i64 1, ptr getelementptr inbounds ([60 x i64], ptr @fib, i64 0, i64 1), align 8, !tbaa !5
  store i64 1, ptr getelementptr inbounds ([60 x i64], ptr @fib, i64 0, i64 2), align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 3, ptr %2, align 4, !tbaa !9
  br label %4

4:                                                ; preds = %23, %0
  %5 = load i32, ptr %2, align 4, !tbaa !9
  %6 = icmp sle i32 %5, 51
  br i1 %6, label %8, label %7

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

8:                                                ; preds = %4
  %9 = load i32, ptr %2, align 4, !tbaa !9
  %10 = sub nsw i32 %9, 1
  %11 = sext i32 %10 to i64
  %12 = getelementptr inbounds [60 x i64], ptr @fib, i64 0, i64 %11
  %13 = load i64, ptr %12, align 8, !tbaa !5
  %14 = load i32, ptr %2, align 4, !tbaa !9
  %15 = sub nsw i32 %14, 2
  %16 = sext i32 %15 to i64
  %17 = getelementptr inbounds [60 x i64], ptr @fib, i64 0, i64 %16
  %18 = load i64, ptr %17, align 8, !tbaa !5
  %19 = add nsw i64 %13, %18
  %20 = load i32, ptr %2, align 4, !tbaa !9
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds [60 x i64], ptr @fib, i64 0, i64 %21
  store i64 %19, ptr %22, align 8, !tbaa !5
  br label %23

23:                                               ; preds = %8
  %24 = load i32, ptr %2, align 4, !tbaa !9
  %25 = add nsw i32 %24, 1
  store i32 %25, ptr %2, align 4, !tbaa !9
  br label %4, !llvm.loop !11

26:                                               ; preds = %7
  %27 = 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)
  %28 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull align 8 dereferenceable(8) @k)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 1, ptr %3, align 4, !tbaa !9
  br label %29

29:                                               ; preds = %80, %26
  %30 = load i32, ptr %3, align 4, !tbaa !9
  %31 = sext i32 %30 to i64
  %32 = load i64, ptr @n, align 8, !tbaa !5
  %33 = icmp sle i64 %31, %32
  br i1 %33, label %35, label %34

34:                                               ; preds = %29
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  br label %83

35:                                               ; preds = %29
  %36 = load i64, ptr @k, align 8, !tbaa !5
  %37 = load i64, ptr @n, align 8, !tbaa !5
  %38 = load i32, ptr %3, align 4, !tbaa !9
  %39 = sext i32 %38 to i64
  %40 = sub nsw i64 %37, %39
  %41 = add nsw i64 %40, 1
  %42 = getelementptr inbounds [60 x i64], ptr @fib, i64 0, i64 %41
  %43 = load i64, ptr %42, align 8, !tbaa !5
  %44 = icmp sle i64 %36, %43
  br i1 %44, label %45, label %49

45:                                               ; preds = %35
  %46 = load i32, ptr %3, align 4, !tbaa !9
  %47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %46)
  %48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %47, ptr noundef @.str)
  br label %79

49:                                               ; preds = %35
  %50 = load i32, ptr %3, align 4, !tbaa !9
  %51 = add nsw i32 %50, 1
  %52 = sext i32 %51 to i64
  %53 = load i64, ptr @n, align 8, !tbaa !5
  %54 = icmp sle i64 %52, %53
  br i1 %54, label %55, label %63

55:                                               ; preds = %49
  %56 = load i32, ptr %3, align 4, !tbaa !9
  %57 = add nsw i32 %56, 1
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %57)
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %58, ptr noundef @.str)
  %60 = load i32, ptr %3, align 4, !tbaa !9
  %61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %59, i32 noundef %60)
  %62 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %61, ptr noundef @.str)
  br label %67

63:                                               ; preds = %49
  %64 = load i32, ptr %3, align 4, !tbaa !9
  %65 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %64)
  %66 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %65, ptr noundef @.str)
  br label %67

67:                                               ; preds = %63, %55
  %68 = load i64, ptr @n, align 8, !tbaa !5
  %69 = load i32, ptr %3, align 4, !tbaa !9
  %70 = sext i32 %69 to i64
  %71 = sub nsw i64 %68, %70
  %72 = add nsw i64 %71, 1
  %73 = getelementptr inbounds [60 x i64], ptr @fib, i64 0, i64 %72
  %74 = load i64, ptr %73, align 8, !tbaa !5
  %75 = load i64, ptr @k, align 8, !tbaa !5
  %76 = sub nsw i64 %75, %74
  store i64 %76, ptr @k, align 8, !tbaa !5
  %77 = load i32, ptr %3, align 4, !tbaa !9
  %78 = add nsw i32 %77, 1
  store i32 %78, ptr %3, align 4, !tbaa !9
  br label %79

79:                                               ; preds = %67, %45
  br label %80

80:                                               ; preds = %79
  %81 = load i32, ptr %3, align 4, !tbaa !9
  %82 = add nsw i32 %81, 1
  store i32 %82, ptr %3, align 4, !tbaa !9
  br label %29, !llvm.loop !13

83:                                               ; preds = %34
  %84 = 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_)
  ret i32 0
}

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

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

; 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) #3

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

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

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

@fib = external dso_local local_unnamed_addr global [60 x i64], align 16
@n = external dso_local global i64, align 8
@k = external dso_local global i64, align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.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 {
  store i64 1, ptr getelementptr inbounds (i8, ptr @fib, i64 8), align 8, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @fib, i64 16), align 16, !tbaa !5
  %1 = load i64, ptr getelementptr inbounds (i8, ptr @fib, i64 8), align 8, !tbaa !5
  %2 = add nsw i64 %1, 1
  store i64 %2, ptr getelementptr inbounds (i8, ptr @fib, i64 24), align 8, !tbaa !5
  %3 = load i64, ptr getelementptr inbounds (i8, ptr @fib, i64 16), align 16, !tbaa !5
  %4 = add nsw i64 %3, %2
  store i64 %4, ptr getelementptr inbounds (i8, ptr @fib, i64 32), align 16, !tbaa !5
  %5 = add nsw i64 %2, %4
  store i64 %5, ptr getelementptr inbounds (i8, ptr @fib, i64 40), align 8, !tbaa !5
  %6 = add nsw i64 %4, %5
  store i64 %6, ptr getelementptr inbounds (i8, ptr @fib, i64 48), align 16, !tbaa !5
  %7 = add nsw i64 %5, %6
  store i64 %7, ptr getelementptr inbounds (i8, ptr @fib, i64 56), align 8, !tbaa !5
  %8 = add nsw i64 %6, %7
  store i64 %8, ptr getelementptr inbounds (i8, ptr @fib, i64 64), align 16, !tbaa !5
  %9 = add nsw i64 %7, %8
  store i64 %9, ptr getelementptr inbounds (i8, ptr @fib, i64 72), align 8, !tbaa !5
  %10 = add nsw i64 %8, %9
  store i64 %10, ptr getelementptr inbounds (i8, ptr @fib, i64 80), align 16, !tbaa !5
  %11 = add nsw i64 %9, %10
  store i64 %11, ptr getelementptr inbounds (i8, ptr @fib, i64 88), align 8, !tbaa !5
  %12 = add nsw i64 %10, %11
  store i64 %12, ptr getelementptr inbounds (i8, ptr @fib, i64 96), align 16, !tbaa !5
  %13 = add nsw i64 %11, %12
  store i64 %13, ptr getelementptr inbounds (i8, ptr @fib, i64 104), align 8, !tbaa !5
  %14 = add nsw i64 %12, %13
  store i64 %14, ptr getelementptr inbounds (i8, ptr @fib, i64 112), align 16, !tbaa !5
  %15 = add nsw i64 %13, %14
  store i64 %15, ptr getelementptr inbounds (i8, ptr @fib, i64 120), align 8, !tbaa !5
  %16 = add nsw i64 %14, %15
  store i64 %16, ptr getelementptr inbounds (i8, ptr @fib, i64 128), align 16, !tbaa !5
  %17 = add nsw i64 %15, %16
  store i64 %17, ptr getelementptr inbounds (i8, ptr @fib, i64 136), align 8, !tbaa !5
  %18 = add nsw i64 %16, %17
  store i64 %18, ptr getelementptr inbounds (i8, ptr @fib, i64 144), align 16, !tbaa !5
  %19 = add nsw i64 %17, %18
  store i64 %19, ptr getelementptr inbounds (i8, ptr @fib, i64 152), align 8, !tbaa !5
  %20 = add nsw i64 %18, %19
  store i64 %20, ptr getelementptr inbounds (i8, ptr @fib, i64 160), align 16, !tbaa !5
  %21 = add nsw i64 %19, %20
  store i64 %21, ptr getelementptr inbounds (i8, ptr @fib, i64 168), align 8, !tbaa !5
  %22 = add nsw i64 %20, %21
  store i64 %22, ptr getelementptr inbounds (i8, ptr @fib, i64 176), align 16, !tbaa !5
  %23 = add nsw i64 %21, %22
  store i64 %23, ptr getelementptr inbounds (i8, ptr @fib, i64 184), align 8, !tbaa !5
  %24 = add nsw i64 %22, %23
  store i64 %24, ptr getelementptr inbounds (i8, ptr @fib, i64 192), align 16, !tbaa !5
  %25 = add nsw i64 %23, %24
  store i64 %25, ptr getelementptr inbounds (i8, ptr @fib, i64 200), align 8, !tbaa !5
  %26 = add nsw i64 %24, %25
  store i64 %26, ptr getelementptr inbounds (i8, ptr @fib, i64 208), align 16, !tbaa !5
  %27 = add nsw i64 %25, %26
  store i64 %27, ptr getelementptr inbounds (i8, ptr @fib, i64 216), align 8, !tbaa !5
  %28 = add nsw i64 %26, %27
  store i64 %28, ptr getelementptr inbounds (i8, ptr @fib, i64 224), align 16, !tbaa !5
  %29 = add nsw i64 %27, %28
  store i64 %29, ptr getelementptr inbounds (i8, ptr @fib, i64 232), align 8, !tbaa !5
  %30 = add nsw i64 %28, %29
  store i64 %30, ptr getelementptr inbounds (i8, ptr @fib, i64 240), align 16, !tbaa !5
  %31 = add nsw i64 %29, %30
  store i64 %31, ptr getelementptr inbounds (i8, ptr @fib, i64 248), align 8, !tbaa !5
  %32 = add nsw i64 %30, %31
  store i64 %32, ptr getelementptr inbounds (i8, ptr @fib, i64 256), align 16, !tbaa !5
  %33 = add nsw i64 %31, %32
  store i64 %33, ptr getelementptr inbounds (i8, ptr @fib, i64 264), align 8, !tbaa !5
  %34 = add nsw i64 %32, %33
  store i64 %34, ptr getelementptr inbounds (i8, ptr @fib, i64 272), align 16, !tbaa !5
  %35 = add nsw i64 %33, %34
  store i64 %35, ptr getelementptr inbounds (i8, ptr @fib, i64 280), align 8, !tbaa !5
  %36 = add nsw i64 %34, %35
  store i64 %36, ptr getelementptr inbounds (i8, ptr @fib, i64 288), align 16, !tbaa !5
  %37 = add nsw i64 %35, %36
  store i64 %37, ptr getelementptr inbounds (i8, ptr @fib, i64 296), align 8, !tbaa !5
  %38 = add nsw i64 %36, %37
  store i64 %38, ptr getelementptr inbounds (i8, ptr @fib, i64 304), align 16, !tbaa !5
  %39 = add nsw i64 %37, %38
  store i64 %39, ptr getelementptr inbounds (i8, ptr @fib, i64 312), align 8, !tbaa !5
  %40 = add nsw i64 %38, %39
  store i64 %40, ptr getelementptr inbounds (i8, ptr @fib, i64 320), align 16, !tbaa !5
  %41 = add nsw i64 %39, %40
  store i64 %41, ptr getelementptr inbounds (i8, ptr @fib, i64 328), align 8, !tbaa !5
  %42 = add nsw i64 %40, %41
  store i64 %42, ptr getelementptr inbounds (i8, ptr @fib, i64 336), align 16, !tbaa !5
  %43 = add nsw i64 %41, %42
  store i64 %43, ptr getelementptr inbounds (i8, ptr @fib, i64 344), align 8, !tbaa !5
  %44 = add nsw i64 %42, %43
  store i64 %44, ptr getelementptr inbounds (i8, ptr @fib, i64 352), align 16, !tbaa !5
  %45 = add nsw i64 %43, %44
  store i64 %45, ptr getelementptr inbounds (i8, ptr @fib, i64 360), align 8, !tbaa !5
  %46 = add nsw i64 %44, %45
  store i64 %46, ptr getelementptr inbounds (i8, ptr @fib, i64 368), align 16, !tbaa !5
  %47 = add nsw i64 %45, %46
  store i64 %47, ptr getelementptr inbounds (i8, ptr @fib, i64 376), align 8, !tbaa !5
  %48 = add nsw i64 %46, %47
  store i64 %48, ptr getelementptr inbounds (i8, ptr @fib, i64 384), align 16, !tbaa !5
  %49 = add nsw i64 %47, %48
  store i64 %49, ptr getelementptr inbounds (i8, ptr @fib, i64 392), align 8, !tbaa !5
  %50 = add nsw i64 %48, %49
  store i64 %50, ptr getelementptr inbounds (i8, ptr @fib, i64 400), align 16, !tbaa !5
  %51 = add nsw i64 %49, %50
  store i64 %51, ptr getelementptr inbounds (i8, ptr @fib, i64 408), align 8, !tbaa !5
  %52 = 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)
  %53 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %52, ptr noundef nonnull align 8 dereferenceable(8) @k)
  %54 = load i64, ptr @n, align 8, !tbaa !5
  %.not21 = icmp slt i64 %54, 1
  br i1 %.not21, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %0
  %.pre25 = load i64, ptr @k, align 8, !tbaa !5
  br label %.lr.ph

._crit_edge:                                      ; preds = %80, %0
  %55 = tail 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_)
  ret i32 0

.lr.ph:                                           ; preds = %.lr.ph.preheader, %80
  %56 = phi i64 [ %82, %80 ], [ %.pre25, %.lr.ph.preheader ]
  %57 = phi i64 [ %81, %80 ], [ %54, %.lr.ph.preheader ]
  %.neg23 = phi i64 [ %.neg, %80 ], [ -1, %.lr.ph.preheader ]
  %.022 = phi i32 [ %83, %80 ], [ 1, %.lr.ph.preheader ]
  %58 = add nsw i64 %.neg23, 1
  %59 = add i64 %58, %57
  %60 = getelementptr inbounds [60 x i64], ptr @fib, i64 0, i64 %59
  %61 = load i64, ptr %60, align 8, !tbaa !5
  %.not18 = icmp sgt i64 %56, %61
  br i1 %.not18, label %65, label %62

62:                                               ; preds = %.lr.ph
  %63 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.022)
  %64 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %63, ptr noundef nonnull @.str)
  %.pre = load i64, ptr @k, align 8, !tbaa !5
  %.pre26 = load i64, ptr @n, align 8, !tbaa !5
  br label %80

65:                                               ; preds = %.lr.ph
  %66 = add nsw i32 %.022, 1
  %67 = sext i32 %66 to i64
  %.not19 = icmp slt i64 %57, %67
  br i1 %.not19, label %71, label %68

68:                                               ; preds = %65
  %69 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %66)
  %70 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %69, ptr noundef nonnull @.str)
  br label %71

71:                                               ; preds = %65, %68
  %_ZSt4cout.sink = phi ptr [ %70, %68 ], [ @_ZSt4cout, %65 ]
  %72 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %_ZSt4cout.sink, i32 noundef %.022)
  %73 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %72, ptr noundef nonnull @.str)
  %74 = load i64, ptr @n, align 8, !tbaa !5
  %75 = add i64 %58, %74
  %76 = getelementptr inbounds [60 x i64], ptr @fib, i64 0, i64 %75
  %77 = load i64, ptr %76, align 8, !tbaa !5
  %78 = load i64, ptr @k, align 8, !tbaa !5
  %79 = sub nsw i64 %78, %77
  store i64 %79, ptr @k, align 8, !tbaa !5
  br label %80

80:                                               ; preds = %62, %71
  %81 = phi i64 [ %.pre26, %62 ], [ %74, %71 ]
  %82 = phi i64 [ %.pre, %62 ], [ %79, %71 ]
  %.1 = phi i32 [ %.022, %62 ], [ %66, %71 ]
  %83 = add nsw i32 %.1, 1
  %84 = sext i32 %83 to i64
  %.neg = sub nsw i64 0, %84
  %.not = icmp slt i64 %81, %84
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !9
}

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

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

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

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

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress 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 = { 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 #3 = { "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" }

!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: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass