#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*/ OEISA073916(size_t);
int /*<<< orphan*/ printf(char *, size_t, ...);
int /*<<< orphan*/ sieve();
int main() {
  size_t n;
  sieve();
  for (n = 1; n <= 15; n++) {
    if (n == 13) {
      printf("A073916(%lu) = One more bit needed to represent result.\n", n);
    } else {
      printf("A073916(%lu) = %llu\n", n, OEISA073916(n));
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1040 <sieve@plt>
movq   $0x1,-0x10(%rbp)
cmpq   $0xf,-0x10(%rbp)
ja     11b6 <main+0x86>
cmpq   $0xd,-0x10(%rbp)
jne    117b <main+0x4b>
mov    -0x10(%rbp),%rsi
lea    0xe91(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11a0 <main+0x70>
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
call   1050 <OEISA073916@plt>
mov    -0x18(%rbp),%rsi
mov    %eax,%edx
lea    0xea0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11a5 <main+0x75>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    114e <main+0x1e>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
xor    %eax,%eax
call   1040 <sieve@plt>
mov    $0x1,%ebx
lea    0xeb8(%rip),%r14
lea    0xeea(%rip),%r15
jmp    1181 <main+0x51>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rdi
call   1050 <OEISA073916@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1030 <printf@plt>
add    $0x1,%rbx
cmp    $0x10,%rbx
je     1198 <main+0x68>
cmp    $0xd,%rbx
jne    1160 <main+0x30>
mov    $0xd,%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
jmp    1177 <main+0x47>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [57 x i8] c"A073916(%lu) = One more bit needed to represent result.\0A\00"
@.str.1 = [21 x i8] c"A073916(%lu) = %llu\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i64
store i32 0, i32* %1
%3 = call i32 (...) @sieve()
store i64 1, i64* %2
br label %4
4: ; preds = %19, %0
%5 = load i64, i64* %2
%6 = icmp ule i64 %5, 15
br i1 %6, label %7, label %22
7: ; preds = %4
%8 = load i64, i64* %2
%9 = icmp eq i64 %8, 13
br i1 %9, label %10, label %13
10: ; preds = %7
%11 = load i64, i64* %2
%12 = call i32 (i8*, i64, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str, i64 0, i64 0), i64 %11)
br label %18
13: ; preds = %7
%14 = load i64, i64* %2
%15 = load i64, i64* %2
%16 = call i32 @OEISA073916(i64 %15)
%17 = call i32 (i8*, i64, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i64 %14, i32 %16)
br label %18
18: ; preds = %13, %10
br label %19
19: ; preds = %18
%20 = load i64, i64* %2
%21 = add i64 %20, 1
store i64 %21, i64* %2
br label %4
22: ; preds = %4
ret i32 0
}

LLVM IR (-O2):
@.str = [57 x i8] c"A073916(%lu) = One more bit needed to represent result.\0A\00"
@.str.1 = [21 x i8] c"A073916(%lu) = %llu\0A\00"
define i32 @main() {
%1 = tail call i32 (...) @sieve()
br label %2
2: ; preds = %0, %10
%3 = phi i64 [ 1, %0 ], [ %11, %10 ]
%4 = icmp eq i64 %3, 13
br i1 %4, label %5, label %7
5: ; preds = %2
%6 = tail call i32 (i8*, i64, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str, i64 0, i64 0), i64 13)
br label %10
7: ; preds = %2
%8 = tail call i32 @OEISA073916(i64 %3)
%9 = tail call i32 (i8*, i64, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i64 %3, i32 %8)
br label %10
10: ; preds = %5, %7
%11 = add nuw nsw i64 %3, 1
%12 = icmp eq i64 %11, 16
br i1 %12, label %13, label %2
13: ; preds = %10
ret i32 0
}