#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*/ scanf(char *, int *, int *, float *);
int main() {
  int NUMBER, HOURS;
  float VALUE, SALARY;
  scanf("%d %d %f", &NUMBER, &HOURS, &VALUE);
  SALARY = HOURS * VALUE;
  printf("NUMBER = %i\n", NUMBER);
  printf("SALARY = U$ %.2f\n", SALARY);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
lea    -0x10(%rbp),%rcx
call   1040 <scanf@plt>
cvtsi2ssl -0xc(%rbp),%xmm0
mulss  -0x10(%rbp),%xmm0
movss  %xmm0,-0x14(%rbp)
cvtsi2ssl -0x8(%rbp),%xmm0
lea    0xea7(%rip),%rdi
call   1030 <printf@plt>
movss  -0x14(%rbp),%xmm0
lea    0xea3(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
lea    0xed5(%rip),%rdi
lea    0x14(%rsp),%rsi
lea    0x10(%rsp),%rdx
lea    0xc(%rsp),%rcx
call   1040 <scanf@plt>
cvtsi2ssl 0x10(%rsp),%xmm0
mulss  0xc(%rsp),%xmm0
movss  %xmm0,0x8(%rsp)
xorps  %xmm0,%xmm0
cvtsi2ssl 0x14(%rsp),%xmm0
lea    0xea8(%rip),%rdi
call   1030 <printf@plt>
lea    0xea9(%rip),%rdi
movss  0x8(%rsp),%xmm0
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@.str = [9 x i8] c"%d %d %f\00"
@.str.1 = [13 x i8] c"NUMBER = %i\0A\00"
@.str.2 = [18 x i8] c"SALARY = U$ %.2f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca float
%5 = alloca float
store i32 0, i32* %1
%6 = call i32 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %2, i32* %3, float* %4)
%7 = load i32, i32* %3
%8 = sitofp i32 %7 to float
%9 = load float, float* %4
%10 = fmul float %8, %9
store float %10, float* %5
%11 = load i32, i32* %2
%12 = sitofp i32 %11 to float
%13 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), float %12)
%14 = load float, float* %5
%15 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), float %14)
ret i32 0
}

LLVM IR (-O2):
@.str = [9 x i8] c"%d %d %f\00"
@.str.1 = [13 x i8] c"NUMBER = %i\0A\00"
@.str.2 = [18 x i8] c"SALARY = U$ %.2f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca float
%4 = bitcast i32* %1 to i8*
%5 = bitcast i32* %2 to i8*
%6 = bitcast float* %3 to i8*
%7 = call i32 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2, float* %3)
%8 = load i32, i32* %2
%9 = sitofp i32 %8 to float
%10 = load float, float* %3
%11 = fmul float %10, %9
%12 = load i32, i32* %1
%13 = sitofp i32 %12 to float
%14 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), float %13)
%15 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), float %11)
ret i32 0
}