#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 *, float);
int /*<<< orphan*/ system(char *);
int main() {
  float poupanca = 789.54, juros = 1.0056, deposito = 303.20, retirada = 58.25;
  float valor = poupanca * juros;
  float valor2 = valor + deposito;
  float valor3 = valor2 * juros;
  float valor4 = valor3 - retirada;
  float valorfinal = valor4 * juros;
  printf("valor da poupanca apos 4 meses : %.2f\n", valorfinal);
  system("pause");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
movss  0xed5(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  0xec4(%rip),%xmm0
movss  %xmm0,-0xc(%rbp)
movss  0xeb3(%rip),%xmm0
movss  %xmm0,-0x10(%rbp)
movss  0xea2(%rip),%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0x8(%rbp),%xmm0
mulss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x18(%rbp)
movss  -0x18(%rbp),%xmm0
addss  -0x10(%rbp),%xmm0
movss  %xmm0,-0x1c(%rbp)
movss  -0x1c(%rbp),%xmm0
mulss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x20(%rbp)
movss  -0x20(%rbp),%xmm0
subss  -0x14(%rbp),%xmm0
movss  %xmm0,-0x24(%rbp)
movss  -0x24(%rbp),%xmm0
mulss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x28(%rbp)
movss  -0x28(%rbp),%xmm0
lea    0xe56(%rip),%rdi
call   1040 <printf@plt>
lea    0xe71(%rip),%rdi
call   1030 <system@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xedc(%rip),%rdi
movss  0xed0(%rip),%xmm0
call   1040 <printf@plt>
lea    0xeef(%rip),%rdi
call   1030 <system@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [39 x i8] c"valor da poupanca apos 4 meses : %.2f\0A\00"
@.str.1 = [6 x i8] c"pause\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
%4 = alloca float
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = alloca float
%9 = alloca float
%10 = alloca float
store i32 0, i32* %1
store float 0x4088AC51E0000000, float* %2
store float 0x3FF016F000000000, float* %3
store float 0x4072F33340000000, float* %4
store float 5.825000e+01, float* %5
%11 = load float, float* %2
%12 = load float, float* %3
%13 = fmul float %11, %12
store float %13, float* %6
%14 = load float, float* %6
%15 = load float, float* %4
%16 = fadd float %14, %15
store float %16, float* %7
%17 = load float, float* %7
%18 = load float, float* %3
%19 = fmul float %17, %18
store float %19, float* %8
%20 = load float, float* %8
%21 = load float, float* %5
%22 = fsub float %20, %21
store float %22, float* %9
%23 = load float, float* %9
%24 = load float, float* %3
%25 = fmul float %23, %24
store float %25, float* %10
%26 = load float, float* %10
%27 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0), float %26)
%28 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [39 x i8] c"valor da poupanca apos 4 meses : %.2f\0A\00"
@.str.1 = [6 x i8] c"pause\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0), float 0x40906BA180000000)
%2 = tail call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
ret i32 0
}