; LLVM IR from lzyrapx/Competitive-Programming :: HDUOJ (2184（汉诺塔）（递归）)

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

@a = external dso_local global [64 x i64], align 16
@x = external dso_local global [64 x i64], align 16
@y = external dso_local global [64 x i64], align 16
@z = external dso_local global [64 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 [6 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5hanoixxPxS_S_(i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) #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 norecurse uwtable
define dso_local noundef i32 @main() #2 {
  %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 i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i64 1, ptr @a, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 1, ptr %5, align 4, !tbaa !9
  br label %9

9:                                                ; preds = %23, %0
  %10 = load i32, ptr %5, align 4, !tbaa !9
  %11 = icmp sle i32 %10, 63
  br i1 %11, label %13, label %12

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

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

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

26:                                               ; preds = %12
  %27 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %4)
  br label %28

28:                                               ; preds = %95, %26
  %29 = load i32, ptr %4, align 4, !tbaa !9
  %30 = add nsw i32 %29, -1
  store i32 %30, ptr %4, align 4, !tbaa !9
  %31 = icmp ne i32 %29, 0
  br i1 %31, label %32, label %97

32:                                               ; preds = %28
  store i64 1, ptr @z, align 16, !tbaa !5
  store i64 1, ptr @y, align 16, !tbaa !5
  store i64 1, ptr @x, align 16, !tbaa !5
  %33 = 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)
  %34 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %33, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %35 = load i64, ptr %2, align 8, !tbaa !5
  %36 = load i64, ptr %3, align 8, !tbaa !5
  call void @_Z5hanoixxPxS_S_(i64 noundef %35, i64 noundef %36, ptr noundef @x, ptr noundef @y, ptr noundef @z)
  %37 = load i64, ptr @x, align 16, !tbaa !5
  %38 = sub nsw i64 %37, 1
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %38)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 1, ptr %6, align 4, !tbaa !9
  br label %40

40:                                               ; preds = %52, %32
  %41 = load i32, ptr %6, align 4, !tbaa !9
  %42 = sext i32 %41 to i64
  %43 = load i64, ptr @x, align 16, !tbaa !5
  %44 = icmp slt i64 %42, %43
  br i1 %44, label %46, label %45

45:                                               ; preds = %40
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %55

46:                                               ; preds = %40
  %47 = load i32, ptr %6, align 4, !tbaa !9
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [64 x i64], ptr @x, i64 0, i64 %48
  %50 = load i64, ptr %49, align 8, !tbaa !5
  %51 = call i32 (ptr, ...) @printf(ptr noundef @.str, i64 noundef %50)
  br label %52

52:                                               ; preds = %46
  %53 = load i32, ptr %6, align 4, !tbaa !9
  %54 = add nsw i32 %53, 1
  store i32 %54, ptr %6, align 4, !tbaa !9
  br label %40, !llvm.loop !13

55:                                               ; preds = %45
  %56 = 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_)
  %57 = load i64, ptr @y, align 16, !tbaa !5
  %58 = sub nsw i64 %57, 1
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %58)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 1, ptr %7, align 4, !tbaa !9
  br label %60

60:                                               ; preds = %72, %55
  %61 = load i32, ptr %7, align 4, !tbaa !9
  %62 = sext i32 %61 to i64
  %63 = load i64, ptr @y, align 16, !tbaa !5
  %64 = icmp slt i64 %62, %63
  br i1 %64, label %66, label %65

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

66:                                               ; preds = %60
  %67 = load i32, ptr %7, align 4, !tbaa !9
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [64 x i64], ptr @y, i64 0, i64 %68
  %70 = load i64, ptr %69, align 8, !tbaa !5
  %71 = call i32 (ptr, ...) @printf(ptr noundef @.str, i64 noundef %70)
  br label %72

72:                                               ; preds = %66
  %73 = load i32, ptr %7, align 4, !tbaa !9
  %74 = add nsw i32 %73, 1
  store i32 %74, ptr %7, align 4, !tbaa !9
  br label %60, !llvm.loop !14

75:                                               ; preds = %65
  %76 = 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_)
  %77 = load i64, ptr @z, align 16, !tbaa !5
  %78 = sub nsw i64 %77, 1
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %78)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 1, ptr %8, align 4, !tbaa !9
  br label %80

80:                                               ; preds = %92, %75
  %81 = load i32, ptr %8, align 4, !tbaa !9
  %82 = sext i32 %81 to i64
  %83 = load i64, ptr @z, align 16, !tbaa !5
  %84 = icmp slt i64 %82, %83
  br i1 %84, label %86, label %85

85:                                               ; preds = %80
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %95

