#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*/ printf(char *, char *);
int main(void) {
  char *titles[] = {"libro1", "libro2", "libro3", "libro4"};
  int number_of_best = 3;
  char **best_books[number_of_best];
  best_books[0] = &titles[0];
  best_books[1] = &titles[1];
  best_books[2] = &titles[3];
  printf("%s\n", *best_books[0]);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
movaps 0x2cea(%rip),%xmm0
movaps %xmm0,-0x20(%rbp)
movaps 0x2ccf(%rip),%xmm0
movaps %xmm0,-0x30(%rbp)
movl   $0x3,-0x34(%rbp)
mov    -0x34(%rbp),%eax
mov    %eax,%ecx
mov    %rsp,%rax
mov    %rax,-0x40(%rbp)
lea    0xf(,%rcx,8),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rax
sub    %rdx,%rax
mov    %rax,%rsp
mov    %rcx,-0x48(%rbp)
lea    -0x30(%rbp),%rcx
mov    %rcx,(%rax)
lea    -0x30(%rbp),%rcx
add    $0x8,%rcx
mov    %rcx,0x8(%rax)
lea    -0x30(%rbp),%rcx
add    $0x18,%rcx
mov    %rcx,0x10(%rax)
mov    (%rax),%rax
mov    (%rax),%rsi
lea    0xe8f(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x40(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xeef(%rip),%rdi
lea    0xee1(%rip),%rsi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [7 x i8] c"libro1\00"
@.str.1 = [7 x i8] c"libro2\00"
@.str.2 = [7 x i8] c"libro3\00"
@.str.3 = [7 x i8] c"libro4\00"
@__const.main.titles = [4 x i8*] [i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i32 0, i32 0)]
@.str.4 = [4 x i8] c"%s\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [4 x i8*]
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i64
store i32 0, i32* %1
%6 = bitcast [4 x i8*]* %2 to i8*
store i32 3, i32* %3
%7 = load i32, i32* %3
%8 = zext i32 %7 to i64
%9 = call i8* @llvm.stacksave()
store i8* %9, i8** %4
%10 = alloca i8**, i64 %8
store i64 %8, i64* %5
%11 = getelementptr inbounds [4 x i8*], [4 x i8*]* %2, i64 0, i64 0
%12 = getelementptr inbounds i8**, i8*** %10, i64 0
store i8** %11, i8*** %12
%13 = getelementptr inbounds [4 x i8*], [4 x i8*]* %2, i64 0, i64 1
%14 = getelementptr inbounds i8**, i8*** %10, i64 1
store i8** %13, i8*** %14
%15 = getelementptr inbounds [4 x i8*], [4 x i8*]* %2, i64 0, i64 3
%16 = getelementptr inbounds i8**, i8*** %10, i64 2
store i8** %15, i8*** %16
%17 = getelementptr inbounds i8**, i8*** %10, i64 0
%18 = load i8**, i8*** %17
%19 = load i8*, i8** %18
%20 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %19)
store i32 0, i32* %1
%21 = load i8*, i8** %4
%22 = load i32, i32* %1
ret i32 %22
}

LLVM IR (-O2):
@.str = [7 x i8] c"libro1\00"
@.str.4 = [4 x i8] c"%s\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
ret i32 0
}