#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 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 = (salesAmtCents * (12.5 / 100)) + 0.5;
  bonusCents = ((years * (weeksProfitCents * (0.5 / 100))) + 5000) + 0.5;
  grossSalCents = commissionCents + bonusCents;
  retirementCents = (grossSalCents * (8.0 / 100)) + 0.5;
  stateTaxCents = (grossSalCents * (10.0 / 100)) + 0.5;
  fedTaxCents = (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    0xeaf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xec0(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x0,%al
call   1060 <scanf@plt>
lea    0xeb1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xec8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x30(%rbp),%rsi
lea    0xec9(%rip),%rdi
mov    $0x0,%al
call   1060 <scanf@plt>
lea    0xebe(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x50(%rbp),%rsi
lea    0xea9(%rip),%rdi
mov    $0x0,%al
call   1060 <scanf@plt>
lea    0xeb0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeb4(%rip),%rdi
lea    -0x54(%rbp),%rsi
mov    $0x0,%al
call   1060 <scanf@plt>
lea    0xea5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe94(%rip),%rdi
lea    -0x58(%rbp),%rsi
mov    $0x0,%al
call   1060 <scanf@plt>
lea    0xea1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe12(%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  0xdb9(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xd85(%rip),%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0x68(%rbp)
cvtsi2sdl -0x58(%rbp),%xmm0
cvtsi2sdl -0xc(%rbp),%xmm1
movsd  0xd88(%rip),%xmm2
mulsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  0xd70(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  0xd4c(%rip),%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0x70(%rbp)
mov    -0x68(%rbp),%eax
add    -0x70(%rbp),%eax
mov    %eax,-0x78(%rbp)
cvtsi2sdl -0x78(%rbp),%xmm0
movsd  0xd3b(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xd1f(%rip),%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0x80(%rbp)
cvtsi2sdl -0x78(%rbp),%xmm0
movsd  0xd0f(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xcfb(%rip),%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0x88(%rbp)
cvtsi2sdl -0x78(%rbp),%xmm0
movsd  0xcd8(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xcd4(%rip),%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%eax
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    0xcea(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0x5c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xcfd(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0x64(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xcf9(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0x6c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xcf9(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0x74(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xcf5(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0x7c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xcf7(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0x84(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
lea    0xcf4(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0x8c(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
lea    0xcf0(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0x94(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
lea    0xcee(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0x9c(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
lea    0xcf0(%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    0xecc(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xedd(%rip),%rbx
lea    0x3c(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0x1034(%rip),%rdi
call   1030 <puts@plt>
lea    0xebe(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xec3(%rip),%rbp
lea    0x60(%rsp),%rsi
mov    %rbp,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xeb0(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x40(%rsp),%rsi
mov    %rbp,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xea5(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xea9(%rip),%rbp
lea    0x38(%rsp),%rsi
mov    %rbp,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xe96(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x34(%rsp),%rsi
mov    %rbp,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xe95(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
movss  0xc(%rsp),%xmm0
call   1070 <makeIntoCents@plt>
mov    %eax,%ebx
movss  0x3c(%rsp),%xmm0
call   1070 <makeIntoCents@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %ebx,%xmm0
mov    %ebx,%edi
mulsd  0xd8b(%rip),%xmm0
movsd  0xd8b(%rip),%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%ecx
mov    %rcx,0x10(%rsp)
xorps  %xmm0,%xmm0
cvtsi2sdl 0x34(%rsp),%xmm0
cvtsi2sd %eax,%xmm2
mulsd  0xd71(%rip),%xmm2
mulsd  %xmm0,%xmm2
addsd  0xd6d(%rip),%xmm2
addsd  %xmm1,%xmm2
cvttsd2si %xmm2,%r12d
lea    (%r12,%rcx,1),%ebp
xorps  %xmm0,%xmm0
cvtsi2sd %ebp,%xmm0
movapd %xmm0,%xmm2
unpcklpd %xmm0,%xmm2
mulpd  0xd61(%rip),%xmm2
addpd  0xd69(%rip),%xmm2
cvttpd2dq %xmm2,%xmm2
mulsd  0xd3d(%rip),%xmm0
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,0x8(%rsp)
movd   %xmm2,%ebx
pshufd $0x55,%xmm2,%xmm0
movd   %xmm0,%r13d
lea    (%rbx,%r13,1),%r14d
add    %eax,%r14d
mov    %ebp,%r15d
sub    %r14d,%r15d
call   1050 <makeIntoDollars@plt>
movd   %xmm0,0xc(%rsp)
mov    0x10(%rsp),%rdi
call   1050 <makeIntoDollars@plt>
movd   %xmm0,0x1c(%rsp)
mov    %r12d,%edi
call   1050 <makeIntoDollars@plt>
movd   %xmm0,0x20(%rsp)
mov    %ebp,%edi
call   1050 <makeIntoDollars@plt>
movd   %xmm0,0x24(%rsp)
mov    %ebx,%edi
call   1050 <makeIntoDollars@plt>
movd   %xmm0,0x28(%rsp)
mov    %r13d,%edi
call   1050 <makeIntoDollars@plt>
movd   %xmm0,0x2c(%rsp)
mov    0x8(%rsp),%edi
call   1050 <makeIntoDollars@plt>
movd   %xmm0,0x30(%rsp)
mov    %r14d,%edi
call   1050 <makeIntoDollars@plt>
movd   %xmm0,0x10(%rsp)
mov    %r15d,%edi
call   1050 <makeIntoDollars@plt>
movd   %xmm0,0x8(%rsp)
mov    0x38(%rsp),%ecx
lea    0xd51(%rip),%rdi
lea    0x60(%rsp),%rsi
lea    0x40(%rsp),%rdx
xor    %eax,%eax
call   1040 <printf@plt>
movss  0xc(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd59(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0x1c(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd54(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0x20(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd53(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0x24(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd4e(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0x28(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd4f(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0x2c(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd4e(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0x30(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd4c(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0x10(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd4c(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0x8(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd50(%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
store i32 %50, i32* %11
%51 = load i32, i32* %7
%52 = sitofp i32 %51 to double
%53 = load i32, i32* %3
%54 = sitofp i32 %53 to double
%55 = fmul double %54, 5.000000e-03
%56 = call double @llvm.fmuladd.f64(double %52, double %55, double 5.000000e+03)
%57 = fadd double %56, 5.000000e-01
%58 = fptosi double %57 to i32
store i32 %58, i32* %13
%59 = load i32, i32* %11
%60 = load i32, i32* %13
%61 = add nsw i32 %59, %60
store i32 %61, i32* %15
%62 = load i32, i32* %15
%63 = sitofp i32 %62 to double
%64 = call double @llvm.fmuladd.f64(double %63, double 8.000000e-02, double 5.000000e-01)
%65 = fptosi double %64 to i32
store i32 %65, i32* %17
%66 = load i32, i32* %15
%67 = sitofp i32 %66 to double
%68 = call double @llvm.fmuladd.f64(double %67, double 1.000000e-01, double 5.000000e-01)
%69 = fptosi double %68 to i32
store i32 %69, i32* %19
%70 = load i32, i32* %15
%71 = sitofp i32 %70 to double
%72 = call double @llvm.fmuladd.f64(double %71, double 2.500000e-01, double 5.000000e-01)
%73 = fptosi double %72 to i32
store i32 %73, i32* %21
%74 = load i32, i32* %17
%75 = load i32, i32* %19
%76 = add nsw i32 %74, %75
%77 = load i32, i32* %21
%78 = add nsw i32 %76, %77
store i32 %78, i32* %23
%79 = load i32, i32* %15
%80 = load i32, i32* %23
%81 = sub nsw i32 %79, %80
store i32 %81, i32* %25
%82 = load i32, i32* %9
%83 = call float @makeIntoDollars(i32 %82)
store float %83, float* %8
%84 = load i32, i32* %11
%85 = call float @makeIntoDollars(i32 %84)
store float %85, float* %10
%86 = load i32, i32* %13
%87 = call float @makeIntoDollars(i32 %86)
store float %87, float* %12
%88 = load i32, i32* %15
%89 = call float @makeIntoDollars(i32 %88)
store float %89, float* %14
%90 = load i32, i32* %17
%91 = call float @makeIntoDollars(i32 %90)
store float %91, float* %16
%92 = load i32, i32* %19
%93 = call float @makeIntoDollars(i32 %92)
store float %93, float* %18
%94 = load i32, i32* %21
%95 = call float @makeIntoDollars(i32 %94)
store float %95, float* %20
%96 = load i32, i32* %23
%97 = call float @makeIntoDollars(i32 %96)
store float %97, float* %22
%98 = load i32, i32* %25
%99 = call float @makeIntoDollars(i32 %98)
store float %99, float* %24
%100 = getelementptr inbounds [21 x i8], [21 x i8]* %4, i64 0, i64 0
%101 = getelementptr inbounds [21 x i8], [21 x i8]* %5, i64 0, i64 0
%102 = load i32, i32* %6
%103 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.10, i64 0, i64 0), i8* %100, i8* %101, i32 %102)
%104 = load float, float* %8
%105 = fpext float %104 to double
%106 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.11, i64 0, i64 0), double %105)
%107 = load float, float* %10
%108 = fpext float %107 to double
%109 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.12, i64 0, i64 0), double %108)
%110 = load float, float* %12
%111 = fpext float %110 to double
%112 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.13, i64 0, i64 0), double %111)
%113 = load float, float* %14
%114 = fpext float %113 to double
%115 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.14, i64 0, i64 0), double %114)
%116 = load float, float* %16
%117 = fpext float %116 to double
%118 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.15, i64 0, i64 0), double %117)
%119 = load float, float* %18
%120 = fpext float %119 to double
%121 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.16, i64 0, i64 0), double %120)
%122 = load float, float* %20
%123 = fpext float %122 to double
%124 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.17, i64 0, i64 0), double %123)
%125 = load float, float* %22
%126 = fpext float %125 to double
%127 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.18, i64 0, i64 0), double %126)
%128 = load float, float* %24
%129 = fpext float %128 to double
%130 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.19, i64 0, i64 0), double %129)
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 = load i32, i32* %5
%34 = sitofp i32 %33 to double
%35 = sitofp i32 %29 to double
%36 = fmul double %35, 5.000000e-03
%37 = call double @llvm.fmuladd.f64(double %34, double %36, double 5.000000e+03)
%38 = fadd double %37, 5.000000e-01
%39 = fptosi double %38 to i32
%40 = add nsw i32 %39, %32
%41 = sitofp i32 %40 to double
%42 = insertelement <2 x double> poison, double %41, i64 0
%43 = shufflevector <2 x double> %42, <2 x double> poison, <2 x i32> zeroinitializer
%44 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %43, <2 x double> <double 8.000000e-02, double 1.000000e-01>, <2 x double> <double 5.000000e-01, double 5.000000e-01>)
%45 = fptosi <2 x double> %44 to <2 x i32>
%46 = call double @llvm.fmuladd.f64(double %41, double 2.500000e-01, double 5.000000e-01)
%47 = fptosi double %46 to i32
%48 = extractelement <2 x i32> %45, i64 0
%49 = extractelement <2 x i32> %45, i64 1
%50 = add nsw i32 %48, %49
%51 = add nsw i32 %50, %47
%52 = sub nsw i32 %40, %51
%53 = call float @makeIntoDollars(i32 %27)
store float %53, float* %6
%54 = call float @makeIntoDollars(i32 %32)
%55 = call float @makeIntoDollars(i32 %39)
%56 = call float @makeIntoDollars(i32 %40)
%57 = call float @makeIntoDollars(i32 %48)
%58 = call float @makeIntoDollars(i32 %49)
%59 = call float @makeIntoDollars(i32 %47)
%60 = call float @makeIntoDollars(i32 %51)
%61 = call float @makeIntoDollars(i32 %52)
%62 = load i32, i32* %4
%63 = 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 %62)
%64 = load float, float* %6
%65 = fpext float %64 to double
%66 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.11, i64 0, i64 0), double %65)
%67 = fpext float %54 to double
%68 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.12, i64 0, i64 0), double %67)
%69 = fpext float %55 to double
%70 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.13, i64 0, i64 0), double %69)
%71 = fpext float %56 to double
%72 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.14, i64 0, i64 0), double %71)
%73 = fpext float %57 to double
%74 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.15, i64 0, i64 0), double %73)
%75 = fpext float %58 to double
%76 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.16, i64 0, i64 0), double %75)
%77 = fpext float %59 to double
%78 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.17, i64 0, i64 0), double %77)
%79 = fpext float %60 to double
%80 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.18, i64 0, i64 0), double %79)
%81 = fpext float %61 to double
%82 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.19, i64 0, i64 0), double %81)
ret i32 0
}