86:                                               ; preds = %80
  %87 = load i32, ptr %8, align 4, !tbaa !9
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [64 x i64], ptr @z, i64 0, i64 %88
  %90 = load i64, ptr %89, align 8, !tbaa !5
  %91 = call i32 (ptr, ...) @printf(ptr noundef @.str, i64 noundef %90)
  br label %92

92:                                               ; preds = %86
  %93 = load i32, ptr %8, align 4, !tbaa !9
  %94 = add nsw i32 %93, 1
  store i32 %94, ptr %8, align 4, !tbaa !9
  br label %80, !llvm.loop !15

95:                                               ; preds = %85
  %96 = 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_)
  br label %28, !llvm.loop !16

97:                                               ; preds = %28
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #5
  ret i32 0
}

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

; 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

declare i32 @printf(ptr noundef, ...) #3

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

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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" }
attributes #4 = { 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 #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}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !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" }

@a = external dso_local local_unnamed_addr global [64 x i64], align 16
@x = external dso_local global [64 x i64], align 16
@y = external dso_local global [64 x i64], align 16
@z = external dso_local global [64 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 [6 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5hanoixxPxS_S_(i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  store i64 1, ptr @a, align 16, !tbaa !5
  store i64 2, ptr getelementptr inbounds (i8, ptr @a, i64 8), align 8, !tbaa !5
  store i64 4, ptr getelementptr inbounds (i8, ptr @a, i64 16), align 16, !tbaa !5
  store i64 8, ptr getelementptr inbounds (i8, ptr @a, i64 24), align 8, !tbaa !5
  store i64 16, ptr getelementptr inbounds (i8, ptr @a, i64 32), align 16, !tbaa !5
  store i64 32, ptr getelementptr inbounds (i8, ptr @a, i64 40), align 8, !tbaa !5
  store i64 64, ptr getelementptr inbounds (i8, ptr @a, i64 48), align 16, !tbaa !5
  store i64 128, ptr getelementptr inbounds (i8, ptr @a, i64 56), align 8, !tbaa !5
  store i64 256, ptr getelementptr inbounds (i8, ptr @a, i64 64), align 16, !tbaa !5
  store i64 512, ptr getelementptr inbounds (i8, ptr @a, i64 72), align 8, !tbaa !5
  store i64 1024, ptr getelementptr inbounds (i8, ptr @a, i64 80), align 16, !tbaa !5
  store i64 2048, ptr getelementptr inbounds (i8, ptr @a, i64 88), align 8, !tbaa !5
  store i64 4096, ptr getelementptr inbounds (i8, ptr @a, i64 96), align 16, !tbaa !5
  store i64 8192, ptr getelementptr inbounds (i8, ptr @a, i64 104), align 8, !tbaa !5
  store i64 16384, ptr getelementptr inbounds (i8, ptr @a, i64 112), align 16, !tbaa !5
  store i64 32768, ptr getelementptr inbounds (i8, ptr @a, i64 120), align 8, !tbaa !5
  store i64 65536, ptr getelementptr inbounds (i8, ptr @a, i64 128), align 16, !tbaa !5
  store i64 131072, ptr getelementptr inbounds (i8, ptr @a, i64 136), align 8, !tbaa !5
  store i64 262144, ptr getelementptr inbounds (i8, ptr @a, i64 144), align 16, !tbaa !5
  store i64 524288, ptr getelementptr inbounds (i8, ptr @a, i64 152), align 8, !tbaa !5
  store i64 1048576, ptr getelementptr inbounds (i8, ptr @a, i64 160), align 16, !tbaa !5
  store i64 2097152, ptr getelementptr inbounds (i8, ptr @a, i64 168), align 8, !tbaa !5
  store i64 4194304, ptr getelementptr inbounds (i8, ptr @a, i64 176), align 16, !tbaa !5
  store i64 8388608, ptr getelementptr inbounds (i8, ptr @a, i64 184), align 8, !tbaa !5
  store i64 16777216, ptr getelementptr inbounds (i8, ptr @a, i64 192), align 16, !tbaa !5
  store i64 33554432, ptr getelementptr inbounds (i8, ptr @a, i64 200), align 8, !tbaa !5
  store i64 67108864, ptr getelementptr inbounds (i8, ptr @a, i64 208), align 16, !tbaa !5
  store i64 134217728, ptr getelementptr inbounds (i8, ptr @a, i64 216), align 8, !tbaa !5
  store i64 268435456, ptr getelementptr inbounds (i8, ptr @a, i64 224), align 16, !tbaa !5
  store i64 536870912, ptr getelementptr inbounds (i8, ptr @a, i64 232), align 8, !tbaa !5
  store i64 1073741824, ptr getelementptr inbounds (i8, ptr @a, i64 240), align 16, !tbaa !5
  store i64 2147483648, ptr getelementptr inbounds (i8, ptr @a, i64 248), align 8, !tbaa !5
  store i64 4294967296, ptr getelementptr inbounds (i8, ptr @a, i64 256), align 16, !tbaa !5
  store i64 8589934592, ptr getelementptr inbounds (i8, ptr @a, i64 264), align 8, !tbaa !5
  store i64 17179869184, ptr getelementptr inbounds (i8, ptr @a, i64 272), align 16, !tbaa !5
  store i64 34359738368, ptr getelementptr inbounds (i8, ptr @a, i64 280), align 8, !tbaa !5
  store i64 68719476736, ptr getelementptr inbounds (i8, ptr @a, i64 288), align 16, !tbaa !5
  store i64 137438953472, ptr getelementptr inbounds (i8, ptr @a, i64 296), align 8, !tbaa !5
  store i64 274877906944, ptr getelementptr inbounds (i8, ptr @a, i64 304), align 16, !tbaa !5
  store i64 549755813888, ptr getelementptr inbounds (i8, ptr @a, i64 312), align 8, !tbaa !5
  store i64 1099511627776, ptr getelementptr inbounds (i8, ptr @a, i64 320), align 16, !tbaa !5
  store i64 2199023255552, ptr getelementptr inbounds (i8, ptr @a, i64 328), align 8, !tbaa !5
  store i64 4398046511104, ptr getelementptr inbounds (i8, ptr @a, i64 336), align 16, !tbaa !5
  store i64 8796093022208, ptr getelementptr inbounds (i8, ptr @a, i64 344), align 8, !tbaa !5
  store i64 17592186044416, ptr getelementptr inbounds (i8, ptr @a, i64 352), align 16, !tbaa !5
  store i64 35184372088832, ptr getelementptr inbounds (i8, ptr @a, i64 360), align 8, !tbaa !5
  store i64 70368744177664, ptr getelementptr inbounds (i8, ptr @a, i64 368), align 16, !tbaa !5
  store i64 140737488355328, ptr getelementptr inbounds (i8, ptr @a, i64 376), align 8, !tbaa !5
  store i64 281474976710656, ptr getelementptr inbounds (i8, ptr @a, i64 384), align 16, !tbaa !5
  store i64 562949953421312, ptr getelementptr inbounds (i8, ptr @a, i64 392), align 8, !tbaa !5
  store i64 1125899906842624, ptr getelementptr inbounds (i8, ptr @a, i64 400), align 16, !tbaa !5
  store i64 2251799813685248, ptr getelementptr inbounds (i8, ptr @a, i64 408), align 8, !tbaa !5
  store i64 4503599627370496, ptr getelementptr inbounds (i8, ptr @a, i64 416), align 16, !tbaa !5
  store i64 9007199254740992, ptr getelementptr inbounds (i8, ptr @a, i64 424), align 8, !tbaa !5
  store i64 18014398509481984, ptr getelementptr inbounds (i8, ptr @a, i64 432), align 16, !tbaa !5
  store i64 36028797018963968, ptr getelementptr inbounds (i8, ptr @a, i64 440), align 8, !tbaa !5
  store i64 72057594037927936, ptr getelementptr inbounds (i8, ptr @a, i64 448), align 16, !tbaa !5
  store i64 144115188075855872, ptr getelementptr inbounds (i8, ptr @a, i64 456), align 8, !tbaa !5
  store i64 288230376151711744, ptr getelementptr inbounds (i8, ptr @a, i64 464), align 16, !tbaa !5
  store i64 576460752303423488, ptr getelementptr inbounds (i8, ptr @a, i64 472), align 8, !tbaa !5
  store i64 1152921504606846976, ptr getelementptr inbounds (i8, ptr @a, i64 480), align 16, !tbaa !5
  store i64 2305843009213693952, ptr getelementptr inbounds (i8, ptr @a, i64 488), align 8, !tbaa !5
  store i64 4611686018427387904, ptr getelementptr inbounds (i8, ptr @a, i64 496), align 16, !tbaa !5
  store i64 -9223372036854775808, ptr getelementptr inbounds (i8, ptr @a, i64 504), align 8, !tbaa !5
  %4 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %5 = load i32, ptr %3, align 4, !tbaa !9
  %6 = add nsw i32 %5, -1
  store i32 %6, ptr %3, align 4, !tbaa !9
  %.not29 = icmp eq i32 %5, 0
  br i1 %.not29, label %._crit_edge32, label %.lr.ph31

.lr.ph31:                                         ; preds = %0, %._crit_edge28
  store i64 1, ptr @z, align 16, !tbaa !5
  store i64 1, ptr @y, align 16, !tbaa !5
  store i64 1, ptr @x, align 16, !tbaa !5
  %7 = 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)
  %8 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %9 = load i64, ptr %1, align 8, !tbaa !5
  %10 = load i64, ptr %2, align 8, !tbaa !5
  call void @_Z5hanoixxPxS_S_(i64 noundef %9, i64 noundef %10, ptr noundef nonnull @x, ptr noundef nonnull @y, ptr noundef nonnull @z)
  %11 = load i64, ptr @x, align 16, !tbaa !5
  %12 = add nsw i64 %11, -1
  %13 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %12)
  %14 = load i64, ptr @x, align 16, !tbaa !5
  %15 = icmp sgt i64 %14, 1
  br i1 %15, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph31
  %16 = 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_)
  %17 = load i64, ptr @y, align 16, !tbaa !5
  %18 = add nsw i64 %17, -1
  %19 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %18)
  %20 = load i64, ptr @y, align 16, !tbaa !5
  %21 = icmp sgt i64 %20, 1
  br i1 %21, label %.lr.ph23, label %._crit_edge24

