#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 *, double);
double sueldo(int, float);
int main() {
  int a;
  float b;
  a = 90;
  b = 10.0;
  printf("%f\n", sueldo(a, b));
  a = 15;
  b = 10.0;
  printf("%f\n", sueldo(a, b));
  a = 32;
  b = -10.0;
  printf("%f\n", sueldo(a, b));
  a = 43;
  b = 10.0;
  printf("%f\n", sueldo(a, b));
  a = 50;
  b = 10.0;
  printf("%f\n", sueldo(a, b));
  a = 10;
  b = 10.0;
  printf("%f\n", sueldo(a, b));
  a = 45;
  b = 10.0;
  printf("%f\n", sueldo(a, b));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x5a,-0x8(%rbp)
movss  0xec2(%rip),%xmm0
movss  %xmm0,-0xc(%rbp)
mov    -0x8(%rbp),%edi
movss  -0xc(%rbp),%xmm0
call   1040 <sueldo@plt>
lea    0xeb1(%rip),%rdi
call   1030 <printf@plt>
movl   $0xf,-0x8(%rbp)
movss  0xe95(%rip),%xmm0
movss  %xmm0,-0xc(%rbp)
mov    -0x8(%rbp),%edi
movss  -0xc(%rbp),%xmm0
call   1040 <sueldo@plt>
lea    0xe84(%rip),%rdi
call   1030 <printf@plt>
movl   $0x20,-0x8(%rbp)
movss  0xe6c(%rip),%xmm0
movss  %xmm0,-0xc(%rbp)
mov    -0x8(%rbp),%edi
movss  -0xc(%rbp),%xmm0
call   1040 <sueldo@plt>
lea    0xe57(%rip),%rdi
call   1030 <printf@plt>
movl   $0x2b,-0x8(%rbp)
movss  0xe3b(%rip),%xmm0
movss  %xmm0,-0xc(%rbp)
mov    -0x8(%rbp),%edi
movss  -0xc(%rbp),%xmm0
call   1040 <sueldo@plt>
lea    0xe2a(%rip),%rdi
call   1030 <printf@plt>
movl   $0x32,-0x8(%rbp)
movss  0xe0e(%rip),%xmm0
movss  %xmm0,-0xc(%rbp)
mov    -0x8(%rbp),%edi
movss  -0xc(%rbp),%xmm0
call   1040 <sueldo@plt>
lea    0xdfd(%rip),%rdi
call   1030 <printf@plt>
movl   $0xa,-0x8(%rbp)
movss  0xde1(%rip),%xmm0
movss  %xmm0,-0xc(%rbp)
mov    -0x8(%rbp),%edi
movss  -0xc(%rbp),%xmm0
call   1040 <sueldo@plt>
lea    0xdd0(%rip),%rdi
call   1030 <printf@plt>
movl   $0x2d,-0x8(%rbp)
movss  0xdb4(%rip),%xmm0
movss  %xmm0,-0xc(%rbp)
mov    -0x8(%rbp),%edi
movss  -0xc(%rbp),%xmm0
call   1040 <sueldo@plt>
lea    0xda3(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
movss  0xed7(%rip),%xmm0
mov    $0x5a,%edi
call   1040 <sueldo@plt>
lea    0xece(%rip),%rbx
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    $0xf,%edi
movss  0xeb1(%rip),%xmm0
call   1040 <sueldo@plt>
mov    %rbx,%rdi
call   1030 <printf@plt>
movss  0xea0(%rip),%xmm0
mov    $0x20,%edi
call   1040 <sueldo@plt>
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    $0x2b,%edi
movss  0xe7d(%rip),%xmm0
call   1040 <sueldo@plt>
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    $0x32,%edi
movss  0xe63(%rip),%xmm0
call   1040 <sueldo@plt>
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    $0xa,%edi
movss  0xe49(%rip),%xmm0
call   1040 <sueldo@plt>
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    $0x2d,%edi
movss  0xe2f(%rip),%xmm0
call   1040 <sueldo@plt>
mov    %rbx,%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca float
store i32 0, i32* %1
store i32 90, i32* %2
store float 1.000000e+01, float* %3
%4 = load i32, i32* %2
%5 = load float, float* %3
%6 = call double @sueldo(i32 %4, float %5)
%7 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double %6)
store i32 15, i32* %2
store float 1.000000e+01, float* %3
%8 = load i32, i32* %2
%9 = load float, float* %3
%10 = call double @sueldo(i32 %8, float %9)
%11 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double %10)
store i32 32, i32* %2
store float -1.000000e+01, float* %3
%12 = load i32, i32* %2
%13 = load float, float* %3
%14 = call double @sueldo(i32 %12, float %13)
%15 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double %14)
store i32 43, i32* %2
store float 1.000000e+01, float* %3
%16 = load i32, i32* %2
%17 = load float, float* %3
%18 = call double @sueldo(i32 %16, float %17)
%19 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double %18)
store i32 50, i32* %2
store float 1.000000e+01, float* %3
%20 = load i32, i32* %2
%21 = load float, float* %3
%22 = call double @sueldo(i32 %20, float %21)
%23 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double %22)
store i32 10, i32* %2
store float 1.000000e+01, float* %3
%24 = load i32, i32* %2
%25 = load float, float* %3
%26 = call double @sueldo(i32 %24, float %25)
%27 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double %26)
store i32 45, i32* %2
store float 1.000000e+01, float* %3
%28 = load i32, i32* %2
%29 = load float, float* %3
%30 = call double @sueldo(i32 %28, float %29)
%31 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double %30)
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"%f\0A\00"
define i32 @main() {
%1 = tail call double @sueldo(i32 90, float 1.000000e+01)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double %1)
%3 = tail call double @sueldo(i32 15, float 1.000000e+01)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double %3)
%5 = tail call double @sueldo(i32 32, float -1.000000e+01)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double %5)
%7 = tail call double @sueldo(i32 43, float 1.000000e+01)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double %7)
%9 = tail call double @sueldo(i32 50, float 1.000000e+01)
%10 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double %9)
%11 = tail call double @sueldo(i32 10, float 1.000000e+01)
%12 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double %11)
%13 = tail call double @sueldo(i32 45, float 1.000000e+01)
%14 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double %13)
ret i32 0
}