#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ countNumCall(int, int, unsigned long long **);
int /*<<< orphan*/ printf(char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ scanf(char *, int *, int *);
int main(void) {
  unsigned long long int memoTable[100][100] = {{0}};
  int n, k, caseId;
  caseId = 1;
  while (1) {
    scanf("%d %d", &n, &k);
    if (n > 60)
      break;
    printf("Case %d: %llu\n", caseId, countNumCall(n, k, memoTable));
    caseId++;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x138a0,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x13890(%rbp),%rdi
xor    %esi,%esi
mov    $0x13880,%edx
call   1040 <memset@plt>
movl   $0x1,-0x1389c(%rbp)
lea    0xe8a(%rip),%rdi
lea    -0x13894(%rbp),%rsi
lea    -0x13898(%rbp),%rdx
call   1060 <scanf@plt>
cmpl   $0x3c,-0x13894(%rbp)
jle    119b <main+0x5b>
jmp    11e7 <main+0xa7>
mov    -0x1389c(%rbp),%eax
mov    %eax,-0x138a0(%rbp)
mov    -0x13894(%rbp),%edi
mov    -0x13898(%rbp),%esi
lea    -0x13890(%rbp),%rdx
call   1050 <countNumCall@plt>
mov    -0x138a0(%rbp),%esi
mov    %eax,%edx
lea    0xe38(%rip),%rdi
call   1030 <printf@plt>
mov    -0x1389c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1389c(%rbp)
jmp    116f <main+0x2f>
xor    %eax,%eax
add    $0x138a0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x13898,%rsp
lea    0x10(%rsp),%rdi
mov    $0x13880,%edx
xor    %esi,%esi
call   1040 <memset@plt>
lea    0xe97(%rip),%rdi
lea    0x8(%rsp),%rsi
lea    0xc(%rsp),%rdx
call   1060 <scanf@plt>
mov    0x8(%rsp),%edi
cmp    $0x3c,%edi
jg     11e2 <main+0xa2>
mov    $0x1,%ebx
lea    0x10(%rsp),%r14
lea    0xe74(%rip),%r15
lea    0xe67(%rip),%r12
lea    0x8(%rsp),%r13
lea    0xc(%rsp),%rbp
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    0xc(%rsp),%esi
mov    %r14,%rdx
call   1050 <countNumCall@plt>
mov    %r15,%rdi
mov    %ebx,%esi
mov    %eax,%edx
call   1030 <printf@plt>
add    $0x1,%ebx
mov    %r12,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
call   1060 <scanf@plt>
mov    0x8(%rsp),%edi
cmp    $0x3d,%edi
jl     11b0 <main+0x70>
xor    %eax,%eax
add    $0x13898,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [6 x i8] c"%d %d\00"
@.str.1 = [15 x i8] c"Case %d: %llu\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [100 x [100 x i64]]
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 0, i32* %1
%6 = bitcast [100 x [100 x i64]]* %2 to i8*
store i32 1, i32* %5
br label %7
7: ; preds = %0, %12
%8 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32* %3, i32* %4)
%9 = load i32, i32* %3
%10 = icmp sgt i32 %9, 60
br i1 %10, label %11, label %12
11: ; preds = %7
br label %22
12: ; preds = %7
%13 = load i32, i32* %5
%14 = load i32, i32* %3
%15 = load i32, i32* %4
%16 = getelementptr inbounds [100 x [100 x i64]], [100 x [100 x i64]]* %2, i64 0, i64 0
%17 = bitcast [100 x i64]* %16 to i64**
%18 = call i32 @countNumCall(i32 %14, i32 %15, i64** %17)
%19 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 %13, i32 %18)
%20 = load i32, i32* %5
%21 = add nsw i32 %20, 1
store i32 %21, i32* %5
br label %7
22: ; preds = %11
ret i32 0
}

LLVM IR (-O2):
@.str = [6 x i8] c"%d %d\00"
@.str.1 = [15 x i8] c"Case %d: %llu\0A\00"
define i32 @main() {
%1 = alloca [100 x [100 x i64]]
%2 = alloca i32
%3 = alloca i32
%4 = bitcast [100 x [100 x i64]]* %1 to i8*
%5 = bitcast i32* %2 to i8*
%6 = bitcast i32* %3 to i8*
%7 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32* %2, i32* %3)
%8 = load i32, i32* %2
%9 = icmp sgt i32 %8, 60
br i1 %9, label %22, label %10
10: ; preds = %0
%11 = bitcast [100 x [100 x i64]]* %1 to i64**
br label %12
12: ; preds = %10, %12
%13 = phi i32 [ %8, %10 ], [ %20, %12 ]
%14 = phi i32 [ 1, %10 ], [ %18, %12 ]
%15 = load i32, i32* %3
%16 = call i32 @countNumCall(i32 %13, i32 %15, i64** %11)
%17 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 %14, i32 %16)
%18 = add nuw nsw i32 %14, 1
%19 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32* %2, i32* %3)
%20 = load i32, i32* %2
%21 = icmp sgt i32 %20, 60
br i1 %21, label %22, label %12
22: ; preds = %12, %0
ret i32 0
}