.lr.ph:                                           ; preds = %.lr.ph31, %.lr.ph
  %indvars.iv34 = phi i64 [ %indvars.iv.next35, %.lr.ph ], [ 1, %.lr.ph31 ]
  %22 = getelementptr inbounds [64 x i64], ptr @x, i64 0, i64 %indvars.iv34
  %23 = load i64, ptr %22, align 8, !tbaa !5
  %24 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i64 noundef %23)
  %indvars.iv.next35 = add nuw nsw i64 %indvars.iv34, 1
  %25 = load i64, ptr @x, align 16, !tbaa !5
  %26 = icmp sgt i64 %25, %indvars.iv.next35
  br i1 %26, label %.lr.ph, label %._crit_edge, !llvm.loop !11

._crit_edge24:                                    ; preds = %.lr.ph23, %._crit_edge
  %27 = 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_)
  %28 = load i64, ptr @z, align 16, !tbaa !5
  %29 = add nsw i64 %28, -1
  %30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %29)
  %31 = load i64, ptr @z, align 16, !tbaa !5
  %32 = icmp sgt i64 %31, 1
  br i1 %32, label %.lr.ph27, label %._crit_edge28

.lr.ph23:                                         ; preds = %._crit_edge, %.lr.ph23
  %indvars.iv37 = phi i64 [ %indvars.iv.next38, %.lr.ph23 ], [ 1, %._crit_edge ]
  %33 = getelementptr inbounds [64 x i64], ptr @y, i64 0, i64 %indvars.iv37
  %34 = load i64, ptr %33, align 8, !tbaa !5
  %35 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i64 noundef %34)
  %indvars.iv.next38 = add nuw nsw i64 %indvars.iv37, 1
  %36 = load i64, ptr @y, align 16, !tbaa !5
  %37 = icmp sgt i64 %36, %indvars.iv.next38
  br i1 %37, label %.lr.ph23, label %._crit_edge24, !llvm.loop !13

