#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 */
typedef int /*<<< orphan*/ Elf64_Xword;
typedef int /*<<< orphan*/ Elf64_Word;
typedef int /*<<< orphan*/ Elf64_Versym;
typedef int /*<<< orphan*/ Elf64_Sxword;
typedef int /*<<< orphan*/ Elf64_Sword;
typedef int /*<<< orphan*/ Elf64_Section;
typedef int /*<<< orphan*/ Elf64_Off;
typedef int /*<<< orphan*/ Elf64_Half;
typedef int /*<<< orphan*/ Elf64_Ehdr;
typedef int /*<<< orphan*/ Elf64_Addr;
typedef int /*<<< orphan*/ Elf32_Xword;
typedef int /*<<< orphan*/ Elf32_Word;
typedef int /*<<< orphan*/ Elf32_Versym;
typedef int /*<<< orphan*/ Elf32_Sxword;
typedef int /*<<< orphan*/ Elf32_Sword;
typedef int /*<<< orphan*/ Elf32_Section;
typedef int /*<<< orphan*/ Elf32_Off;
typedef int /*<<< orphan*/ Elf32_Half;
typedef int /*<<< orphan*/ Elf32_Ehdr;
typedef int /*<<< orphan*/ Elf32_Addr;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
int main() {
  printf("32 bits --------------------------\n\n");
  printf("Tamanho do Elf32_Ehdr:    %d bytes\n\n", sizeof(Elf32_Ehdr));
  printf("Tamanho do Elf32_Addr:    %d bytes\n", sizeof(Elf32_Addr));
  printf("Tamanho do Elf32_Off:     %d bytes\n", sizeof(Elf32_Off));
  printf("Tamanho do Elf32_Section: %d bytes\n", sizeof(Elf32_Section));
  printf("Tamanho do Elf32_Versym:  %d bytes\n", sizeof(Elf32_Versym));
  printf("Tamanho do Elf32_Half:    %d bytes\n", sizeof(Elf32_Half));
  printf("Tamanho do Elf32_Sword:   %d bytes\n", sizeof(Elf32_Sword));
  printf("Tamanho do Elf32_Word:    %d bytes\n", sizeof(Elf32_Word));
  printf("Tamanho do Elf32_Sxword:  %d bytes\n", sizeof(Elf32_Sxword));
  printf("Tamanho do Elf32_Xword:   %d bytes\n\n", sizeof(Elf32_Xword));
  printf("64 bits --------------------------\n\n");
  printf("Tamanho do Elf64_Ehdr:    %d bytes\n\n", sizeof(Elf64_Ehdr));
  printf("Tamanho do Elf64_Addr:    %d bytes\n", sizeof(Elf64_Addr));
  printf("Tamanho do Elf64_Off:     %d bytes\n", sizeof(Elf64_Off));
  printf("Tamanho do Elf64_Section: %d bytes\n", sizeof(Elf64_Section));
  printf("Tamanho do Elf64_Versym:  %d bytes\n", sizeof(Elf64_Versym));
  printf("Tamanho do Elf64_Half:    %d bytes\n", sizeof(Elf64_Half));
  printf("Tamanho do Elf64_Sword:   %d bytes\n", sizeof(Elf64_Sword));
  printf("Tamanho do Elf64_Word:    %d bytes\n", sizeof(Elf64_Word));
  printf("Tamanho do Elf64_Sxword:  %d bytes\n", sizeof(Elf64_Sxword));
  printf("Tamanho do Elf64_Xword:   %d bytes\n\n", sizeof(Elf64_Xword));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef1(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf03(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf14(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf25(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf36(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf47(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf58(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf69(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf7a(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf8b(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf9d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfb4(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfc6(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfd7(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfe8(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xff9(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x100a(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x101b(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x102c(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x103d(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x104e(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0x11ac(%rip),%rdi
call   1030 <puts@plt>
lea    0xecc(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xede(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeef(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf00(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf11(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf22(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf33(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf44(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf55(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf66(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x1106(%rip),%rdi
call   1030 <puts@plt>
lea    0xf6c(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf7e(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf8f(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xfa0(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xfb1(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xfc2(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xfd3(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xfe4(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xff5(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x1006(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [37 x i8] c"32 bits --------------------------\0A\0A\00"
@.str.1 = [37 x i8] c"Tamanho do Elf32_Ehdr: %d bytes\0A\0A\00"
@.str.2 = [36 x i8] c"Tamanho do Elf32_Addr: %d bytes\0A\00"
@.str.3 = [36 x i8] c"Tamanho do Elf32_Off: %d bytes\0A\00"
@.str.4 = [36 x i8] c"Tamanho do Elf32_Section: %d bytes\0A\00"
@.str.5 = [36 x i8] c"Tamanho do Elf32_Versym: %d bytes\0A\00"
@.str.6 = [36 x i8] c"Tamanho do Elf32_Half: %d bytes\0A\00"
@.str.7 = [36 x i8] c"Tamanho do Elf32_Sword: %d bytes\0A\00"
@.str.8 = [36 x i8] c"Tamanho do Elf32_Word: %d bytes\0A\00"
@.str.9 = [36 x i8] c"Tamanho do Elf32_Sxword: %d bytes\0A\00"
@.str.10 = [37 x i8] c"Tamanho do Elf32_Xword: %d bytes\0A\0A\00"
@.str.11 = [37 x i8] c"64 bits --------------------------\0A\0A\00"
@.str.12 = [37 x i8] c"Tamanho do Elf64_Ehdr: %d bytes\0A\0A\00"
@.str.13 = [36 x i8] c"Tamanho do Elf64_Addr: %d bytes\0A\00"
@.str.14 = [36 x i8] c"Tamanho do Elf64_Off: %d bytes\0A\00"
@.str.15 = [36 x i8] c"Tamanho do Elf64_Section: %d bytes\0A\00"
@.str.16 = [36 x i8] c"Tamanho do Elf64_Versym: %d bytes\0A\00"
@.str.17 = [36 x i8] c"Tamanho do Elf64_Half: %d bytes\0A\00"
@.str.18 = [36 x i8] c"Tamanho do Elf64_Sword: %d bytes\0A\00"
@.str.19 = [36 x i8] c"Tamanho do Elf64_Word: %d bytes\0A\00"
@.str.20 = [36 x i8] c"Tamanho do Elf64_Sxword: %d bytes\0A\00"
@.str.21 = [37 x i8] c"Tamanho do Elf64_Xword: %d bytes\0A\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0), i64 4)
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0), i64 4)
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.3, i64 0, i64 0), i64 4)
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.4, i64 0, i64 0), i64 4)
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i64 0, i64 0), i64 4)
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.6, i64 0, i64 0), i64 4)
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.7, i64 0, i64 0), i64 4)
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.8, i64 0, i64 0), i64 4)
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.9, i64 0, i64 0), i64 4)
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.10, i64 0, i64 0), i64 4)
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.11, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.12, i64 0, i64 0), i64 4)
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.13, i64 0, i64 0), i64 4)
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.14, i64 0, i64 0), i64 4)
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.15, i64 0, i64 0), i64 4)
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.16, i64 0, i64 0), i64 4)
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.17, i64 0, i64 0), i64 4)
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.18, i64 0, i64 0), i64 4)
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.19, i64 0, i64 0), i64 4)
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.20, i64 0, i64 0), i64 4)
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.21, i64 0, i64 0), i64 4)
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [37 x i8] c"Tamanho do Elf32_Ehdr: %d bytes\0A\0A\00"
@.str.2 = [36 x i8] c"Tamanho do Elf32_Addr: %d bytes\0A\00"
@.str.3 = [36 x i8] c"Tamanho do Elf32_Off: %d bytes\0A\00"
@.str.4 = [36 x i8] c"Tamanho do Elf32_Section: %d bytes\0A\00"
@.str.5 = [36 x i8] c"Tamanho do Elf32_Versym: %d bytes\0A\00"
@.str.6 = [36 x i8] c"Tamanho do Elf32_Half: %d bytes\0A\00"
@.str.7 = [36 x i8] c"Tamanho do Elf32_Sword: %d bytes\0A\00"
@.str.8 = [36 x i8] c"Tamanho do Elf32_Word: %d bytes\0A\00"
@.str.9 = [36 x i8] c"Tamanho do Elf32_Sxword: %d bytes\0A\00"
@.str.10 = [37 x i8] c"Tamanho do Elf32_Xword: %d bytes\0A\0A\00"
@.str.12 = [37 x i8] c"Tamanho do Elf64_Ehdr: %d bytes\0A\0A\00"
@.str.13 = [36 x i8] c"Tamanho do Elf64_Addr: %d bytes\0A\00"
@.str.14 = [36 x i8] c"Tamanho do Elf64_Off: %d bytes\0A\00"
@.str.15 = [36 x i8] c"Tamanho do Elf64_Section: %d bytes\0A\00"
@.str.16 = [36 x i8] c"Tamanho do Elf64_Versym: %d bytes\0A\00"
@.str.17 = [36 x i8] c"Tamanho do Elf64_Half: %d bytes\0A\00"
@.str.18 = [36 x i8] c"Tamanho do Elf64_Sword: %d bytes\0A\00"
@.str.19 = [36 x i8] c"Tamanho do Elf64_Word: %d bytes\0A\00"
@.str.20 = [36 x i8] c"Tamanho do Elf64_Sxword: %d bytes\0A\00"
@.str.21 = [37 x i8] c"Tamanho do Elf64_Xword: %d bytes\0A\0A\00"
@str = [36 x i8] c"32 bits --------------------------\0A\00"
@str.22 = [36 x i8] c"64 bits --------------------------\0A\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0), i64 4)
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0), i64 4)
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.3, i64 0, i64 0), i64 4)
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.4, i64 0, i64 0), i64 4)
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i64 0, i64 0), i64 4)
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.6, i64 0, i64 0), i64 4)
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.7, i64 0, i64 0), i64 4)
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.8, i64 0, i64 0), i64 4)
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.9, i64 0, i64 0), i64 4)
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.10, i64 0, i64 0), i64 4)
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.22, i64 0, i64 0))
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.12, i64 0, i64 0), i64 4)
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.13, i64 0, i64 0), i64 4)
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.14, i64 0, i64 0), i64 4)
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.15, i64 0, i64 0), i64 4)
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.16, i64 0, i64 0), i64 4)
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.17, i64 0, i64 0), i64 4)
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.18, i64 0, i64 0), i64 4)
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.19, i64 0, i64 0), i64 4)
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.20, i64 0, i64 0), i64 4)
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.21, i64 0, i64 0), i64 4)
ret i32 0
}