#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 libcall1(int, int);
int libcall2(int, int);
int nd_int();
int /*<<< orphan*/ printf(char *, int, int, int, int, int);
int main(int argc, char *argv[]) {
  int r1 = libcall1(nd_int(), nd_int());
  int r2 = libcall2(1, 2);
  int r3 = libcall1(3, 4);
  int r4 = libcall1(5, 6);
  int r5 = libcall1(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   1060 <nd_int@plt>
mov    %eax,-0x28(%rbp)
mov    $0x0,%al
call   1060 <nd_int@plt>
mov    -0x28(%rbp),%edi
mov    %eax,%esi
call   1050 <libcall1@plt>
mov    %eax,-0x14(%rbp)
mov    $0x1,%edi
mov    $0x2,%esi
call   1030 <libcall2@plt>
mov    %eax,-0x18(%rbp)
mov    $0x3,%edi
mov    $0x4,%esi
call   1050 <libcall1@plt>
mov    %eax,-0x1c(%rbp)
mov    $0x5,%edi
mov    $0x6,%esi
call   1050 <libcall1@plt>
mov    %eax,-0x20(%rbp)
mov    $0x7,%edi
mov    $0x8,%esi
call   1050 <libcall1@plt>
mov    %eax,-0x24(%rbp)
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
mov    -0x1c(%rbp),%ecx
mov    -0x20(%rbp),%r8d
mov    -0x24(%rbp),%r9d
lea    0xe2c(%rip),%rdi
call   1040 <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   1060 <nd_int@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1060 <nd_int@plt>
mov    %ebx,%edi
mov    %eax,%esi
call   1050 <libcall1@plt>
mov    %eax,%r14d
mov    $0x1,%edi
mov    $0x2,%esi
call   1030 <libcall2@plt>
mov    %eax,%r15d
mov    $0x3,%edi
mov    $0x4,%esi
call   1050 <libcall1@plt>
mov    %eax,%ebx
mov    $0x5,%edi
mov    $0x6,%esi
call   1050 <libcall1@plt>
mov    %eax,%ebp
mov    $0x7,%edi
mov    $0x8,%esi
call   1050 <libcall1@plt>
lea    0xe53(%rip),%rdi
mov    %r14d,%esi
mov    %r15d,%edx
mov    %ebx,%ecx
mov    %ebp,%r8d
mov    %eax,%r9d
call   1040 <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
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%11 = call i32 (...) @nd_int()
%12 = call i32 (...) @nd_int()
%13 = call i32 @libcall1(i32 %11, i32 %12)
store i32 %13, i32* %6
%14 = call i32 @libcall2(i32 1, i32 2)
store i32 %14, i32* %7
%15 = call i32 @libcall1(i32 3, i32 4)
store i32 %15, i32* %8
%16 = call i32 @libcall1(i32 5, i32 6)
store i32 %16, i32* %9
%17 = call i32 @libcall1(i32 7, i32 8)
store i32 %17, i32* %10
%18 = load i32, i32* %6
%19 = load i32, i32* %7
%20 = load i32, i32* %8
%21 = load i32, i32* %9
%22 = load i32, i32* %10
%23 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32 %18, i32 %19, i32 %20, i32 %21, i32 %22)
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 @libcall1(i32 %3, i32 %4)
%6 = tail call i32 @libcall2(i32 1, i32 2)
%7 = tail call i32 @libcall1(i32 3, i32 4)
%8 = tail call i32 @libcall1(i32 5, i32 6)
%9 = tail call i32 @libcall1(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
}