._crit_edge28:                                    ; preds = %.lr.ph27, %._crit_edge24
  %38 = 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_)
  %39 = load i32, ptr %3, align 4, !tbaa !9
  %40 = add nsw i32 %39, -1
  store i32 %40, ptr %3, align 4, !tbaa !9
  %.not = icmp eq i32 %39, 0
  br i1 %.not, label %._crit_edge32, label %.lr.ph31, !llvm.loop !14

.lr.ph27:                                         ; preds = %._crit_edge24, %.lr.ph27
  %indvars.iv40 = phi i64 [ %indvars.iv.next41, %.lr.ph27 ], [ 1, %._crit_edge24 ]
  %41 = getelementptr inbounds [64 x i64], ptr @z, i64 0, i64 %indvars.iv40
  %42 = load i64, ptr %41, align 8, !tbaa !5
  %43 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i64 noundef %42)
  %indvars.iv.next41 = add nuw nsw i64 %indvars.iv40, 1
  %44 = load i64, ptr @z, align 16, !tbaa !5
  %45 = icmp sgt i64 %44, %indvars.iv.next41
  br i1 %45, label %.lr.ph27, label %._crit_edge28, !llvm.loop !15

._crit_edge32:                                    ; preds = %._crit_edge28, %0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  ret i32 0
}

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

; 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: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #4

; 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)) #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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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" }
attributes #4 = { 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 #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 = { 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}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass