#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 libcall(int, int);
int nd_int();
int /*<<< orphan*/ printf(char *, int, int, int, int, int);
int main(int argc, char *argv[]) {
  int x = nd_int();
  int y = nd_int();
  int r1 = libcall(x, y);
  int r2 = libcall(1, 2);
  int r3 = libcall(3, 4);
  int r4 = libcall(5, 6);
  int r5 = libcall(7, 8);
  printf("%d %d %d %d %d\n", r1, r2, r3, r4, r5);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   1050 <nd_int@plt>
mov    %eax,-0x14(%rbp)
mov    $0x0,%al
call   1050 <nd_int@plt>
mov    %eax,-0x18(%rbp)
mov    -0x14(%rbp),%edi
mov    -0x18(%rbp),%esi
call   1040 <libcall@plt>
mov    %eax,-0x1c(%rbp)
mov    $0x1,%edi
mov    $0x2,%esi
call   1040 <libcall@plt>
mov    %eax,-0x20(%rbp)
mov    $0x3,%edi
mov    $0x4,%esi
call   1040 <libcall@plt>
mov    %eax,-0x24(%rbp)
mov    $0x5,%edi
mov    $0x6,%esi
call   1040 <libcall@plt>
mov    %eax,-0x28(%rbp)
mov    $0x7,%edi
mov    $0x8,%esi
call   1040 <libcall@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x1c(%rbp),%esi
mov    -0x20(%rbp),%edx
mov    -0x24(%rbp),%ecx
mov    -0x28(%rbp),%r8d
mov    -0x2c(%rbp),%r9d
lea    0xe38(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
xor    %eax,%eax
call   1050 <nd_int@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1050 <nd_int@plt>
mov    %ebx,%edi
mov    %eax,%esi
call   1040 <libcall@plt>
mov    %eax,%r14d
mov    $0x1,%edi
mov    $0x2,%esi
call   1040 <libcall@plt>
mov    %eax,%r15d
mov    $0x3,%edi
mov    $0x4,%esi
call   1040 <libcall@plt>
mov    %eax,%ebx
mov    $0x5,%edi
mov    $0x6,%esi
call   1040 <libcall@plt>
mov    %eax,%ebp
mov    $0x7,%edi
mov    $0x8,%esi
call   1040 <libcall@plt>
lea    0xe63(%rip),%rdi
mov    %r14d,%esi
mov    %r15d,%edx
mov    %ebx,%ecx
mov    %ebp,%r8d
mov    %eax,%r9d
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [16 x i8] c"%d %d %d %d %d\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%13 = call i32 (...) @nd_int()
store i32 %13, i32* %6
%14 = call i32 (...) @nd_int()
store i32 %14, i32* %7
%15 = load i32, i32* %6
%16 = load i32, i32* %7
%17 = call i32 @libcall(i32 %15, i32 %16)
store i32 %17, i32* %8
%18 = call i32 @libcall(i32 1, i32 2)
store i32 %18, i32* %9
%19 = call i32 @libcall(i32 3, i32 4)
store i32 %19, i32* %10
%20 = call i32 @libcall(i32 5, i32 6)
store i32 %20, i32* %11
%21 = call i32 @libcall(i32 7, i32 8)
store i32 %21, i32* %12
%22 = load i32, i32* %8
%23 = load i32, i32* %9
%24 = load i32, i32* %10
%25 = load i32, i32* %11
%26 = load i32, i32* %12
%27 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32 %22, i32 %23, i32 %24, i32 %25, i32 %26)
ret i32 0
}

LLVM IR (-O2):
@.str = [16 x i8] c"%d %d %d %d %d\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @nd_int()
%4 = tail call i32 (...) @nd_int()
%5 = tail call i32 @libcall(i32 %3, i32 %4)
%6 = tail call i32 @libcall(i32 1, i32 2)
%7 = tail call i32 @libcall(i32 3, i32 4)
%8 = tail call i32 @libcall(i32 5, i32 6)
%9 = tail call i32 @libcall(i32 7, i32 8)
%10 = tail call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32 %5, i32 %6, i32 %7, i32 %8, i32 %9)
ret i32 0
}