#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 main() {
  float n, ns, nn;
  scanf("%f", &n);
  if (n >= 0 && n <= 400.00) {
    ns = n + (n * 0.15);
    nn = ns - n;
    printf("Novo salario: %0.2f\n", ns);
    printf("Reajuste ganho: %0.2f\n", nn);
    printf("Em percentual: 15 %%\n");
  } else if (n >= 400.01 && n <= 800) {
    ns = n + (n * 0.12);
    nn = ns - n;
    printf("Novo salario: %0.2f\n", ns);
    printf("Reajuste ganho: %0.2f\n", nn);
    printf("Em percentual: 12 %%\n");
  } else if (n >= 800.01 && n <= 1200) {
    ns = n + (n * 0.10);
    nn = ns - n;
    printf("Novo salario: %0.2f\n", ns);
    printf("Reajuste ganho: %0.2f\n", nn);
    printf("Em percentual: 10 %%\n");
  } else if (n >= 1200.01 && n <= 2000) {
    ns = n + (n * 0.07);
    nn = ns - n;
    printf("Novo salario: %0.2f\n", ns);
    printf("Reajuste ganho: %0.2f\n", nn);
    printf("Em percentual: 7 %%\n");
  } else if (n > 2000) {
    ns = n + (n * 0.04);
    nn = ns - n;
    printf("Novo salario: %0.2f\n", ns);
    printf("Reajuste ganho: %0.2f\n", nn);
    printf("Em percentual: 4 %%\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xf1e(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
movss  -0x8(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jb     11e6 <main+0xc6>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xe9f(%rip),%xmm0
ucomisd %xmm1,%xmm0
jb     11e6 <main+0xc6>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xebb(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0xc(%rbp),%xmm0
subss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x10(%rbp)
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xea2(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xea0(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xea9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    147e <main+0x35e>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xe11(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     128e <main+0x16e>
movss  0xe3f(%rip),%xmm0
ucomiss -0x8(%rbp),%xmm0
jb     128e <main+0x16e>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xe0b(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0xc(%rbp),%xmm0
subss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x10(%rbp)
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xdfa(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xdf8(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xe17(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1479 <main+0x359>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xd71(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     1336 <main+0x216>
movss  0xd9b(%rip),%xmm0
ucomiss -0x8(%rbp),%xmm0
jb     1336 <main+0x216>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xd5b(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0xc(%rbp),%xmm0
subss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x10(%rbp)
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd52(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd50(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xd85(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1474 <main+0x354>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xcd1(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     13de <main+0x2be>
movss  0xcf7(%rip),%xmm0
ucomiss -0x8(%rbp),%xmm0
jb     13de <main+0x2be>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xcab(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0xc(%rbp),%xmm0
subss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x10(%rbp)
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xcaa(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xca8(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xcf3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    146f <main+0x34f>
movss  -0x8(%rbp),%xmm0
movss  0xc65(%rip),%xmm1
ucomiss %xmm1,%xmm0
jbe    146a <main+0x34a>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xc12(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0xc(%rbp),%xmm0
subss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x10(%rbp)
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xc19(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xc17(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xc77(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    146f <main+0x34f>
jmp    1474 <main+0x354>
jmp    1479 <main+0x359>
jmp    147e <main+0x35e>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xf24(%rip),%rdi
lea    0xc(%rsp),%rsi
call   1040 <scanf@plt>
movss  0xc(%rsp),%xmm1
xorps  %xmm0,%xmm0
ucomiss %xmm0,%xmm1
xorps  %xmm0,%xmm0
cvtss2sd %xmm1,%xmm0
jb     1174 <main+0x54>
movss  0xead(%rip),%xmm2
ucomiss %xmm1,%xmm2
jb     1174 <main+0x54>
movsd  0xeb0(%rip),%xmm2
mulsd  %xmm0,%xmm2
addsd  %xmm0,%xmm2
lea    0xf10(%rip),%rbx
jmp    1227 <main+0x107>
movss  0xe88(%rip),%xmm2
ucomiss %xmm1,%xmm2
jb     11a7 <main+0x87>
ucomisd 0xe8f(%rip),%xmm0
jb     11a7 <main+0x87>
movsd  0xeb5(%rip),%xmm2
mulsd  %xmm0,%xmm2
addsd  %xmm0,%xmm2
lea    0xef3(%rip),%rbx
jmp    1227 <main+0x107>
movss  0xe59(%rip),%xmm2
ucomiss %xmm1,%xmm2
jb     11d7 <main+0xb7>
ucomisd 0xe64(%rip),%xmm0
jb     11d7 <main+0xb7>
movsd  0xe7a(%rip),%xmm2
mulsd  %xmm0,%xmm2
addsd  %xmm0,%xmm2
lea    0xed6(%rip),%rbx
jmp    1227 <main+0x107>
movss  0xe2d(%rip),%xmm2
ucomiss %xmm1,%xmm2
jb     1207 <main+0xe7>
ucomisd 0xe3c(%rip),%xmm0
jb     1207 <main+0xe7>
movsd  0xe42(%rip),%xmm2
mulsd  %xmm0,%xmm2
addsd  %xmm0,%xmm2
lea    0xebc(%rip),%rbx
jmp    1227 <main+0x107>
ucomiss 0xdfe(%rip),%xmm1
jbe    126c <main+0x14c>
movsd  0xe18(%rip),%xmm2
mulsd  %xmm0,%xmm2
addsd  %xmm0,%xmm2
lea    0xeaf(%rip),%rbx
cvtsd2ss %xmm2,%xmm2
xorps  %xmm0,%xmm0
cvtss2sd %xmm2,%xmm0
subss  %xmm1,%xmm2
movss  %xmm2,0x8(%rsp)
lea    0xe10(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  0x8(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe0d(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%f\00"
@.str.1 = [21 x i8] c"Novo salario: %0.2f\0A\00"
@.str.2 = [23 x i8] c"Reajuste ganho: %0.2f\0A\00"
@.str.3 = [22 x i8] c"Em percentual: 15 %%\0A\00"
@.str.4 = [22 x i8] c"Em percentual: 12 %%\0A\00"
@.str.5 = [22 x i8] c"Em percentual: 10 %%\0A\00"
@.str.6 = [21 x i8] c"Em percentual: 7 %%\0A\00"
@.str.7 = [21 x i8] c"Em percentual: 4 %%\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
%4 = alloca float
store i32 0, i32* %1
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %2)
%6 = load float, float* %2
%7 = fcmp oge float %6, 0.000000e+00
br i1 %7, label %8, label %29
8: ; preds = %0
%9 = load float, float* %2
%10 = fpext float %9 to double
%11 = fcmp ole double %10, 4.000000e+02
br i1 %11, label %12, label %29
12: ; preds = %8
%13 = load float, float* %2
%14 = fpext float %13 to double
%15 = load float, float* %2
%16 = fpext float %15 to double
%17 = call double @llvm.fmuladd.f64(double %16, double 1.500000e-01, double %14)
%18 = fptrunc double %17 to float
store float %18, float* %3
%19 = load float, float* %3
%20 = load float, float* %2
%21 = fsub float %19, %20
store float %21, float* %4
%22 = load float, float* %3
%23 = fpext float %22 to double
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), double %23)
%25 = load float, float* %4
%26 = fpext float %25 to double
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), double %26)
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0))
br label %125
29: ; preds = %8, %0
%30 = load float, float* %2
%31 = fpext float %30 to double
%32 = fcmp oge double %31, 4.000100e+02
br i1 %32, label %33, label %53
33: ; preds = %29
%34 = load float, float* %2
%35 = fcmp ole float %34, 8.000000e+02
br i1 %35, label %36, label %53
36: ; preds = %33
%37 = load float, float* %2
%38 = fpext float %37 to double
%39 = load float, float* %2
%40 = fpext float %39 to double
%41 = call double @llvm.fmuladd.f64(double %40, double 1.200000e-01, double %38)
%42 = fptrunc double %41 to float
store float %42, float* %3
%43 = load float, float* %3
%44 = load float, float* %2
%45 = fsub float %43, %44
store float %45, float* %4
%46 = load float, float* %3
%47 = fpext float %46 to double
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), double %47)
%49 = load float, float* %4
%50 = fpext float %49 to double
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), double %50)
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0))
br label %124
53: ; preds = %33, %29
%54 = load float, float* %2
%55 = fpext float %54 to double
%56 = fcmp oge double %55, 0x408900147AE147AE
br i1 %56, label %57, label %77
57: ; preds = %53
%58 = load float, float* %2
%59 = fcmp ole float %58, 1.200000e+03
br i1 %59, label %60, label %77
60: ; preds = %57
%61 = load float, float* %2
%62 = fpext float %61 to double
%63 = load float, float* %2
%64 = fpext float %63 to double
%65 = call double @llvm.fmuladd.f64(double %64, double 1.000000e-01, double %62)
%66 = fptrunc double %65 to float
store float %66, float* %3
%67 = load float, float* %3
%68 = load float, float* %2
%69 = fsub float %67, %68
store float %69, float* %4
%70 = load float, float* %3
%71 = fpext float %70 to double
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), double %71)
%73 = load float, float* %4
%74 = fpext float %73 to double
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), double %74)
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0))
br label %123
77: ; preds = %57, %53
%78 = load float, float* %2
%79 = fpext float %78 to double
%80 = fcmp oge double %79, 1.200010e+03
br i1 %80, label %81, label %101
81: ; preds = %77
%82 = load float, float* %2
%83 = fcmp ole float %82, 2.000000e+03
br i1 %83, label %84, label %101
84: ; preds = %81
%85 = load float, float* %2
%86 = fpext float %85 to double
%87 = load float, float* %2
%88 = fpext float %87 to double
%89 = call double @llvm.fmuladd.f64(double %88, double 7.000000e-02, double %86)
%90 = fptrunc double %89 to float
store float %90, float* %3
%91 = load float, float* %3
%92 = load float, float* %2
%93 = fsub float %91, %92
store float %93, float* %4
%94 = load float, float* %3
%95 = fpext float %94 to double
%96 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), double %95)
%97 = load float, float* %4
%98 = fpext float %97 to double
%99 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), double %98)
%100 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0))
br label %122
101: ; preds = %81, %77
%102 = load float, float* %2
%103 = fcmp ogt float %102, 2.000000e+03
br i1 %103, label %104, label %121
104: ; preds = %101
%105 = load float, float* %2
%106 = fpext float %105 to double
%107 = load float, float* %2
%108 = fpext float %107 to double
%109 = call double @llvm.fmuladd.f64(double %108, double 4.000000e-02, double %106)
%110 = fptrunc double %109 to float
store float %110, float* %3
%111 = load float, float* %3
%112 = load float, float* %2
%113 = fsub float %111, %112
store float %113, float* %4
%114 = load float, float* %3
%115 = fpext float %114 to double
%116 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), double %115)
%117 = load float, float* %4
%118 = fpext float %117 to double
%119 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), double %118)
%120 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0))
br label %121
121: ; preds = %104, %101
br label %122
122: ; preds = %121, %84
br label %123
123: ; preds = %122, %60
br label %124
124: ; preds = %123, %36
br label %125
125: ; preds = %124, %12
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%f\00"
@.str.1 = [21 x i8] c"Novo salario: %0.2f\0A\00"
@.str.2 = [23 x i8] c"Reajuste ganho: %0.2f\0A\00"
@.str.3 = [22 x i8] c"Em percentual: 15 %%\0A\00"
@.str.4 = [22 x i8] c"Em percentual: 12 %%\0A\00"
@.str.5 = [22 x i8] c"Em percentual: 10 %%\0A\00"
@.str.6 = [21 x i8] c"Em percentual: 7 %%\0A\00"
@.str.7 = [21 x i8] c"Em percentual: 4 %%\0A\00"
define i32 @main() {
%1 = alloca float
%2 = bitcast float* %1 to i8*
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %1)
%4 = load float, float* %1
%5 = fcmp ult float %4, 0.000000e+00
%6 = fcmp ugt float %4, 4.000000e+02
%7 = or i1 %5, %6
%8 = fpext float %4 to double
br i1 %7, label %11, label %9
9: ; preds = %0
%10 = call double @llvm.fmuladd.f64(double %8, double 1.500000e-01, double %8)
br label %33
11: ; preds = %0
%12 = fcmp oge double %8, 4.000100e+02
%13 = fcmp ole float %4, 8.000000e+02
%14 = and i1 %13, %12
br i1 %14, label %15, label %17
15: ; preds = %11
%16 = call double @llvm.fmuladd.f64(double %8, double 1.200000e-01, double %8)
br label %33
17: ; preds = %11
%18 = fcmp oge double %8, 0x408900147AE147AE
%19 = fcmp ole float %4, 1.200000e+03
%20 = and i1 %19, %18
br i1 %20, label %21, label %23
21: ; preds = %17
%22 = call double @llvm.fmuladd.f64(double %8, double 1.000000e-01, double %8)
br label %33
23: ; preds = %17
%24 = fcmp oge double %8, 1.200010e+03
%25 = fcmp ole float %4, 2.000000e+03
%26 = and i1 %25, %24
br i1 %26, label %27, label %29
27: ; preds = %23
%28 = call double @llvm.fmuladd.f64(double %8, double 7.000000e-02, double %8)
br label %33
29: ; preds = %23
%30 = fcmp ogt float %4, 2.000000e+03
br i1 %30, label %31, label %43
31: ; preds = %29
%32 = call double @llvm.fmuladd.f64(double %8, double 4.000000e-02, double %8)
br label %33
33: ; preds = %9, %21, %31, %27, %15
%34 = phi double [ %10, %9 ], [ %22, %21 ], [ %32, %31 ], [ %28, %27 ], [ %16, %15 ]
%35 = phi i8* [ getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), %9 ], [ getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0), %21 ], [ getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0), %31 ], [ getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0), %27 ], [ getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0), %15 ]
%36 = fptrunc double %34 to float
%37 = fsub float %36, %4
%38 = fpext float %36 to double
%39 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), double %38)
%40 = fpext float %37 to double
%41 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), double %40)
%42 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %35)
br label %43
43: ; preds = %33, %29
ret i32 0
}