#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 /*<<< orphan*/ scanf(char *, float *);
int /*<<< orphan*/ system(char *);
main() {
  float aumento = 0.1, salario_limite = 1500, salario, salario_reajustado;
  printf("Qual e o seu salario? ");
  scanf("%f", &salario);
  if (salario < salario_limite) {
    salario_reajustado = salario + (salario * aumento);
    printf("Voce receceu um aumento salarial. Seu salario agora e R$ %.2f\n ",
           salario_reajustado);
  } else {
    printf("Voce nao receceu aumento salarial. Seu salario continua sendo R$ "
           "%.2f\n",
           salario);
  }
  system("pause");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movss  0xebd(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  0xeac(%rip),%xmm0
movss  %xmm0,-0xc(%rbp)
lea    0xea8(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xeb1(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1050 <scanf@plt>
movss  -0x10(%rbp),%xmm1
movss  -0xc(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jbe    11c2 <main+0x92>
movss  -0x10(%rbp),%xmm1
movss  -0x10(%rbp),%xmm0
movss  -0x8(%rbp),%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe6c(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
jmp    11d9 <main+0xa9>
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe90(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xec9(%rip),%rdi
call   1030 <system@plt>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed0(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xed9(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1050 <scanf@plt>
movss  0x4(%rsp),%xmm0
movss  0xea2(%rip),%xmm1
ucomiss %xmm0,%xmm1
jbe    1173 <main+0x43>
movss  0xe99(%rip),%xmm1
mulss  %xmm0,%xmm1
addss  %xmm1,%xmm0
lea    0xea8(%rip),%rax
lea    0xee1(%rip),%rdi
cmova  %rax,%rdi
cvtss2sd %xmm0,%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xf12(%rip),%rdi
call   1030 <system@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [23 x i8] c"Qual e o seu salario? \00"
@.str.1 = [3 x i8] c"%f\00"
@.str.2 = [64 x i8] c"Voce receceu um aumento salarial. Seu salario agora e R$ %.2f\0A \00"
@.str.3 = [71 x i8] c"Voce nao receceu aumento salarial. Seu salario continua sendo R$ %.2f\0A\00"
@.str.4 = [6 x i8] c"pause\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
%4 = alloca float
%5 = alloca float
store i32 0, i32* %1
store float 0x3FB99999A0000000, float* %2
store float 1.500000e+03, float* %3
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
%7 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %4)
%8 = load float, float* %4
%9 = load float, float* %3
%10 = fcmp olt float %8, %9
br i1 %10, label %11, label %19
11: ; preds = %0
%12 = load float, float* %4
%13 = load float, float* %4
%14 = load float, float* %2
%15 = call float @llvm.fmuladd.f32(float %13, float %14, float %12)
store float %15, float* %5
%16 = load float, float* %5
%17 = fpext float %16 to double
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.2, i64 0, i64 0), double %17)
br label %23
19: ; preds = %0
%20 = load float, float* %4
%21 = fpext float %20 to double
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.3, i64 0, i64 0), double %21)
br label %23
23: ; preds = %19, %11
%24 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%25 = load i32, i32* %1
ret i32 %25
}

LLVM IR (-O2):
@.str = [23 x i8] c"Qual e o seu salario? \00"
@.str.1 = [3 x i8] c"%f\00"
@.str.2 = [64 x i8] c"Voce receceu um aumento salarial. Seu salario agora e R$ %.2f\0A \00"
@.str.3 = [71 x i8] c"Voce nao receceu aumento salarial. Seu salario continua sendo R$ %.2f\0A\00"
@.str.4 = [6 x i8] c"pause\00"
define i32 @main() {
%1 = alloca float
%2 = bitcast float* %1 to i8*
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %1)
%5 = load float, float* %1
%6 = fcmp olt float %5, 1.500000e+03
%7 = call float @llvm.fmuladd.f32(float %5, float 0x3FB99999A0000000, float %5)
%8 = select i1 %6, float %7, float %5
%9 = select i1 %6, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.3, i64 0, i64 0)
%10 = fpext float %8 to double
%11 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %9, double %10)
%12 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
ret i32 0
}