#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() {
  int x = 0;
  int *p = &x;
  float y = 0;
  float *l = &y;
  char z = 'B';
  char *m = &z;
  printf("O valor de x antes da modificao eh : %d\n", x);
  printf("O valor de y antes da modificao eh : %.2f\n", y);
  printf("O valor de z antes da modificao eh : %c\n", z);
  *p = 70;
  *l = 63.70;
  *m = 'A';
  printf("O valor de x depois da modificao eh : %d\n", x);
  printf("O valor de y depois da modificao eh : %.2f\n", y);
  printf("O valor de z depois da modificao eh : %c\n", z);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x4(%rbp),%rax
mov    %rax,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
lea    -0x14(%rbp),%rax
mov    %rax,-0x20(%rbp)
movb   $0x42,-0x21(%rbp)
lea    -0x21(%rbp),%rax
mov    %rax,-0x30(%rbp)
movsbl -0x4(%rbp),%esi
lea    0xeb3(%rip),%rdi
call   1030 <printf@plt>
cvttss2si -0x14(%rbp),%eax
movsbl %al,%esi
lea    0xec8(%rip),%rdi
call   1030 <printf@plt>
movsbl -0x21(%rbp),%esi
lea    0xee3(%rip),%rdi
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
movl   $0x46,(%rax)
mov    -0x20(%rbp),%rax
movl   $0x427ecccd,(%rax)
mov    -0x30(%rbp),%rax
movb   $0x41,(%rax)
movsbl -0x4(%rbp),%esi
lea    0xee1(%rip),%rdi
call   1030 <printf@plt>
movss  -0x14(%rbp),%xmm0
cvttss2si %xmm0,%eax
lea    0xef6(%rip),%rdi
movsbl %al,%esi
call   1030 <printf@plt>
lea    0xf13(%rip),%rdi
movsbl -0x21(%rbp),%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
xor    %esi,%esi
call   1030 <printf@plt>
lea    0xf03(%rip),%rdi
xor    %esi,%esi
call   1030 <printf@plt>
lea    0xf20(%rip),%rdi
mov    $0x42,%esi
call   1030 <printf@plt>
lea    0xf38(%rip),%rdi
mov    $0x46,%esi
call   1030 <printf@plt>
lea    0xf51(%rip),%rdi
mov    $0x3f,%esi
call   1030 <printf@plt>
lea    0xf6c(%rip),%rdi
mov    $0x41,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [41 x i8] c"O valor de x antes da modificao eh : %d\0A\00"
@.str.1 = [43 x i8] c"O valor de y antes da modificao eh : %.2f\0A\00"
@.str.2 = [41 x i8] c"O valor de z antes da modificao eh : %c\0A\00"
@.str.3 = [42 x i8] c"O valor de x depois da modificao eh : %d\0A\00"
@.str.4 = [44 x i8] c"O valor de y depois da modificao eh : %.2f\0A\00"
@.str.5 = [42 x i8] c"O valor de z depois da modificao eh : %c\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32*
%3 = alloca float
%4 = alloca float*
%5 = alloca i8
%6 = alloca i8*
store i32 0, i32* %1
store i32* %1, i32** %2
store float 0.000000e+00, float* %3
store float* %3, float** %4
store i8 66, i8* %5
store i8* %5, i8** %6
%7 = load i32, i32* %1
%8 = trunc i32 %7 to i8
%9 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str, i64 0, i64 0), i8 signext %8)
%10 = load float, float* %3
%11 = fptosi float %10 to i8
%12 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.1, i64 0, i64 0), i8 signext %11)
%13 = load i8, i8* %5
%14 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.2, i64 0, i64 0), i8 signext %13)
%15 = load i32*, i32** %2
store i32 70, i32* %15
%16 = load float*, float** %4
store float 0x404FD999A0000000, float* %16
%17 = load i8*, i8** %6
store i8 65, i8* %17
%18 = load i32, i32* %1
%19 = trunc i32 %18 to i8
%20 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.3, i64 0, i64 0), i8 signext %19)
%21 = load float, float* %3
%22 = fptosi float %21 to i8
%23 = call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.4, i64 0, i64 0), i8 signext %22)
%24 = load i8, i8* %5
%25 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.5, i64 0, i64 0), i8 signext %24)
ret i32 0
}

LLVM IR (-O2):
@.str = [41 x i8] c"O valor de x antes da modificao eh : %d\0A\00"
@.str.1 = [43 x i8] c"O valor de y antes da modificao eh : %.2f\0A\00"
@.str.2 = [41 x i8] c"O valor de z antes da modificao eh : %c\0A\00"
@.str.3 = [42 x i8] c"O valor de x depois da modificao eh : %d\0A\00"
@.str.4 = [44 x i8] c"O valor de y depois da modificao eh : %.2f\0A\00"
@.str.5 = [42 x i8] c"O valor de z depois da modificao eh : %c\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str, i64 0, i64 0), i8 signext 0)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.1, i64 0, i64 0), i8 signext 0)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.2, i64 0, i64 0), i8 signext 66)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.3, i64 0, i64 0), i8 signext 70)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.4, i64 0, i64 0), i8 signext 63)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.5, i64 0, i64 0), i8 signext 65)
ret i32 0
}