#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 *, ...);
int main() {
  int edad;
  float estatura;
  char genero;
  edad = 20;
  estatura = 1.80;
  genero = 'M';
  printf("Valores de las variables:\n");
  printf("Edad: %d, Estatura: %f, Genero: %c \n\n", edad, estatura, genero);
  int *pEdad = &edad;
  float *pEstatura = &estatura;
  char *pGenero = &genero;
  printf("Direcciones de memoria:\n");
  printf("Edad: %p, Estatura: %p, Genero: %p \n\n", pEdad, pEstatura, pGenero);
  printf("Referenciar el valor del apuntador:\n");
  printf("Edad: %d, Estatura: %f, Genero: %c \n\n", *pEdad, *pEstatura,
         *pGenero);
  *pEdad = 50;
  printf("Modificar datos:\n");
  printf("Edad *: %d, Edad: %d \n\n", *pEdad, edad);
  printf("Direccion de memoria:\n");
  printf("Edad *: %p, Edad: %p \n\n", &*pEdad, &edad);
  return 1;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x14,-0x8(%rbp)
movss  0xed2(%rip),%xmm0
movss  %xmm0,-0xc(%rbp)
movb   $0x4d,-0xd(%rbp)
lea    0xec6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%esi
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsbl -0xd(%rbp),%edx
lea    0xec3(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
lea    -0xc(%rbp),%rax
mov    %rax,-0x20(%rbp)
lea    -0xd(%rbp),%rax
mov    %rax,-0x28(%rbp)
lea    0xec3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rdx
mov    -0x28(%rbp),%rcx
lea    0xec2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeda(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%rax
mov    (%rax),%esi
mov    -0x20(%rbp),%rax
movss  (%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    -0x28(%rbp),%rax
movsbl (%rax),%edx
lea    0xe4e(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%rax
movl   $0x32,(%rax)
lea    0xec0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%rax
mov    (%rax),%esi
mov    -0x8(%rbp),%edx
lea    0xebb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xec5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%rsi
lea    0xeca(%rip),%rdi
lea    -0x8(%rbp),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x1,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x18,%rsp
movl   $0x14,0x10(%rsp)
movl   $0x3fe66666,0x14(%rsp)
3f
movb   $0x4d,0xf(%rsp)
lea    0xf41(%rip),%rdi
call   1030 <puts@plt>
lea    0xeb9(%rip),%r14
movsd  0xea9(%rip),%xmm0
mov    %r14,%rdi
mov    $0x14,%esi
mov    $0x4d,%edx
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xf2c(%rip),%rdi
call   1030 <puts@plt>
lea    0xeb0(%rip),%rdi
lea    0x10(%rsp),%rbx
lea    0x14(%rsp),%rdx
lea    0xf(%rsp),%rcx
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf18(%rip),%rdi
call   1030 <puts@plt>
mov    0x10(%rsp),%esi
movss  0x14(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movsbl 0xf(%rsp),%edx
mov    %r14,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movl   $0x32,0x10(%rsp)
lea    0xf0b(%rip),%rdi
call   1030 <puts@plt>
mov    0x10(%rsp),%edx
lea    0xe75(%rip),%rdi
mov    %edx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xefc(%rip),%rdi
call   1030 <puts@plt>
lea    0xe71(%rip),%rdi
mov    %rbx,%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x1,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [27 x i8] c"Valores de las variables:\0A\00"
@.str.1 = [38 x i8] c"Edad: %d, Estatura: %f, Genero: %c \0A\0A\00"
@.str.2 = [25 x i8] c"Direcciones de memoria:\0A\00"
@.str.3 = [38 x i8] c"Edad: %p, Estatura: %p, Genero: %p \0A\0A\00"
@.str.4 = [37 x i8] c"Referenciar el valor del apuntador:\0A\00"
@.str.5 = [18 x i8] c"Modificar datos:\0A\00"
@.str.6 = [24 x i8] c"Edad *: %d, Edad: %d \0A\0A\00"
@.str.7 = [23 x i8] c"Direccion de memoria:\0A\00"
@.str.8 = [24 x i8] c"Edad *: %p, Edad: %p \0A\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca float
%4 = alloca i8
%5 = alloca i32*
%6 = alloca float*
%7 = alloca i8*
store i32 0, i32* %1
store i32 20, i32* %2
store float 0x3FFCCCCCC0000000, float* %3
store i8 77, i8* %4
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0))
%9 = load i32, i32* %2
%10 = load float, float* %3
%11 = fpext float %10 to double
%12 = load i8, i8* %4
%13 = sext i8 %12 to i32
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0), i32 %9, double %11, i32 %13)
store i32* %2, i32** %5
store float* %3, float** %6
store i8* %4, i8** %7
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0))
%16 = load i32*, i32** %5
%17 = load float*, float** %6
%18 = load i8*, i8** %7
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.3, i64 0, i64 0), i32* %16, float* %17, i8* %18)
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.4, i64 0, i64 0))
%21 = load i32*, i32** %5
%22 = load i32, i32* %21
%23 = load float*, float** %6
%24 = load float, float* %23
%25 = fpext float %24 to double
%26 = load i8*, i8** %7
%27 = load i8, i8* %26
%28 = sext i8 %27 to i32
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0), i32 %22, double %25, i32 %28)
%30 = load i32*, i32** %5
store i32 50, i32* %30
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0))
%32 = load i32*, i32** %5
%33 = load i32, i32* %32
%34 = load i32, i32* %2
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0), i32 %33, i32 %34)
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0))
%37 = load i32*, i32** %5
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.8, i64 0, i64 0), i32* %37, i32* %2)
ret i32 1
}

LLVM IR (-O2):
@.str.1 = [38 x i8] c"Edad: %d, Estatura: %f, Genero: %c \0A\0A\00"
@.str.3 = [38 x i8] c"Edad: %p, Estatura: %p, Genero: %p \0A\0A\00"
@.str.6 = [24 x i8] c"Edad *: %d, Edad: %d \0A\0A\00"
@.str.8 = [24 x i8] c"Edad *: %p, Edad: %p \0A\0A\00"
@str = [26 x i8] c"Valores de las variables:\00"
@str.9 = [24 x i8] c"Direcciones de memoria:\00"
@str.10 = [36 x i8] c"Referenciar el valor del apuntador:\00"
@str.11 = [17 x i8] c"Modificar datos:\00"
@str.12 = [22 x i8] c"Direccion de memoria:\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca i8
%4 = bitcast i32* %1 to i8*
%5 = bitcast float* %2 to i8*
store i32 20, i32* %1
store float 0x3FFCCCCCC0000000, float* %2
store i8 77, i8* %3
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str, i64 0, i64 0))
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0), i32 20, double 0x3FFCCCCCC0000000, i32 77)
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.9, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.3, i64 0, i64 0), i32* %1, float* %2, i8* %3)
%10 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.10, i64 0, i64 0))
%11 = load i32, i32* %1
%12 = load float, float* %2
%13 = fpext float %12 to double
%14 = load i8, i8* %3
%15 = sext i8 %14 to i32
%16 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0), i32 %11, double %13, i32 %15)
store i32 50, i32* %1
%17 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.11, i64 0, i64 0))
%18 = load i32, i32* %1
%19 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0), i32 %18, i32 %18)
%20 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.12, i64 0, i64 0))
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.8, i64 0, i64 0), i32* %1, i32* %1)
ret i32 1
}