#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 floor(int);
int makeIntoCents(float);
float makeIntoDollars(int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, ...);
int main(void) {
  float weeksProfitDollars;
  int weeksProfitCents;
  char F_Name[21] = "";
  char L_Name[21] = "";
  int IDNum;
  int years;
  float salesAmtDollars;
  int salesAmtCents;
  float commissionDollars;
  int commissionCents;
  float bonusDollars;
  int bonusCents;
  float grossSalDollars;
  int grossSalCents;
  float retirementDollars;
  int retirementCents;
  float stateTaxDollars;
  int stateTaxCents;
  float fedTaxDollars;
  int fedTaxCents;
  float totalDedDollars;
  int totalDedCents;
  float netSalaryDollars;
  int netSalaryCents;
  printf("\nEnter profit for the week: $ ");
  scanf("%f", &weeksProfitDollars);
  printf("Enter information for the employee:\n");
  printf("Enter First Name: ");
  scanf("%s", F_Name);
  printf("Enter Last Name: ");
  scanf("%s", L_Name);
  printf("Enter ID Number: ");
  scanf("%d", &IDNum);
  printf("Enter Years of Experience: ");
  scanf("%d", &years);
  printf("Enter Sales amount: $ ");
  scanf("%f", &salesAmtDollars);
  salesAmtCents = makeIntoCents(salesAmtDollars);
  weeksProfitCents = makeIntoCents(weeksProfitDollars);
  commissionCents = floor((salesAmtCents * (12.5 / 100)) + 0.5);
  bonusCents = floor(((years * (weeksProfitCents * (0.5 / 100))) + 5000) + 0.5);
  grossSalCents = commissionCents + bonusCents;
  retirementCents = floor((grossSalCents * (8.0 / 100)) + 0.5);
  stateTaxCents = floor((grossSalCents * (10.0 / 100)) + 0.5);
  fedTaxCents = floor((grossSalCents * (25.0 / 100)) + 0.5);
  totalDedCents = retirementCents + stateTaxCents + fedTaxCents;
  netSalaryCents = grossSalCents - totalDedCents;
  salesAmtDollars = makeIntoDollars(salesAmtCents);
  commissionDollars = makeIntoDollars(commissionCents);
  bonusDollars = makeIntoDollars(bonusCents);
  grossSalDollars = makeIntoDollars(grossSalCents);
  retirementDollars = makeIntoDollars(retirementCents);
  stateTaxDollars = makeIntoDollars(stateTaxCents);
  fedTaxDollars = makeIntoDollars(fedTaxCents);
  totalDedDollars = makeIntoDollars(totalDedCents);
  netSalaryDollars = makeIntoDollars(netSalaryCents);
  printf("\n\nPayroll report for %s %s, Id number %d:", F_Name, L_Name, IDNum);
  printf("\nSales:\t\t\t$ %10.2f", salesAmtDollars);
  printf("\nCommission:\t\t$ %10.2f", commissionDollars);
  printf("\nBonus:\t\t\t$ %10.2f", bonusDollars);
  printf("\nGross Salary:\t\t$ %10.2f", grossSalDollars);
  printf("\nRetirement:\t\t$ %10.2f", retirementDollars);
  printf("\nState Tax:\t\t$ %10.2f", stateTaxDollars);
  printf("\nFederal Tax:\t\t$ %10.2f", fedTaxDollars);
  printf("\nTotal Deductions:\t$ %10.2f", totalDedDollars);
  printf("\nNet Salary:\t\t$ %10.2f\n\n", netSalaryDollars);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x30(%rbp),%rdi
xor    %esi,%esi
mov    $0x15,%edx
call   1040 <memset@plt>
lea    -0x50(%rbp),%rdi
xor    %esi,%esi
mov    $0x15,%edx
call   1040 <memset@plt>
lea    0xe9f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeb0(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x0,%al
call   1060 <scanf@plt>
lea    0xea1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeb8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x30(%rbp),%rsi
lea    0xeb9(%rip),%rdi
mov    $0x0,%al
call   1060 <scanf@plt>
lea    0xeae(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x50(%rbp),%rsi
lea    0xe99(%rip),%rdi
mov    $0x0,%al
call   1060 <scanf@plt>
lea    0xea0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xea4(%rip),%rdi
lea    -0x54(%rbp),%rsi
mov    $0x0,%al
call   1060 <scanf@plt>
lea    0xe95(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe84(%rip),%rdi
lea    -0x58(%rbp),%rsi
mov    $0x0,%al
call   1060 <scanf@plt>
lea    0xe91(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe02(%rip),%rdi
lea    -0x5c(%rbp),%rsi
mov    $0x0,%al
call   1060 <scanf@plt>
movss  -0x5c(%rbp),%xmm0
call   1070 <makeIntoCents@plt>
mov    %eax,-0x60(%rbp)
movss  -0x8(%rbp),%xmm0
call   1070 <makeIntoCents@plt>
mov    %eax,-0xc(%rbp)
cvtsi2sdl -0x60(%rbp),%xmm0
movsd  0xda9(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xd75(%rip),%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1080 <floor@plt>
mov    %eax,-0x68(%rbp)
cvtsi2sdl -0x58(%rbp),%xmm0
cvtsi2sdl -0xc(%rbp),%xmm1
movsd  0xd73(%rip),%xmm2
mulsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  0xd5b(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  0xd37(%rip),%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1080 <floor@plt>
mov    %eax,-0x70(%rbp)
mov    -0x68(%rbp),%eax
add    -0x70(%rbp),%eax
mov    %eax,-0x78(%rbp)
cvtsi2sdl -0x78(%rbp),%xmm0
movsd  0xd21(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xd05(%rip),%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1080 <floor@plt>
mov    %eax,-0x80(%rbp)
cvtsi2sdl -0x78(%rbp),%xmm0
movsd  0xcf0(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xcdc(%rip),%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1080 <floor@plt>
mov    %eax,-0x88(%rbp)
cvtsi2sdl -0x78(%rbp),%xmm0
movsd  0xcb4(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xcb0(%rip),%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1080 <floor@plt>
mov    %eax,-0x90(%rbp)
mov    -0x80(%rbp),%eax
add    -0x88(%rbp),%eax
add    -0x90(%rbp),%eax
mov    %eax,-0x98(%rbp)
mov    -0x78(%rbp),%eax
sub    -0x98(%rbp),%eax
mov    %eax,-0xa0(%rbp)
mov    -0x60(%rbp),%edi
call   1050 <makeIntoDollars@plt>
movss  %xmm0,-0x5c(%rbp)
mov    -0x68(%rbp),%edi
call   1050 <makeIntoDollars@plt>
movss  %xmm0,-0x64(%rbp)
mov    -0x70(%rbp),%edi
call   1050 <makeIntoDollars@plt>
movss  %xmm0,-0x6c(%rbp)
mov    -0x78(%rbp),%edi
call   1050 <makeIntoDollars@plt>
movss  %xmm0,-0x74(%rbp)
mov    -0x80(%rbp),%edi
call   1050 <makeIntoDollars@plt>
movss  %xmm0,-0x7c(%rbp)
mov    -0x88(%rbp),%edi
call   1050 <makeIntoDollars@plt>
movss  %xmm0,-0x84(%rbp)
ff
mov    -0x90(%rbp),%edi
call   1050 <makeIntoDollars@plt>
movss  %xmm0,-0x8c(%rbp)
ff
mov    -0x98(%rbp),%edi
call   1050 <makeIntoDollars@plt>
movss  %xmm0,-0x94(%rbp)
ff
mov    -0xa0(%rbp),%edi
call   1050 <makeIntoDollars@plt>
movss  %xmm0,-0x9c(%rbp)
ff
lea    -0x30(%rbp),%rsi
lea    -0x50(%rbp),%rdx
mov    -0x54(%rbp),%ecx
lea    0xcc1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0x5c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xcd4(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0x64(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xcd0(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0x6c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xcd0(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0x74(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xccc(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0x7c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xcce(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0x84(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
lea    0xccb(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0x8c(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
lea    0xcc7(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0x94(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
lea    0xcc5(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0x9c(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
lea    0xcc7(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
xorps  %xmm0,%xmm0
movaps %xmm0,0x60(%rsp)
movq   $0x0,0x6d(%rsp)
movaps %xmm0,0x40(%rsp)
movq   $0x0,0x4d(%rsp)
lea    0xea4(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeb5(%rip),%rbp
lea    0x3c(%rsp),%rsi
mov    %rbp,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0x100c(%rip),%rdi
call   1030 <puts@plt>
lea    0xe96(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe9b(%rip),%rbx
lea    0x60(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xe88(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x40(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xe7d(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe81(%rip),%rbx
lea    0x38(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xe6e(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x34(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xe6d(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x4(%rsp),%rsi
mov    %rbp,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
movss  0x4(%rsp),%xmm0
call   1070 <makeIntoCents@plt>
mov    %eax,%ebp
mov    %eax,(%rsp)
movss  0x3c(%rsp),%xmm0
call   1070 <makeIntoCents@plt>
mov    %eax,%ebx
xorps  %xmm0,%xmm0
cvtsi2sd %ebp,%xmm0
mulsd  0xd78(%rip),%xmm0
addsd  0xd78(%rip),%xmm0
cvttsd2si %xmm0,%edi
call   1080 <floor@plt>
xorps  %xmm0,%xmm0
cvtsi2sdl 0x34(%rsp),%xmm0
cvtsi2sd %ebx,%xmm1
mulsd  0xd62(%rip),%xmm1
mulsd  %xmm0,%xmm1
addsd  0xd5e(%rip),%xmm1
mov    %eax,%ebx
mov    %rbx,0x10(%rsp)
addsd  0xd3f(%rip),%xmm1
cvttsd2si %xmm1,%edi
call   1080 <floor@plt>
mov    %rax,0x18(%rsp)
lea    (%rax,%rbx,1),%r15d
xorps  %xmm1,%xmm1
cvtsi2sd %r15d,%xmm1
movsd  %xmm1,0x8(%rsp)
movsd  0xd2f(%rip),%xmm0
mulsd  %xmm1,%xmm0
addsd  0xd0b(%rip),%xmm0
cvttsd2si %xmm0,%edi
call   1080 <floor@plt>
mov    %eax,%r14d
movsd  0xd17(%rip),%xmm0
mulsd  0x8(%rsp),%xmm0
addsd  0xce9(%rip),%xmm0
cvttsd2si %xmm0,%edi
call   1080 <floor@plt>
movsd  0x8(%rsp),%xmm0
mulsd  0xcfa(%rip),%xmm0
mov    %eax,%r12d
addsd  0xcc7(%rip),%xmm0
cvttsd2si %xmm0,%edi
call   1080 <floor@plt>
mov    %eax,%ebx
lea    (%r12,%r14,1),%r13d
add    %eax,%r13d
mov    %r15d,%ebp
sub    %r13d,%ebp
mov    (%rsp),%edi
call   1050 <makeIntoDollars@plt>
movss  %xmm0,0x4(%rsp)
mov    0x10(%rsp),%rdi
call   1050 <makeIntoDollars@plt>
movss  %xmm0,0x24(%rsp)
mov    0x18(%rsp),%rdi
call   1050 <makeIntoDollars@plt>
movss  %xmm0,0x28(%rsp)
mov    %r15d,%edi
call   1050 <makeIntoDollars@plt>
movss  %xmm0,0x2c(%rsp)
mov    %r14d,%edi
call   1050 <makeIntoDollars@plt>
movss  %xmm0,0x30(%rsp)
mov    %r12d,%edi
call   1050 <makeIntoDollars@plt>
movss  %xmm0,0x10(%rsp)
mov    %ebx,%edi
call   1050 <makeIntoDollars@plt>
movss  %xmm0,0x18(%rsp)
mov    %r13d,%edi
call   1050 <makeIntoDollars@plt>
movss  %xmm0,(%rsp)
mov    %ebp,%edi
call   1050 <makeIntoDollars@plt>
movss  %xmm0,0x8(%rsp)
mov    0x38(%rsp),%ecx
lea    0xce7(%rip),%rdi
lea    0x60(%rsp),%rsi
lea    0x40(%rsp),%rdx
xor    %eax,%eax
call   1040 <printf@plt>
movss  0x4(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xcef(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0x24(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xcea(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0x28(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xce9(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0x2c(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xce4(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0x30(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xce5(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0x10(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xce4(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0x18(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xce2(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  (%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xce3(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0x8(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xce7(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [31 x i8] c"\0AEnter profit for the week: $ \00"
@.str.1 = [3 x i8] c"%f\00"
@.str.2 = [37 x i8] c"Enter information for the employee:\0A\00"
@.str.3 = [19 x i8] c"Enter First Name: \00"
@.str.4 = [3 x i8] c"%s\00"
@.str.5 = [18 x i8] c"Enter Last Name: \00"
@.str.6 = [18 x i8] c"Enter ID Number: \00"
@.str.7 = [3 x i8] c"%d\00"
@.str.8 = [28 x i8] c"Enter Years of Experience: \00"
@.str.9 = [23 x i8] c"Enter Sales amount: $ \00"
@.str.10 = [42 x i8] c"\0A\0APayroll report for %s %s, Id number %d:\00"
@.str.11 = [19 x i8] c"\0ASales:\09\09\09$ %10.2f\00"
@.str.12 = [23 x i8] c"\0ACommission:\09\09$ %10.2f\00"
@.str.13 = [19 x i8] c"\0ABonus:\09\09\09$ %10.2f\00"
@.str.14 = [25 x i8] c"\0AGross Salary:\09\09$ %10.2f\00"
@.str.15 = [23 x i8] c"\0ARetirement:\09\09$ %10.2f\00"
@.str.16 = [22 x i8] c"\0AState Tax:\09\09$ %10.2f\00"
@.str.17 = [24 x i8] c"\0AFederal Tax:\09\09$ %10.2f\00"
@.str.18 = [28 x i8] c"\0ATotal Deductions:\09$ %10.2f\00"
@.str.19 = [25 x i8] c"\0ANet Salary:\09\09$ %10.2f\0A\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca i32
%4 = alloca [21 x i8]
%5 = alloca [21 x i8]
%6 = alloca i32
%7 = alloca i32
%8 = alloca float
%9 = alloca i32
%10 = alloca float
%11 = alloca i32
%12 = alloca float
%13 = alloca i32
%14 = alloca float
%15 = alloca i32
%16 = alloca float
%17 = alloca i32
%18 = alloca float
%19 = alloca i32
%20 = alloca float
%21 = alloca i32
%22 = alloca float
%23 = alloca i32
%24 = alloca float
%25 = alloca i32
store i32 0, i32* %1
%26 = bitcast [21 x i8]* %4 to i8*
%27 = bitcast [21 x i8]* %5 to i8*
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0))
%29 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %2)
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0))
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0))
%32 = getelementptr inbounds [21 x i8], [21 x i8]* %4, i64 0, i64 0
%33 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* %32)
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0))
%35 = getelementptr inbounds [21 x i8], [21 x i8]* %5, i64 0, i64 0
%36 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* %35)
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0))
%38 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32* %6)
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.8, i64 0, i64 0))
%40 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32* %7)
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.9, i64 0, i64 0))
%42 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %8)
%43 = load float, float* %8
%44 = call i32 @makeIntoCents(float %43)
store i32 %44, i32* %9
%45 = load float, float* %2
%46 = call i32 @makeIntoCents(float %45)
store i32 %46, i32* %3
%47 = load i32, i32* %9
%48 = sitofp i32 %47 to double
%49 = call double @llvm.fmuladd.f64(double %48, double 1.250000e-01, double 5.000000e-01)
%50 = fptosi double %49 to i32
%51 = call i32 @floor(i32 %50)
store i32 %51, i32* %11
%52 = load i32, i32* %7
%53 = sitofp i32 %52 to double
%54 = load i32, i32* %3
%55 = sitofp i32 %54 to double
%56 = fmul double %55, 5.000000e-03
%57 = call double @llvm.fmuladd.f64(double %53, double %56, double 5.000000e+03)
%58 = fadd double %57, 5.000000e-01
%59 = fptosi double %58 to i32
%60 = call i32 @floor(i32 %59)
store i32 %60, i32* %13
%61 = load i32, i32* %11
%62 = load i32, i32* %13
%63 = add nsw i32 %61, %62
store i32 %63, i32* %15
%64 = load i32, i32* %15
%65 = sitofp i32 %64 to double
%66 = call double @llvm.fmuladd.f64(double %65, double 8.000000e-02, double 5.000000e-01)
%67 = fptosi double %66 to i32
%68 = call i32 @floor(i32 %67)
store i32 %68, i32* %17
%69 = load i32, i32* %15
%70 = sitofp i32 %69 to double
%71 = call double @llvm.fmuladd.f64(double %70, double 1.000000e-01, double 5.000000e-01)
%72 = fptosi double %71 to i32
%73 = call i32 @floor(i32 %72)
store i32 %73, i32* %19
%74 = load i32, i32* %15
%75 = sitofp i32 %74 to double
%76 = call double @llvm.fmuladd.f64(double %75, double 2.500000e-01, double 5.000000e-01)
%77 = fptosi double %76 to i32
%78 = call i32 @floor(i32 %77)
store i32 %78, i32* %21
%79 = load i32, i32* %17
%80 = load i32, i32* %19
%81 = add nsw i32 %79, %80
%82 = load i32, i32* %21
%83 = add nsw i32 %81, %82
store i32 %83, i32* %23
%84 = load i32, i32* %15
%85 = load i32, i32* %23
%86 = sub nsw i32 %84, %85
store i32 %86, i32* %25
%87 = load i32, i32* %9
%88 = call float @makeIntoDollars(i32 %87)
store float %88, float* %8
%89 = load i32, i32* %11
%90 = call float @makeIntoDollars(i32 %89)
store float %90, float* %10
%91 = load i32, i32* %13
%92 = call float @makeIntoDollars(i32 %91)
store float %92, float* %12
%93 = load i32, i32* %15
%94 = call float @makeIntoDollars(i32 %93)
store float %94, float* %14
%95 = load i32, i32* %17
%96 = call float @makeIntoDollars(i32 %95)
store float %96, float* %16
%97 = load i32, i32* %19
%98 = call float @makeIntoDollars(i32 %97)
store float %98, float* %18
%99 = load i32, i32* %21
%100 = call float @makeIntoDollars(i32 %99)
store float %100, float* %20
%101 = load i32, i32* %23
%102 = call float @makeIntoDollars(i32 %101)
store float %102, float* %22
%103 = load i32, i32* %25
%104 = call float @makeIntoDollars(i32 %103)
store float %104, float* %24
%105 = getelementptr inbounds [21 x i8], [21 x i8]* %4, i64 0, i64 0
%106 = getelementptr inbounds [21 x i8], [21 x i8]* %5, i64 0, i64 0
%107 = load i32, i32* %6
%108 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.10, i64 0, i64 0), i8* %105, i8* %106, i32 %107)
%109 = load float, float* %8
%110 = fpext float %109 to double
%111 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.11, i64 0, i64 0), double %110)
%112 = load float, float* %10
%113 = fpext float %112 to double
%114 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.12, i64 0, i64 0), double %113)
%115 = load float, float* %12
%116 = fpext float %115 to double
%117 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.13, i64 0, i64 0), double %116)
%118 = load float, float* %14
%119 = fpext float %118 to double
%120 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.14, i64 0, i64 0), double %119)
%121 = load float, float* %16
%122 = fpext float %121 to double
%123 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.15, i64 0, i64 0), double %122)
%124 = load float, float* %18
%125 = fpext float %124 to double
%126 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.16, i64 0, i64 0), double %125)
%127 = load float, float* %20
%128 = fpext float %127 to double
%129 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.17, i64 0, i64 0), double %128)
%130 = load float, float* %22
%131 = fpext float %130 to double
%132 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.18, i64 0, i64 0), double %131)
%133 = load float, float* %24
%134 = fpext float %133 to double
%135 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.19, i64 0, i64 0), double %134)
ret i32 0
}

LLVM IR (-O2):
@.str = [31 x i8] c"\0AEnter profit for the week: $ \00"
@.str.1 = [3 x i8] c"%f\00"
@.str.3 = [19 x i8] c"Enter First Name: \00"
@.str.4 = [3 x i8] c"%s\00"
@.str.5 = [18 x i8] c"Enter Last Name: \00"
@.str.6 = [18 x i8] c"Enter ID Number: \00"
@.str.7 = [3 x i8] c"%d\00"
@.str.8 = [28 x i8] c"Enter Years of Experience: \00"
@.str.9 = [23 x i8] c"Enter Sales amount: $ \00"
@.str.10 = [42 x i8] c"\0A\0APayroll report for %s %s, Id number %d:\00"
@.str.11 = [19 x i8] c"\0ASales:\09\09\09$ %10.2f\00"
@.str.12 = [23 x i8] c"\0ACommission:\09\09$ %10.2f\00"
@.str.13 = [19 x i8] c"\0ABonus:\09\09\09$ %10.2f\00"
@.str.14 = [25 x i8] c"\0AGross Salary:\09\09$ %10.2f\00"
@.str.15 = [23 x i8] c"\0ARetirement:\09\09$ %10.2f\00"
@.str.16 = [22 x i8] c"\0AState Tax:\09\09$ %10.2f\00"
@.str.17 = [24 x i8] c"\0AFederal Tax:\09\09$ %10.2f\00"
@.str.18 = [28 x i8] c"\0ATotal Deductions:\09$ %10.2f\00"
@.str.19 = [25 x i8] c"\0ANet Salary:\09\09$ %10.2f\0A\0A\00"
@str = [36 x i8] c"Enter information for the employee:\00"
define i32 @main() {
%1 = alloca float
%2 = alloca [21 x i8]
%3 = alloca [21 x i8]
%4 = alloca i32
%5 = alloca i32
%6 = alloca float
%7 = bitcast float* %1 to i8*
%8 = getelementptr inbounds [21 x i8], [21 x i8]* %2, i64 0, i64 0
%9 = getelementptr inbounds [21 x i8], [21 x i8]* %3, i64 0, i64 0
%10 = bitcast i32* %4 to i8*
%11 = bitcast i32* %5 to i8*
%12 = bitcast float* %6 to i8*
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0))
%14 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %1)
%15 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0))
%17 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* %8)
%18 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0))
%19 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* %9)
%20 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0))
%21 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32* %4)
%22 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.8, i64 0, i64 0))
%23 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32* %5)
%24 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.9, i64 0, i64 0))
%25 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %6)
%26 = load float, float* %6
%27 = call i32 @makeIntoCents(float %26)
%28 = load float, float* %1
%29 = call i32 @makeIntoCents(float %28)
%30 = sitofp i32 %27 to double
%31 = call double @llvm.fmuladd.f64(double %30, double 1.250000e-01, double 5.000000e-01)
%32 = fptosi double %31 to i32
%33 = call i32 @floor(i32 %32)
%34 = load i32, i32* %5
%35 = sitofp i32 %34 to double
%36 = sitofp i32 %29 to double
%37 = fmul double %36, 5.000000e-03
%38 = call double @llvm.fmuladd.f64(double %35, double %37, double 5.000000e+03)
%39 = fadd double %38, 5.000000e-01
%40 = fptosi double %39 to i32
%41 = call i32 @floor(i32 %40)
%42 = add nsw i32 %41, %33
%43 = sitofp i32 %42 to double
%44 = call double @llvm.fmuladd.f64(double %43, double 8.000000e-02, double 5.000000e-01)
%45 = fptosi double %44 to i32
%46 = call i32 @floor(i32 %45)
%47 = call double @llvm.fmuladd.f64(double %43, double 1.000000e-01, double 5.000000e-01)
%48 = fptosi double %47 to i32
%49 = call i32 @floor(i32 %48)
%50 = call double @llvm.fmuladd.f64(double %43, double 2.500000e-01, double 5.000000e-01)
%51 = fptosi double %50 to i32
%52 = call i32 @floor(i32 %51)
%53 = add nsw i32 %49, %46
%54 = add nsw i32 %53, %52
%55 = sub nsw i32 %42, %54
%56 = call float @makeIntoDollars(i32 %27)
store float %56, float* %6
%57 = call float @makeIntoDollars(i32 %33)
%58 = call float @makeIntoDollars(i32 %41)
%59 = call float @makeIntoDollars(i32 %42)
%60 = call float @makeIntoDollars(i32 %46)
%61 = call float @makeIntoDollars(i32 %49)
%62 = call float @makeIntoDollars(i32 %52)
%63 = call float @makeIntoDollars(i32 %54)
%64 = call float @makeIntoDollars(i32 %55)
%65 = load i32, i32* %4
%66 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.10, i64 0, i64 0), i8* %8, i8* %9, i32 %65)
%67 = load float, float* %6
%68 = fpext float %67 to double
%69 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.11, i64 0, i64 0), double %68)
%70 = fpext float %57 to double
%71 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.12, i64 0, i64 0), double %70)
%72 = fpext float %58 to double
%73 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.13, i64 0, i64 0), double %72)
%74 = fpext float %59 to double
%75 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.14, i64 0, i64 0), double %74)
%76 = fpext float %60 to double
%77 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.15, i64 0, i64 0), double %76)
%78 = fpext float %61 to double
%79 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.16, i64 0, i64 0), double %78)
%80 = fpext float %62 to double
%81 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.17, i64 0, i64 0), double %80)
%82 = fpext float %63 to double
%83 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.18, i64 0, i64 0), double %82)
%84 = fpext float %64 to double
%85 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.19, i64 0, i64 0), double %84)
ret i32 0
}