#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 *, ...);
int main() {
  char nome[5][10];
  float salario[5];
  int i;
  for (i = 0; i <= 4; i++) {
    printf("\nEntre com o nome do funcionario %d: ", i + 1);
    scanf("%s", nome[i]);
    printf("\nEntre com o salario do funcionario %s: ", nome[i]);
    scanf("%f", &salario[i]);
  }
  printf("\nFuncionario\t\tSal.Bruto\tSal.Liq");
  printf("\n------------------------------------------");
  for (i = 0; i < 5; i++) {
    printf("\n%s \t\t\t%.2f \t\t%.2f", nome[i], salario[i], salario[i] * 0.8);
  }
  printf("\n-------------------------------------------");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x64(%rbp)
cmpl   $0x4,-0x64(%rbp)
jg     11b9 <main+0x99>
mov    -0x64(%rbp),%esi
add    $0x1,%esi
lea    0xebb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0x64(%rbp),%rax
lea    -0x40(%rbp),%rsi
imul   $0xa,%rax,%rax
add    %rax,%rsi
lea    0xec4(%rip),%rdi
mov    $0x0,%al
call   1040 <scanf@plt>
movslq -0x64(%rbp),%rax
lea    -0x40(%rbp),%rsi
imul   $0xa,%rax,%rax
add    %rax,%rsi
lea    0xeaa(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0x64(%rbp),%rax
lea    -0x60(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
lea    0xeb6(%rip),%rdi
mov    $0x0,%al
call   1040 <scanf@plt>
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    1136 <main+0x16>
lea    0xe9d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeaf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x64(%rbp)
cmpl   $0x5,-0x64(%rbp)
jge    1239 <main+0x119>
movslq -0x64(%rbp),%rax
lea    -0x40(%rbp),%rsi
imul   $0xa,%rax,%rax
add    %rax,%rsi
movslq -0x64(%rbp),%rax
movss  -0x60(%rbp,%rax,4),%xmm0
cvtss2sd %xmm0,%xmm0
movslq -0x64(%rbp),%rax
movss  -0x60(%rbp,%rax,4),%xmm1
cvtss2sd %xmm1,%xmm1
movsd  0xde7(%rip),%xmm2
mulsd  %xmm2,%xmm1
lea    0xe85(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    11dc <main+0xbc>
lea    0xe7c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
lea    0xed3(%rip),%r13
mov    %r13,%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xee3(%rip),%r12
lea    0x20(%rsp),%rbx
mov    %r12,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
lea    0xecd(%rip),%rbp
mov    %rbp,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xee2(%rip),%r14
mov    %rsp,%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <scanf@plt>
mov    %r13,%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x2a(%rsp),%rbx
mov    %r12,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x4(%rsp),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <scanf@plt>
mov    %r13,%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x34(%rsp),%rbx
mov    %r12,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x8(%rsp),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <scanf@plt>
mov    %r13,%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x3e(%rsp),%r15
mov    %r12,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
mov    %rbp,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xc(%rsp),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <scanf@plt>
mov    %r13,%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x48(%rsp),%r13
mov    %r12,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
mov    %rbp,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x10(%rsp),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <scanf@plt>
lea    0xddd(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xdef(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
movss  (%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movaps %xmm0,%xmm1
mulsd  0xd57(%rip),%xmm1
lea    0xdf9(%rip),%rbx
mov    %rbx,%rdi
lea    0x20(%rsp),%rsi
mov    $0x2,%al
call   1030 <printf@plt>
movss  0x4(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movaps %xmm0,%xmm1
mulsd  0xd2c(%rip),%xmm1
mov    %rbx,%rdi
lea    0x2a(%rsp),%rsi
mov    $0x2,%al
call   1030 <printf@plt>
movss  0x8(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movaps %xmm0,%xmm1
mulsd  0xd08(%rip),%xmm1
mov    %rbx,%rdi
lea    0x34(%rsp),%rsi
mov    $0x2,%al
call   1030 <printf@plt>
movss  0xc(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movaps %xmm0,%xmm1
mulsd  0xce4(%rip),%xmm1
mov    %rbx,%rdi
mov    %r15,%rsi
mov    $0x2,%al
call   1030 <printf@plt>
movss  0x10(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xcc5(%rip),%xmm1
mulsd  %xmm0,%xmm1
mov    %rbx,%rdi
mov    %r13,%rsi
mov    $0x2,%al
call   1030 <printf@plt>
lea    0xd69(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [38 x i8] c"\0AEntre com o nome do funcionario %d: \00"
@.str.1 = [3 x i8] c"%s\00"
@.str.2 = [41 x i8] c"\0AEntre com o salario do funcionario %s: \00"
@.str.3 = [3 x i8] c"%f\00"
@.str.4 = [32 x i8] c"\0AFuncionario\09\09Sal.Bruto\09Sal.Liq\00"
@.str.5 = [44 x i8] c"\0A------------------------------------------\00"
@.str.6 = [19 x i8] c"\0A%s \09\09\09%.2f \09\09%.2f\00"
@.str.7 = [45 x i8] c"\0A-------------------------------------------\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [5 x [10 x i8]]
%3 = alloca [5 x float]
%4 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %4
br label %5
5: ; preds = %26, %0
%6 = load i32, i32* %4
%7 = icmp sle i32 %6, 4
br i1 %7, label %8, label %29
8: ; preds = %5
%9 = load i32, i32* %4
%10 = add nsw i32 %9, 1
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i32 %10)
%12 = load i32, i32* %4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [5 x [10 x i8]], [5 x [10 x i8]]* %2, i64 0, i64 %13
%15 = getelementptr inbounds [10 x i8], [10 x i8]* %14, i64 0, i64 0
%16 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %15)
%17 = load i32, i32* %4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [5 x [10 x i8]], [5 x [10 x i8]]* %2, i64 0, i64 %18
%20 = getelementptr inbounds [10 x i8], [10 x i8]* %19, i64 0, i64 0
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.2, i64 0, i64 0), i8* %20)
%22 = load i32, i32* %4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [5 x float], [5 x float]* %3, i64 0, i64 %23
%25 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), float* %24)
br label %26
26: ; preds = %8
%27 = load i32, i32* %4
%28 = add nsw i32 %27, 1
store i32 %28, i32* %4
br label %5
29: ; preds = %5
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0))
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.5, i64 0, i64 0))
store i32 0, i32* %4
br label %32
32: ; preds = %52, %29
%33 = load i32, i32* %4
%34 = icmp slt i32 %33, 5
br i1 %34, label %35, label %55
35: ; preds = %32
%36 = load i32, i32* %4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [5 x [10 x i8]], [5 x [10 x i8]]* %2, i64 0, i64 %37
%39 = getelementptr inbounds [10 x i8], [10 x i8]* %38, i64 0, i64 0
%40 = load i32, i32* %4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [5 x float], [5 x float]* %3, i64 0, i64 %41
%43 = load float, float* %42
%44 = fpext float %43 to double
%45 = load i32, i32* %4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [5 x float], [5 x float]* %3, i64 0, i64 %46
%48 = load float, float* %47
%49 = fpext float %48 to double
%50 = fmul double %49, 8.000000e-01
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0), i8* %39, double %44, double %50)
br label %52
52: ; preds = %35
%53 = load i32, i32* %4
%54 = add nsw i32 %53, 1
store i32 %54, i32* %4
br label %32
55: ; preds = %32
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.7, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [38 x i8] c"\0AEntre com o nome do funcionario %d: \00"
@.str.1 = [3 x i8] c"%s\00"
@.str.2 = [41 x i8] c"\0AEntre com o salario do funcionario %s: \00"
@.str.3 = [3 x i8] c"%f\00"
@.str.4 = [32 x i8] c"\0AFuncionario\09\09Sal.Bruto\09Sal.Liq\00"
@.str.5 = [44 x i8] c"\0A------------------------------------------\00"
@.str.6 = [19 x i8] c"\0A%s \09\09\09%.2f \09\09%.2f\00"
@.str.7 = [45 x i8] c"\0A-------------------------------------------\00"
define i32 @main() {
%1 = alloca [5 x [10 x i8]]
%2 = alloca [5 x float]
%3 = getelementptr inbounds [5 x [10 x i8]], [5 x [10 x i8]]* %1, i64 0, i64 0, i64 0
%4 = bitcast [5 x float]* %2 to i8*
%5 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i32 1)
%6 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %3)
%7 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.2, i64 0, i64 0), i8* %3)
%8 = getelementptr inbounds [5 x float], [5 x float]* %2, i64 0, i64 0
%9 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), float* %8)
%10 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i32 2)
%11 = getelementptr inbounds [5 x [10 x i8]], [5 x [10 x i8]]* %1, i64 0, i64 1, i64 0
%12 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %11)
%13 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.2, i64 0, i64 0), i8* %11)
%14 = getelementptr inbounds [5 x float], [5 x float]* %2, i64 0, i64 1
%15 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), float* %14)
%16 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i32 3)
%17 = getelementptr inbounds [5 x [10 x i8]], [5 x [10 x i8]]* %1, i64 0, i64 2, i64 0
%18 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %17)
%19 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.2, i64 0, i64 0), i8* %17)
%20 = getelementptr inbounds [5 x float], [5 x float]* %2, i64 0, i64 2
%21 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), float* %20)
%22 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i32 4)
%23 = getelementptr inbounds [5 x [10 x i8]], [5 x [10 x i8]]* %1, i64 0, i64 3, i64 0
%24 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %23)
%25 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.2, i64 0, i64 0), i8* %23)
%26 = getelementptr inbounds [5 x float], [5 x float]* %2, i64 0, i64 3
%27 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), float* %26)
%28 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i32 5)
%29 = getelementptr inbounds [5 x [10 x i8]], [5 x [10 x i8]]* %1, i64 0, i64 4, i64 0
%30 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %29)
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.2, i64 0, i64 0), i8* %29)
%32 = getelementptr inbounds [5 x float], [5 x float]* %2, i64 0, i64 4
%33 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), float* %32)
%34 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0))
%35 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str.5, i64 0, i64 0))
%36 = load float, float* %8
%37 = fpext float %36 to double
%38 = fmul double %37, 8.000000e-01
%39 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0), i8* %3, double %37, double %38)
%40 = load float, float* %14
%41 = fpext float %40 to double
%42 = fmul double %41, 8.000000e-01
%43 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0), i8* %11, double %41, double %42)
%44 = load float, float* %20
%45 = fpext float %44 to double
%46 = fmul double %45, 8.000000e-01
%47 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0), i8* %17, double %45, double %46)
%48 = load float, float* %26
%49 = fpext float %48 to double
%50 = fmul double %49, 8.000000e-01
%51 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0), i8* %23, double %49, double %50)
%52 = load float, float* %32
%53 = fpext float %52 to double
%54 = fmul double %53, 8.000000e-01
%55 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0), i8* %29, double %53, double %54)
%56 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @.str.7, i64 0, i64 0))
ret i32 0
}