#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*/ llfgh(unsigned long long, unsigned long long,
                         int /*<<< orphan*/);
int /*<<< orphan*/ nofllfgh(unsigned long long, unsigned long long,
                            int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, int /*<<< orphan*/);
int /*<<< orphan*/ scanf(char *, unsigned long long *);
void main() {
  unsigned long long int d, e;
loop:
  scanf("%llu", &d);
  scanf("%llu", &e);
  if ((d <= 6 && e <= 2) || e == 0) {
    printf("Answer : %llu\n", llfgh(d, e, 0));
  } else
    printf("Answer : %llu\n", nofllfgh(d, e, 0));
  goto loop;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xeb1(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1050 <scanf@plt>
lea    0xea1(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1050 <scanf@plt>
cmpq   $0x6,-0x8(%rbp)
ja     117e <main+0x3e>
cmpq   $0x2,-0x10(%rbp)
jbe    1189 <main+0x49>
cmpq   $0x0,-0x10(%rbp)
jne    11ab <main+0x6b>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
xor    %edx,%edx
call   1030 <llfgh@plt>
mov    %eax,%esi
lea    0xe64(%rip),%rdi
call   1040 <printf@plt>
jmp    11c8 <main+0x88>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
xor    %edx,%edx
call   1060 <nofllfgh@plt>
mov    %eax,%esi
lea    0xe42(%rip),%rdi
call   1040 <printf@plt>
jmp    1148 <main+0x8>

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x18,%rsp
lea    0xeae(%rip),%rbx
lea    0x10(%rsp),%r14
lea    0x8(%rsp),%r15
lea    0xea2(%rip),%r12
jmp    1181 <main+0x41>
cs nopw 0x0(%rax,%rax,1)
nop
xor    %edx,%edx
call   1030 <llfgh@plt>
mov    %eax,%esi
mov    %r12,%rdi
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1050 <scanf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1050 <scanf@plt>
mov    0x10(%rsp),%rdi
cmp    $0x7,%rdi
setb   %al
mov    0x8(%rsp),%rsi
cmp    $0x3,%rsi
setb   %cl
test   %cl,%al
jne    1170 <main+0x30>
test   %rsi,%rsi
je     1170 <main+0x30>
xor    %edx,%edx
call   1060 <nofllfgh@plt>
jmp    1177 <main+0x37>

LLVM IR (-O0):
@.str = [5 x i8] c"%llu\00"
@.str.1 = [15 x i8] c"Answer : %llu\0A\00"
define void @main() {
%1 = alloca i64
%2 = alloca i64
br label %3
3: ; preds = %24, %0
%4 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i64* %1)
%5 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i64* %2)
%6 = load i64, i64* %1
%7 = icmp ule i64 %6, 6
br i1 %7, label %8, label %11
8: ; preds = %3
%9 = load i64, i64* %2
%10 = icmp ule i64 %9, 2
br i1 %10, label %14, label %11
11: ; preds = %8, %3
%12 = load i64, i64* %2
%13 = icmp eq i64 %12, 0
br i1 %13, label %14, label %19
14: ; preds = %11, %8
%15 = load i64, i64* %1
%16 = load i64, i64* %2
%17 = call i32 @llfgh(i64 %15, i64 %16, i32 0)
%18 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 %17)
br label %24
19: ; preds = %11
%20 = load i64, i64* %1
%21 = load i64, i64* %2
%22 = call i32 @nofllfgh(i64 %20, i64 %21, i32 0)
%23 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 %22)
br label %24
24: ; preds = %19, %14
br label %3
}

LLVM IR (-O2):
@.str = [5 x i8] c"%llu\00"
@.str.1 = [15 x i8] c"Answer : %llu\0A\00"
define void @main() {
%1 = alloca i64
%2 = alloca i64
%3 = bitcast i64* %1 to i8*
%4 = bitcast i64* %2 to i8*
br label %5
5: ; preds = %19, %0
%6 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i64* %1)
%7 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i64* %2)
%8 = load i64, i64* %1
%9 = icmp ult i64 %8, 7
%10 = load i64, i64* %2
%11 = icmp ult i64 %10, 3
%12 = select i1 %9, i1 %11, i1 false
%13 = icmp eq i64 %10, 0
%14 = select i1 %12, i1 true, i1 %13
br i1 %14, label %15, label %17
15: ; preds = %5
%16 = call i32 @llfgh(i64 %8, i64 %10, i32 0)
br label %19
17: ; preds = %5
%18 = call i32 @nofllfgh(i64 %8, i64 %10, i32 0)
br label %19
19: ; preds = %17, %15
%20 = phi i32 [ %18, %17 ], [ %16, %15 ]
%21 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 %20)
br label %5
}