#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 */
char *a2(int);
char *a3(int);
int /*<<< orphan*/ access(char *, int);
char *am(int);
char *b2(int);
char *b3(int);
char *bm(int);
char *c2(int);
char *c3(int);
char *cm(int);
char *d2(int);
char *d3(int);
char *dm(int);
int main(void) {
  char *p;
  p = am(11);
  access(p, 11);
  p = a2(10);
  access(p, 10);
  p = a3(5);
  access(p, 5);
  p = a3(4);
  access(p, 5);
  p = bm(10);
  access(p, 10);
  p = b2(9);
  access(p, 9);
  p = b3(5);
  p = b3(3);
  p = cm(9);
  access(p, 9);
  p = c2(8);
  p = c3(4);
  p = c3(3);
  p = dm(8);
  p = d2(7);
  p = d3(4);
  p = d3(2);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0xb,%edi
call   1090 <am@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0xb,%esi
call   10e0 <access@plt>
mov    $0xa,%edi
call   10f0 <a2@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0xa,%esi
call   10e0 <access@plt>
mov    $0x5,%edi
call   1080 <a3@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0x5,%esi
call   10e0 <access@plt>
mov    $0x4,%edi
call   1080 <a3@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0x5,%esi
call   10e0 <access@plt>
mov    $0xa,%edi
call   1040 <bm@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0xa,%esi
call   10e0 <access@plt>
mov    $0x9,%edi
call   10a0 <b2@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0x9,%esi
call   10e0 <access@plt>
mov    $0x5,%edi
call   1030 <b3@plt>
mov    %rax,-0x8(%rbp)
mov    $0x3,%edi
call   1030 <b3@plt>
mov    %rax,-0x8(%rbp)
mov    $0x9,%edi
call   10c0 <cm@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0x9,%esi
call   10e0 <access@plt>
mov    $0x8,%edi
call   1050 <c2@plt>
mov    %rax,-0x8(%rbp)
mov    $0x4,%edi
call   10b0 <c3@plt>
mov    %rax,-0x8(%rbp)
mov    $0x3,%edi
call   10b0 <c3@plt>
mov    %rax,-0x8(%rbp)
mov    $0x8,%edi
call   1070 <dm@plt>
mov    %rax,-0x8(%rbp)
mov    $0x7,%edi
call   10d0 <d2@plt>
mov    %rax,-0x8(%rbp)
mov    $0x4,%edi
call   1060 <d3@plt>
mov    %rax,-0x8(%rbp)
mov    $0x2,%edi
call   1060 <d3@plt>
mov    %rax,-0x8(%rbp)
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0xb,%edi
call   1090 <am@plt>
mov    %rax,%rdi
mov    $0xb,%esi
call   10e0 <access@plt>
mov    $0xa,%edi
call   10f0 <a2@plt>
mov    %rax,%rdi
mov    $0xa,%esi
call   10e0 <access@plt>
mov    $0x5,%edi
call   1080 <a3@plt>
mov    %rax,%rdi
mov    $0x5,%esi
call   10e0 <access@plt>
mov    $0x4,%edi
call   1080 <a3@plt>
mov    %rax,%rdi
mov    $0x5,%esi
call   10e0 <access@plt>
mov    $0xa,%edi
call   1040 <bm@plt>
mov    %rax,%rdi
mov    $0xa,%esi
call   10e0 <access@plt>
mov    $0x9,%edi
call   10a0 <b2@plt>
mov    %rax,%rdi
mov    $0x9,%esi
call   10e0 <access@plt>
mov    $0x5,%edi
call   1030 <b3@plt>
mov    $0x3,%edi
call   1030 <b3@plt>
mov    $0x9,%edi
call   10c0 <cm@plt>
mov    %rax,%rdi
mov    $0x9,%esi
call   10e0 <access@plt>
mov    $0x8,%edi
call   1050 <c2@plt>
mov    $0x4,%edi
call   10b0 <c3@plt>
mov    $0x3,%edi
call   10b0 <c3@plt>
mov    $0x8,%edi
call   1070 <dm@plt>
mov    $0x7,%edi
call   10d0 <d2@plt>
mov    $0x4,%edi
call   1060 <d3@plt>
mov    $0x2,%edi
call   1060 <d3@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i8*
%2 = call i8* @am(i32 11)
store i8* %2, i8** %1
%3 = load i8*, i8** %1
%4 = call i32 @access(i8* %3, i32 11)
%5 = call i8* @a2(i32 10)
store i8* %5, i8** %1
%6 = load i8*, i8** %1
%7 = call i32 @access(i8* %6, i32 10)
%8 = call i8* @a3(i32 5)
store i8* %8, i8** %1
%9 = load i8*, i8** %1
%10 = call i32 @access(i8* %9, i32 5)
%11 = call i8* @a3(i32 4)
store i8* %11, i8** %1
%12 = load i8*, i8** %1
%13 = call i32 @access(i8* %12, i32 5)
%14 = call i8* @bm(i32 10)
store i8* %14, i8** %1
%15 = load i8*, i8** %1
%16 = call i32 @access(i8* %15, i32 10)
%17 = call i8* @b2(i32 9)
store i8* %17, i8** %1
%18 = load i8*, i8** %1
%19 = call i32 @access(i8* %18, i32 9)
%20 = call i8* @b3(i32 5)
store i8* %20, i8** %1
%21 = call i8* @b3(i32 3)
store i8* %21, i8** %1
%22 = call i8* @cm(i32 9)
store i8* %22, i8** %1
%23 = load i8*, i8** %1
%24 = call i32 @access(i8* %23, i32 9)
%25 = call i8* @c2(i32 8)
store i8* %25, i8** %1
%26 = call i8* @c3(i32 4)
store i8* %26, i8** %1
%27 = call i8* @c3(i32 3)
store i8* %27, i8** %1
%28 = call i8* @dm(i32 8)
store i8* %28, i8** %1
%29 = call i8* @d2(i32 7)
store i8* %29, i8** %1
%30 = call i8* @d3(i32 4)
store i8* %30, i8** %1
%31 = call i8* @d3(i32 2)
store i8* %31, i8** %1
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i8* @am(i32 11)
%2 = tail call i32 @access(i8* %1, i32 11)
%3 = tail call i8* @a2(i32 10)
%4 = tail call i32 @access(i8* %3, i32 10)
%5 = tail call i8* @a3(i32 5)
%6 = tail call i32 @access(i8* %5, i32 5)
%7 = tail call i8* @a3(i32 4)
%8 = tail call i32 @access(i8* %7, i32 5)
%9 = tail call i8* @bm(i32 10)
%10 = tail call i32 @access(i8* %9, i32 10)
%11 = tail call i8* @b2(i32 9)
%12 = tail call i32 @access(i8* %11, i32 9)
%13 = tail call i8* @b3(i32 5)
%14 = tail call i8* @b3(i32 3)
%15 = tail call i8* @cm(i32 9)
%16 = tail call i32 @access(i8* %15, i32 9)
%17 = tail call i8* @c2(i32 8)
%18 = tail call i8* @c3(i32 4)
%19 = tail call i8* @c3(i32 3)
%20 = tail call i8* @dm(i32 8)
%21 = tail call i8* @d2(i32 7)
%22 = tail call i8* @d3(i32 4)
%23 = tail call i8* @d3(i32 2)
ret i32 0
}