#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*/ puts(int /*<<< orphan*/);
int /*<<< orphan*/ random_dirpath();
void test_random_dirpath() {
  puts(random_dirpath());
  puts(random_dirpath());
  puts(random_dirpath());
  puts(random_dirpath());
  puts(random_dirpath());
  puts(random_dirpath());
  puts(random_dirpath());
  puts(random_dirpath());
  puts(random_dirpath());
  puts(random_dirpath());
}


x86 assembly (clang, -O0):
<test_random_dirpath>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <random_dirpath@plt>
mov    %eax,%edi
call   1040 <puts@plt>
mov    $0x0,%al
call   1030 <random_dirpath@plt>
mov    %eax,%edi
call   1040 <puts@plt>
mov    $0x0,%al
call   1030 <random_dirpath@plt>
mov    %eax,%edi
call   1040 <puts@plt>
mov    $0x0,%al
call   1030 <random_dirpath@plt>
mov    %eax,%edi
call   1040 <puts@plt>
mov    $0x0,%al
call   1030 <random_dirpath@plt>
mov    %eax,%edi
call   1040 <puts@plt>
mov    $0x0,%al
call   1030 <random_dirpath@plt>
mov    %eax,%edi
call   1040 <puts@plt>
mov    $0x0,%al
call   1030 <random_dirpath@plt>
mov    %eax,%edi
call   1040 <puts@plt>
mov    $0x0,%al
call   1030 <random_dirpath@plt>
mov    %eax,%edi
call   1040 <puts@plt>
mov    $0x0,%al
call   1030 <random_dirpath@plt>
mov    %eax,%edi
call   1040 <puts@plt>
mov    $0x0,%al
call   1030 <random_dirpath@plt>
mov    %eax,%edi
call   1040 <puts@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_random_dirpath>:
push   %rax
xor    %eax,%eax
call   1030 <random_dirpath@plt>
mov    %eax,%edi
call   1040 <puts@plt>
xor    %eax,%eax
call   1030 <random_dirpath@plt>
mov    %eax,%edi
call   1040 <puts@plt>
xor    %eax,%eax
call   1030 <random_dirpath@plt>
mov    %eax,%edi
call   1040 <puts@plt>
xor    %eax,%eax
call   1030 <random_dirpath@plt>
mov    %eax,%edi
call   1040 <puts@plt>
xor    %eax,%eax
call   1030 <random_dirpath@plt>
mov    %eax,%edi
call   1040 <puts@plt>
xor    %eax,%eax
call   1030 <random_dirpath@plt>
mov    %eax,%edi
call   1040 <puts@plt>
xor    %eax,%eax
call   1030 <random_dirpath@plt>
mov    %eax,%edi
call   1040 <puts@plt>
xor    %eax,%eax
call   1030 <random_dirpath@plt>
mov    %eax,%edi
call   1040 <puts@plt>
xor    %eax,%eax
call   1030 <random_dirpath@plt>
mov    %eax,%edi
call   1040 <puts@plt>
xor    %eax,%eax
call   1030 <random_dirpath@plt>
mov    %eax,%edi
pop    %rax
jmp    1040 <puts@plt>

LLVM IR (-O0):
define void @test_random_dirpath() {
%1 = call i32 (...) @random_dirpath()
%2 = call i32 @puts(i32 %1)
%3 = call i32 (...) @random_dirpath()
%4 = call i32 @puts(i32 %3)
%5 = call i32 (...) @random_dirpath()
%6 = call i32 @puts(i32 %5)
%7 = call i32 (...) @random_dirpath()
%8 = call i32 @puts(i32 %7)
%9 = call i32 (...) @random_dirpath()
%10 = call i32 @puts(i32 %9)
%11 = call i32 (...) @random_dirpath()
%12 = call i32 @puts(i32 %11)
%13 = call i32 (...) @random_dirpath()
%14 = call i32 @puts(i32 %13)
%15 = call i32 (...) @random_dirpath()
%16 = call i32 @puts(i32 %15)
%17 = call i32 (...) @random_dirpath()
%18 = call i32 @puts(i32 %17)
%19 = call i32 (...) @random_dirpath()
%20 = call i32 @puts(i32 %19)
ret void
}

LLVM IR (-O2):
define void @test_random_dirpath() {
%1 = tail call i32 (...) @random_dirpath()
%2 = tail call i32 @puts(i32 %1)
%3 = tail call i32 (...) @random_dirpath()
%4 = tail call i32 @puts(i32 %3)
%5 = tail call i32 (...) @random_dirpath()
%6 = tail call i32 @puts(i32 %5)
%7 = tail call i32 (...) @random_dirpath()
%8 = tail call i32 @puts(i32 %7)
%9 = tail call i32 (...) @random_dirpath()
%10 = tail call i32 @puts(i32 %9)
%11 = tail call i32 (...) @random_dirpath()
%12 = tail call i32 @puts(i32 %11)
%13 = tail call i32 (...) @random_dirpath()
%14 = tail call i32 @puts(i32 %13)
%15 = tail call i32 (...) @random_dirpath()
%16 = tail call i32 @puts(i32 %15)
%17 = tail call i32 (...) @random_dirpath()
%18 = tail call i32 @puts(i32 %17)
%19 = tail call i32 (...) @random_dirpath()
%20 = tail call i32 @puts(i32 %19)
ret void
}