#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 /*<<< orphan*/ strcpy(char *, char *);
int main() {
  char nomes[3][15];
  strcpy(nomes[0], "palavra");
  strcpy(nomes[1], "palavraozzz");
  strcpy(nomes[2], "palavraozao");
  for (int i = 0; i < 3; i++)
    printf("%-20s\t1\n", nomes[i]);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x40(%rbp),%rdi
lea    0xec6(%rip),%rsi
call   1030 <strcpy@plt>
lea    -0x40(%rbp),%rdi
add    $0xf,%rdi
lea    0xeba(%rip),%rsi
call   1030 <strcpy@plt>
lea    -0x40(%rbp),%rdi
add    $0x1e,%rdi
lea    0xeb2(%rip),%rsi
call   1030 <strcpy@plt>
movl   $0x0,-0x44(%rbp)
cmpl   $0x3,-0x44(%rbp)
jge    11a1 <main+0x81>
movslq -0x44(%rbp),%rax
lea    -0x40(%rbp),%rsi
imul   $0xf,%rax,%rax
add    %rax,%rsi
lea    0xe92(%rip),%rdi
call   1040 <printf@plt>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    116e <main+0x4e>
mov    -0x4(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x38,%rsp
lea    0xece(%rip),%rsi
mov    %rsp,%r15
mov    %r15,%rdi
call   1030 <strcpy@plt>
lea    0xf(%rsp),%r14
lea    0xebf(%rip),%rsi
mov    %r14,%rdi
call   1030 <strcpy@plt>
lea    0x1e(%rsp),%r12
lea    0xeb7(%rip),%rsi
mov    %r12,%rdi
call   1030 <strcpy@plt>
lea    0xeb4(%rip),%rbx
mov    %rbx,%rdi
mov    %r15,%rsi
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [8 x i8] c"palavra\00"
@.str.1 = [12 x i8] c"palavraozzz\00"
@.str.2 = [12 x i8] c"palavraozao\00"
@.str.3 = [9 x i8] c"%-20s\091\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [3 x [15 x i8]]
%3 = alloca i32
store i32 0, i32* %1
%4 = getelementptr inbounds [3 x [15 x i8]], [3 x [15 x i8]]* %2, i64 0, i64 0
%5 = getelementptr inbounds [15 x i8], [15 x i8]* %4, i64 0, i64 0
%6 = call i32 @strcpy(i8* %5, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%7 = getelementptr inbounds [3 x [15 x i8]], [3 x [15 x i8]]* %2, i64 0, i64 1
%8 = getelementptr inbounds [15 x i8], [15 x i8]* %7, i64 0, i64 0
%9 = call i32 @strcpy(i8* %8, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%10 = getelementptr inbounds [3 x [15 x i8]], [3 x [15 x i8]]* %2, i64 0, i64 2
%11 = getelementptr inbounds [15 x i8], [15 x i8]* %10, i64 0, i64 0
%12 = call i32 @strcpy(i8* %11, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %3
br label %13
13: ; preds = %22, %0
%14 = load i32, i32* %3
%15 = icmp slt i32 %14, 3
br i1 %15, label %16, label %25
16: ; preds = %13
%17 = load i32, i32* %3
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [3 x [15 x i8]], [3 x [15 x i8]]* %2, i64 0, i64 %18
%20 = getelementptr inbounds [15 x i8], [15 x i8]* %19, i64 0, i64 0
%21 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8* %20)
br label %22
22: ; preds = %16
%23 = load i32, i32* %3
%24 = add nsw i32 %23, 1
store i32 %24, i32* %3
br label %13
25: ; preds = %13
%26 = load i32, i32* %1
ret i32 %26
}

LLVM IR (-O2):
@.str = [8 x i8] c"palavra\00"
@.str.1 = [12 x i8] c"palavraozzz\00"
@.str.2 = [12 x i8] c"palavraozao\00"
@.str.3 = [9 x i8] c"%-20s\091\0A\00"
define i32 @main() {
%1 = alloca [3 x [15 x i8]]
%2 = getelementptr inbounds [3 x [15 x i8]], [3 x [15 x i8]]* %1, i64 0, i64 0, i64 0
%3 = call i32 @strcpy(i8* %2, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%4 = getelementptr inbounds [3 x [15 x i8]], [3 x [15 x i8]]* %1, i64 0, i64 1, i64 0
%5 = call i32 @strcpy(i8* %4, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%6 = getelementptr inbounds [3 x [15 x i8]], [3 x [15 x i8]]* %1, i64 0, i64 2, i64 0
%7 = call i32 @strcpy(i8* %6, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8* %2)
%9 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8* %4)
%10 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8* %6)
ret i32 0
}