#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ getchar();
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, char *);
int /*<<< orphan*/ stdin;
char *strcat(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
int main(void) {
  char answer;
  int employeecount;
  int silly;
  char result[52 + 1];
  float TAXRATE;
  char DIVIDER[85 + 1] = "     "
                         "====================================================="
                         "===========================\n";
  FILE *reportFile;
  reportFile = fopen("report.txt", "wt");
  struct employees {
    char firstname[10 + 1];
    char lastname[20 + 1];
    float payrate;
    float hours;
    float gross;
    float tax;
    float net;
  } emp[9];
  TAXRATE = 0.15;
  employeecount = 0;
  do {
    if (employeecount = 10) {
      break;
    }
    printf("Enter employee's first name ");
    scanf("%s", emp[employeecount].firstname);
    printf("Enter employee's last name ");
    scanf("%s", emp[employeecount].lastname);
    printf("Enter hourly pay rate ");
    scanf("%f", &(emp[employeecount].payrate));
    printf("Enter hours worked this pay period");
    scanf("%f", &(emp[employeecount].hours));
    if (emp[employeecount].hours <= 40)
      emp[employeecount].gross =
          emp[employeecount].hours * emp[employeecount].payrate;
    else
      emp[employeecount].gross =
          40 * emp[employeecount].payrate +
          1.5 * emp[employeecount].payrate * (emp[employeecount].hours - 40);
    emp[employeecount].tax = emp[employeecount].gross * TAXRATE;
    emp[employeecount].net = emp[employeecount].gross - emp[employeecount].tax;
    employeecount++;
    printf(" Do you have another employee (Y / N) ?");
    fflush(stdin);
    scanf("%c", &answer);
  } while (answer == 'Y' || answer == 'y');
  printf("     Name                   Pay Rate     Hours     Gross Pay     Tax "
         "Paid     Net Pay\n");
  fprintf(reportFile, "     Name                   Pay Rate     Hours     "
                      "Gross Pay     Tax Paid     Net Pay\n");
  fprintf(reportFile, DIVIDER);
  for (silly = 0; silly < employeecount; silly++) {
    strcpy(result, emp[silly].lastname);
    strcat(strcat(result, ", "), emp[silly].firstname);
    printf("     %-23s%7.2f%11.2f%14.2f%13.2f%12.2f\n", result,
           emp[silly].payrate, emp[silly].hours, emp[silly].gross,
           emp[silly].tax, emp[silly].net);
    fprintf(reportFile, "     %-23s%7.2f%11.2f%14.2f%13.2f%12.2f\n", result,
            emp[silly].payrate, emp[silly].hours, emp[silly].gross,
            emp[silly].tax, emp[silly].net);
  }
  fflush(stdin);
  getchar();
  fclose(reportFile);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x2a0,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0xb0(%rbp),%rdi
lea    0xe50(%rip),%rsi
mov    $0x56,%edx
call   1080 <memcpy@plt>
lea    0xe95(%rip),%rdi
lea    0xe99(%rip),%rsi
call   10b0 <fopen@plt>
mov    %rax,-0xb8(%rbp)
movss  0xe14(%rip),%xmm0
movss  %xmm0,-0x54(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0xa,-0xc(%rbp)
mov    $0x1,%al
test   $0x1,%al
jne    120e <main+0x6e>
jmp    1213 <main+0x73>
jmp    14b1 <main+0x311>
lea    0xe5a(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movslq -0xc(%rbp),%rax
lea    -0x290(%rbp),%rsi
imul   $0x34,%rax,%rax
add    %rax,%rsi
lea    0xe57(%rip),%rdi
call   10a0 <scanf@plt>
lea    0xe4e(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movslq -0xc(%rbp),%rax
lea    -0x290(%rbp),%rsi
imul   $0x34,%rax,%rax
add    %rax,%rsi
add    $0xb,%rsi
lea    0xe27(%rip),%rdi
call   10a0 <scanf@plt>
lea    0xe3a(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movslq -0xc(%rbp),%rax
lea    -0x290(%rbp),%rsi
imul   $0x34,%rax,%rax
add    %rax,%rsi
add    $0x20,%rsi
lea    0xe2d(%rip),%rdi
call   10a0 <scanf@plt>
lea    0xe24(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movslq -0xc(%rbp),%rax
lea    -0x290(%rbp),%rsi
imul   $0x34,%rax,%rax
add    %rax,%rsi
add    $0x24,%rsi
lea    0xdfd(%rip),%rdi
call   10a0 <scanf@plt>
movslq -0xc(%rbp),%rcx
lea    -0x290(%rbp),%rax
imul   $0x34,%rcx,%rcx
add    %rcx,%rax
movss  0xd1b(%rip),%xmm0
ucomiss 0x24(%rax),%xmm0
jb     133d <main+0x19d>
movslq -0xc(%rbp),%rcx
lea    -0x290(%rbp),%rax
imul   $0x34,%rcx,%rcx
add    %rcx,%rax
movss  0x24(%rax),%xmm0
movslq -0xc(%rbp),%rcx
lea    -0x290(%rbp),%rax
imul   $0x34,%rcx,%rcx
add    %rcx,%rax
mulss  0x20(%rax),%xmm0
movslq -0xc(%rbp),%rcx
lea    -0x290(%rbp),%rax
imul   $0x34,%rcx,%rcx
add    %rcx,%rax
movss  %xmm0,0x28(%rax)
jmp    13d1 <main+0x231>
movslq -0xc(%rbp),%rcx
lea    -0x290(%rbp),%rax
imul   $0x34,%rcx,%rcx
add    %rcx,%rax
movss  0xcad(%rip),%xmm0
mulss  0x20(%rax),%xmm0
cvtss2sd %xmm0,%xmm1
movslq -0xc(%rbp),%rcx
lea    -0x290(%rbp),%rax
imul   $0x34,%rcx,%rcx
add    %rcx,%rax
movss  0x20(%rax),%xmm0
cvtss2sd %xmm0,%xmm2
movsd  0xc85(%rip),%xmm0
mulsd  %xmm2,%xmm0
movslq -0xc(%rbp),%rcx
lea    -0x290(%rbp),%rax
imul   $0x34,%rcx,%rcx
add    %rcx,%rax
movss  0x24(%rax),%xmm2
movss  0xc5e(%rip),%xmm3
subss  %xmm3,%xmm2
cvtss2sd %xmm2,%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movslq -0xc(%rbp),%rcx
lea    -0x290(%rbp),%rax
imul   $0x34,%rcx,%rcx
add    %rcx,%rax
movss  %xmm0,0x28(%rax)
movslq -0xc(%rbp),%rcx
lea    -0x290(%rbp),%rax
imul   $0x34,%rcx,%rcx
add    %rcx,%rax
movss  0x28(%rax),%xmm0
mulss  -0x54(%rbp),%xmm0
movslq -0xc(%rbp),%rcx
lea    -0x290(%rbp),%rax
imul   $0x34,%rcx,%rcx
add    %rcx,%rax
movss  %xmm0,0x2c(%rax)
movslq -0xc(%rbp),%rcx
lea    -0x290(%rbp),%rax
imul   $0x34,%rcx,%rcx
add    %rcx,%rax
movss  0x28(%rax),%xmm0
movslq -0xc(%rbp),%rcx
lea    -0x290(%rbp),%rax
imul   $0x34,%rcx,%rcx
add    %rcx,%rax
subss  0x2c(%rax),%xmm0
movslq -0xc(%rbp),%rcx
lea    -0x290(%rbp),%rax
imul   $0x34,%rcx,%rcx
add    %rcx,%rax
movss  %xmm0,0x30(%rax)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
lea    0xc94(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    0x2b81(%rip),%rax
mov    (%rax),%edi
call   1090 <fflush@plt>
lea    0xca0(%rip),%rdi
lea    -0x5(%rbp),%rsi
call   10a0 <scanf@plt>
movsbl -0x5(%rbp),%ecx
mov    $0x1,%al
cmp    $0x59,%ecx
mov    %al,-0x291(%rbp)
je     14a3 <main+0x303>
movsbl -0x5(%rbp),%eax
cmp    $0x79,%eax
sete   %al
mov    %al,-0x291(%rbp)
mov    -0x291(%rbp),%al
test   $0x1,%al
jne    11f8 <main+0x58>
lea    0xc60(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0xb8(%rbp),%rdi
lea    0xc4b(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0xb8(%rbp),%rdi
lea    -0xb0(%rbp),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    168c <main+0x4ec>
lea    -0x50(%rbp),%rdi
movslq -0x10(%rbp),%rax
lea    -0x290(%rbp),%rsi
imul   $0x34,%rax,%rax
add    %rax,%rsi
add    $0xb,%rsi
call   1030 <strcpy@plt>
lea    -0x50(%rbp),%rdi
lea    0xc49(%rip),%rsi
call   10c0 <strcat@plt>
mov    %rax,%rdi
movslq -0x10(%rbp),%rax
lea    -0x290(%rbp),%rsi
imul   $0x34,%rax,%rax
add    %rax,%rsi
call   10c0 <strcat@plt>
lea    -0x50(%rbp),%rsi
movslq -0x10(%rbp),%rcx
lea    -0x290(%rbp),%rax
imul   $0x34,%rcx,%rcx
add    %rcx,%rax
movss  0x20(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
movslq -0x10(%rbp),%rcx
lea    -0x290(%rbp),%rax
imul   $0x34,%rcx,%rcx
add    %rcx,%rax
movss  0x24(%rax),%xmm1
cvtss2sd %xmm1,%xmm1
movslq -0x10(%rbp),%rcx
lea    -0x290(%rbp),%rax
imul   $0x34,%rcx,%rcx
add    %rcx,%rax
movss  0x28(%rax),%xmm2
cvtss2sd %xmm2,%xmm2
movslq -0x10(%rbp),%rcx
lea    -0x290(%rbp),%rax
imul   $0x34,%rcx,%rcx
add    %rcx,%rax
movss  0x2c(%rax),%xmm3
cvtss2sd %xmm3,%xmm3
movslq -0x10(%rbp),%rcx
lea    -0x290(%rbp),%rax
imul   $0x34,%rcx,%rcx
add    %rcx,%rax
movss  0x30(%rax),%xmm4
cvtss2sd %xmm4,%xmm4
lea    0xb9b(%rip),%rdi
mov    $0x5,%al
call   1050 <printf@plt>
mov    -0xb8(%rbp),%rdi
lea    -0x50(%rbp),%rdx
movslq -0x10(%rbp),%rcx
lea    -0x290(%rbp),%rax
imul   $0x34,%rcx,%rcx
add    %rcx,%rax
movss  0x20(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
movslq -0x10(%rbp),%rcx
lea    -0x290(%rbp),%rax
imul   $0x34,%rcx,%rcx
add    %rcx,%rax
movss  0x24(%rax),%xmm1
cvtss2sd %xmm1,%xmm1
movslq -0x10(%rbp),%rcx
lea    -0x290(%rbp),%rax
imul   $0x34,%rcx,%rcx
add    %rcx,%rax
movss  0x28(%rax),%xmm2
cvtss2sd %xmm2,%xmm2
movslq -0x10(%rbp),%rcx
lea    -0x290(%rbp),%rax
imul   $0x34,%rcx,%rcx
add    %rcx,%rax
movss  0x2c(%rax),%xmm3
cvtss2sd %xmm3,%xmm3
movslq -0x10(%rbp),%rcx
lea    -0x290(%rbp),%rax
imul   $0x34,%rcx,%rcx
add    %rcx,%rax
movss  0x30(%rax),%xmm4
cvtss2sd %xmm4,%xmm4
lea    0xafb(%rip),%rsi
mov    $0x5,%al
call   1070 <fprintf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    14f0 <main+0x350>
mov    0x2955(%rip),%rax
mov    (%rax),%edi
call   1090 <fflush@plt>
mov    $0x0,%al
call   1060 <getchar@plt>
mov    -0xb8(%rbp),%rdi
call   1040 <fclose@plt>
xor    %eax,%eax
add    $0x2a0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x280,%rsp
movaps 0xe79(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps 0xe5d(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xe41(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xe25(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xe09(%rip),%xmm0
movaps %xmm0,(%rsp)
movabs $0xa3d3d3d3d3d3d3d,%rax
3d 3d 0a
mov    %rax,0x4e(%rsp)
lea    0xe45(%rip),%rdi
lea    0xe49(%rip),%rsi
call   10b0 <fopen@plt>
mov    %rax,%r14
lea    0xec0(%rip),%rdi
call   1040 <puts@plt>
lea    0xe31(%rip),%rdi
mov    $0x56,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   10d0 <fwrite@plt>
mov    %rsp,%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1090 <fprintf@plt>
lea    0xa0(%rsp),%rbx
mov    $0xa,%r13d
lea    0x60(%rsp),%r15
lea    0xe52(%rip),%r12
nopl   0x0(%rax)
lea    0xb(%rbx),%rsi
mov    %r15,%rdi
call   1030 <strcpy@plt>
mov    %r15,%rdi
call   1060 <strlen@plt>
movw   $0x202c,0x60(%rsp,%rax,1)
movb   $0x0,0x62(%rsp,%rax,1)
mov    %r15,%rdi
mov    %rbx,%rsi
call   10c0 <strcat@plt>
movss  0x20(%rbx),%xmm0
movss  0x24(%rbx),%xmm1
cvtss2sd %xmm0,%xmm0
cvtss2sd %xmm1,%xmm1
movss  0x28(%rbx),%xmm2
cvtss2sd %xmm2,%xmm2
movss  0x2c(%rbx),%xmm3
cvtss2sd %xmm3,%xmm3
movss  0x30(%rbx),%xmm4
cvtss2sd %xmm4,%xmm4
mov    %r12,%rdi
mov    %r15,%rsi
mov    $0x5,%al
call   1070 <printf@plt>
movss  0x20(%rbx),%xmm0
movss  0x24(%rbx),%xmm1
cvtss2sd %xmm0,%xmm0
cvtss2sd %xmm1,%xmm1
movss  0x28(%rbx),%xmm2
cvtss2sd %xmm2,%xmm2
movss  0x2c(%rbx),%xmm3
cvtss2sd %xmm3,%xmm3
movss  0x30(%rbx),%xmm4
cvtss2sd %xmm4,%xmm4
mov    %r14,%rdi
mov    %r12,%rsi
mov    %r15,%rdx
mov    $0x5,%al
call   1090 <fprintf@plt>
add    $0x34,%rbx
add    $0xffffffffffffffff,%r13
jne    1270 <main+0xc0>
mov    0x2cc1(%rip),%rax
mov    (%rax),%edi
call   10a0 <fflush@plt>
xor    %eax,%eax
call   1080 <getchar@plt>
mov    %r14,%rdi
call   1050 <fclose@plt>
xor    %eax,%eax
add    $0x280,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
%struct.employees = type { [11 x i8], [21 x i8], float, float, float, float, float }
@__const.main.DIVIDER = [86 x i8] c" ================================================================================\0A"
@.str = [11 x i8] c"report.txt\00"
@.str.1 = [3 x i8] c"wt\00"
@.str.2 = [29 x i8] c"Enter employee's first name \00"
@.str.3 = [3 x i8] c"%s\00"
@.str.4 = [28 x i8] c"Enter employee's last name \00"
@.str.5 = [23 x i8] c"Enter hourly pay rate \00"
@.str.6 = [3 x i8] c"%f\00"
@.str.7 = [35 x i8] c"Enter hours worked this pay period\00"
@.str.8 = [40 x i8] c" Do you have another employee (Y / N) ?\00"
@stdin = global i32 0
@.str.9 = [3 x i8] c"%c\00"
@.str.10 = [87 x i8] c" Name Pay Rate Hours Gross Pay Tax Paid Net Pay\0A\00"
@.str.11 = [3 x i8] c", \00"
@.str.12 = [41 x i8] c" %-23s%7.2f%11.2f%14.2f%13.2f%12.2f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
%3 = alloca i32
%4 = alloca i32
%5 = alloca [53 x i8]
%6 = alloca float
%7 = alloca [86 x i8]
%8 = alloca i32*
%9 = alloca [9 x %struct.employees]
store i32 0, i32* %1
%10 = bitcast [86 x i8]* %7 to i8*
%11 = call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %11, i32** %8
store float 0x3FC3333340000000, float* %6
store i32 0, i32* %3
br label %12
12: ; preds = %134, %0
store i32 10, i32* %3
br i1 true, label %13, label %14
13: ; preds = %12
br label %136
14: ; preds = %12
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0))
%16 = load i32, i32* %3
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [9 x %struct.employees], [9 x %struct.employees]* %9, i64 0, i64 %17
%19 = getelementptr inbounds %struct.employees, %struct.employees* %18, i32 0, i32 0
%20 = getelementptr inbounds [11 x i8], [11 x i8]* %19, i64 0, i64 0
%21 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8* %20)
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.4, i64 0, i64 0))
%23 = load i32, i32* %3
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [9 x %struct.employees], [9 x %struct.employees]* %9, i64 0, i64 %24
%26 = getelementptr inbounds %struct.employees, %struct.employees* %25, i32 0, i32 1
%27 = getelementptr inbounds [21 x i8], [21 x i8]* %26, i64 0, i64 0
%28 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8* %27)
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0))
%30 = load i32, i32* %3
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [9 x %struct.employees], [9 x %struct.employees]* %9, i64 0, i64 %31
%33 = getelementptr inbounds %struct.employees, %struct.employees* %32, i32 0, i32 2
%34 = bitcast float* %33 to i8*
%35 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* %34)
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.7, i64 0, i64 0))
%37 = load i32, i32* %3
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [9 x %struct.employees], [9 x %struct.employees]* %9, i64 0, i64 %38
%40 = getelementptr inbounds %struct.employees, %struct.employees* %39, i32 0, i32 3
%41 = bitcast float* %40 to i8*
%42 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* %41)
%43 = load i32, i32* %3
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [9 x %struct.employees], [9 x %struct.employees]* %9, i64 0, i64 %44
%46 = getelementptr inbounds %struct.employees, %struct.employees* %45, i32 0, i32 3
%47 = load float, float* %46
%48 = fcmp ole float %47, 4.000000e+01
br i1 %48, label %49, label %65
49: ; preds = %14
%50 = load i32, i32* %3
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [9 x %struct.employees], [9 x %struct.employees]* %9, i64 0, i64 %51
%53 = getelementptr inbounds %struct.employees, %struct.employees* %52, i32 0, i32 3
%54 = load float, float* %53
%55 = load i32, i32* %3
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [9 x %struct.employees], [9 x %struct.employees]* %9, i64 0, i64 %56
%58 = getelementptr inbounds %struct.employees, %struct.employees* %57, i32 0, i32 2
%59 = load float, float* %58
%60 = fmul float %54, %59
%61 = load i32, i32* %3
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [9 x %struct.employees], [9 x %struct.employees]* %9, i64 0, i64 %62
%64 = getelementptr inbounds %struct.employees, %struct.employees* %63, i32 0, i32 4
store float %60, float* %64
br label %93
65: ; preds = %14
%66 = load i32, i32* %3
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds [9 x %struct.employees], [9 x %struct.employees]* %9, i64 0, i64 %67
%69 = getelementptr inbounds %struct.employees, %struct.employees* %68, i32 0, i32 2
%70 = load float, float* %69
%71 = fmul float 4.000000e+01, %70
%72 = fpext float %71 to double
%73 = load i32, i32* %3
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [9 x %struct.employees], [9 x %struct.employees]* %9, i64 0, i64 %74
%76 = getelementptr inbounds %struct.employees, %struct.employees* %75, i32 0, i32 2
%77 = load float, float* %76
%78 = fpext float %77 to double
%79 = fmul double 1.500000e+00, %78
%80 = load i32, i32* %3
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds [9 x %struct.employees], [9 x %struct.employees]* %9, i64 0, i64 %81
%83 = getelementptr inbounds %struct.employees, %struct.employees* %82, i32 0, i32 3
%84 = load float, float* %83
%85 = fsub float %84, 4.000000e+01
%86 = fpext float %85 to double
%87 = call double @llvm.fmuladd.f64(double %79, double %86, double %72)
%88 = fptrunc double %87 to float
%89 = load i32, i32* %3
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds [9 x %struct.employees], [9 x %struct.employees]* %9, i64 0, i64 %90
%92 = getelementptr inbounds %struct.employees, %struct.employees* %91, i32 0, i32 4
store float %88, float* %92
br label %93
93: ; preds = %65, %49
%94 = load i32, i32* %3
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds [9 x %struct.employees], [9 x %struct.employees]* %9, i64 0, i64 %95
%97 = getelementptr inbounds %struct.employees, %struct.employees* %96, i32 0, i32 4
%98 = load float, float* %97
%99 = load float, float* %6
%100 = fmul float %98, %99
%101 = load i32, i32* %3
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds [9 x %struct.employees], [9 x %struct.employees]* %9, i64 0, i64 %102
%104 = getelementptr inbounds %struct.employees, %struct.employees* %103, i32 0, i32 5
store float %100, float* %104
%105 = load i32, i32* %3
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds [9 x %struct.employees], [9 x %struct.employees]* %9, i64 0, i64 %106
%108 = getelementptr inbounds %struct.employees, %struct.employees* %107, i32 0, i32 4
%109 = load float, float* %108
%110 = load i32, i32* %3
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds [9 x %struct.employees], [9 x %struct.employees]* %9, i64 0, i64 %111
%113 = getelementptr inbounds %struct.employees, %struct.employees* %112, i32 0, i32 5
%114 = load float, float* %113
%115 = fsub float %109, %114
%116 = load i32, i32* %3
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds [9 x %struct.employees], [9 x %struct.employees]* %9, i64 0, i64 %117
%119 = getelementptr inbounds %struct.employees, %struct.employees* %118, i32 0, i32 6
store float %115, float* %119
%120 = load i32, i32* %3
%121 = add nsw i32 %120, 1
store i32 %121, i32* %3
%122 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.8, i64 0, i64 0))
%123 = load i32, i32* @stdin
%124 = call i32 @fflush(i32 %123)
%125 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i8* %2)
br label %126
126: ; preds = %93
%127 = load i8, i8* %2
%128 = sext i8 %127 to i32
%129 = icmp eq i32 %128, 89
br i1 %129, label %134, label %130
130: ; preds = %126
%131 = load i8, i8* %2
%132 = sext i8 %131 to i32
%133 = icmp eq i32 %132, 121
br label %134
134: ; preds = %130, %126
%135 = phi i1 [ true, %126 ], [ %133, %130 ]
br i1 %135, label %12, label %136
136: ; preds = %134, %13
%137 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str.10, i64 0, i64 0))
%138 = load i32*, i32** %8
%139 = call i32 (i32*, i8*, ...) @fprintf(i32* %138, i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str.10, i64 0, i64 0))
%140 = load i32*, i32** %8
%141 = getelementptr inbounds [86 x i8], [86 x i8]* %7, i64 0, i64 0
%142 = call i32 (i32*, i8*, ...) @fprintf(i32* %140, i8* %141)
store i32 0, i32* %4
br label %143
143: ; preds = %228, %136
%144 = load i32, i32* %4
%145 = load i32, i32* %3
%146 = icmp slt i32 %144, %145
br i1 %146, label %147, label %231
147: ; preds = %143
%148 = getelementptr inbounds [53 x i8], [53 x i8]* %5, i64 0, i64 0
%149 = load i32, i32* %4
%150 = sext i32 %149 to i64
%151 = getelementptr inbounds [9 x %struct.employees], [9 x %struct.employees]* %9, i64 0, i64 %150
%152 = getelementptr inbounds %struct.employees, %struct.employees* %151, i32 0, i32 1
%153 = getelementptr inbounds [21 x i8], [21 x i8]* %152, i64 0, i64 0
%154 = call i32 @strcpy(i8* %148, i8* %153)
%155 = getelementptr inbounds [53 x i8], [53 x i8]* %5, i64 0, i64 0
%156 = call i8* @strcat(i8* %155, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0))
%157 = load i32, i32* %4
%158 = sext i32 %157 to i64
%159 = getelementptr inbounds [9 x %struct.employees], [9 x %struct.employees]* %9, i64 0, i64 %158
%160 = getelementptr inbounds %struct.employees, %struct.employees* %159, i32 0, i32 0
%161 = getelementptr inbounds [11 x i8], [11 x i8]* %160, i64 0, i64 0
%162 = call i8* @strcat(i8* %156, i8* %161)
%163 = getelementptr inbounds [53 x i8], [53 x i8]* %5, i64 0, i64 0
%164 = load i32, i32* %4
%165 = sext i32 %164 to i64
%166 = getelementptr inbounds [9 x %struct.employees], [9 x %struct.employees]* %9, i64 0, i64 %165
%167 = getelementptr inbounds %struct.employees, %struct.employees* %166, i32 0, i32 2
%168 = load float, float* %167
%169 = fpext float %168 to double
%170 = load i32, i32* %4
%171 = sext i32 %170 to i64
%172 = getelementptr inbounds [9 x %struct.employees], [9 x %struct.employees]* %9, i64 0, i64 %171
%173 = getelementptr inbounds %struct.employees, %struct.employees* %172, i32 0, i32 3
%174 = load float, float* %173
%175 = fpext float %174 to double
%176 = load i32, i32* %4
%177 = sext i32 %176 to i64
%178 = getelementptr inbounds [9 x %struct.employees], [9 x %struct.employees]* %9, i64 0, i64 %177
%179 = getelementptr inbounds %struct.employees, %struct.employees* %178, i32 0, i32 4
%180 = load float, float* %179
%181 = fpext float %180 to double
%182 = load i32, i32* %4
%183 = sext i32 %182 to i64
%184 = getelementptr inbounds [9 x %struct.employees], [9 x %struct.employees]* %9, i64 0, i64 %183
%185 = getelementptr inbounds %struct.employees, %struct.employees* %184, i32 0, i32 5
%186 = load float, float* %185
%187 = fpext float %186 to double
%188 = load i32, i32* %4
%189 = sext i32 %188 to i64
%190 = getelementptr inbounds [9 x %struct.employees], [9 x %struct.employees]* %9, i64 0, i64 %189
%191 = getelementptr inbounds %struct.employees, %struct.employees* %190, i32 0, i32 6
%192 = load float, float* %191
%193 = fpext float %192 to double
%194 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.12, i64 0, i64 0), i8* %163, double %169, double %175, double %181, double %187, double %193)
%195 = load i32*, i32** %8
%196 = getelementptr inbounds [53 x i8], [53 x i8]* %5, i64 0, i64 0
%197 = load i32, i32* %4
%198 = sext i32 %197 to i64
%199 = getelementptr inbounds [9 x %struct.employees], [9 x %struct.employees]* %9, i64 0, i64 %198
%200 = getelementptr inbounds %struct.employees, %struct.employees* %199, i32 0, i32 2
%201 = load float, float* %200
%202 = fpext float %201 to double
%203 = load i32, i32* %4
%204 = sext i32 %203 to i64
%205 = getelementptr inbounds [9 x %struct.employees], [9 x %struct.employees]* %9, i64 0, i64 %204
%206 = getelementptr inbounds %struct.employees, %struct.employees* %205, i32 0, i32 3
%207 = load float, float* %206
%208 = fpext float %207 to double
%209 = load i32, i32* %4
%210 = sext i32 %209 to i64
%211 = getelementptr inbounds [9 x %struct.employees], [9 x %struct.employees]* %9, i64 0, i64 %210
%212 = getelementptr inbounds %struct.employees, %struct.employees* %211, i32 0, i32 4
%213 = load float, float* %212
%214 = fpext float %213 to double
%215 = load i32, i32* %4
%216 = sext i32 %215 to i64
%217 = getelementptr inbounds [9 x %struct.employees], [9 x %struct.employees]* %9, i64 0, i64 %216
%218 = getelementptr inbounds %struct.employees, %struct.employees* %217, i32 0, i32 5
%219 = load float, float* %218
%220 = fpext float %219 to double
%221 = load i32, i32* %4
%222 = sext i32 %221 to i64
%223 = getelementptr inbounds [9 x %struct.employees], [9 x %struct.employees]* %9, i64 0, i64 %222
%224 = getelementptr inbounds %struct.employees, %struct.employees* %223, i32 0, i32 6
%225 = load float, float* %224
%226 = fpext float %225 to double
%227 = call i32 (i32*, i8*, ...) @fprintf(i32* %195, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.12, i64 0, i64 0), i8* %196, double %202, double %208, double %214, double %220, double %226)
br label %228
228: ; preds = %147
%229 = load i32, i32* %4
%230 = add nsw i32 %229, 1
store i32 %230, i32* %4
br label %143
231: ; preds = %143
%232 = load i32, i32* @stdin
%233 = call i32 @fflush(i32 %232)
%234 = call i32 (...) @getchar()
%235 = load i32*, i32** %8
%236 = call i32 @fclose(i32* %235)
ret i32 0
}

LLVM IR (-O2):
%struct.employees = type { [11 x i8], [21 x i8], float, float, float, float, float }
@__const.main.DIVIDER = [86 x i8] c" ================================================================================\0A"
@.str = [11 x i8] c"report.txt\00"
@.str.1 = [3 x i8] c"wt\00"
@stdin = global i32 0
@.str.10 = [87 x i8] c" Name Pay Rate Hours Gross Pay Tax Paid Net Pay\0A\00"
@.str.11 = [3 x i8] c", \00"
@.str.12 = [41 x i8] c" %-23s%7.2f%11.2f%14.2f%13.2f%12.2f\0A\00"
@str = [86 x i8] c" Name Pay Rate Hours Gross Pay Tax Paid Net Pay\00"
define i32 @main() {
%1 = alloca [53 x i8]
%2 = alloca [86 x i8]
%3 = alloca [9 x %struct.employees]
%4 = getelementptr inbounds [53 x i8], [53 x i8]* %1, i64 0, i64 0
%5 = getelementptr inbounds [86 x i8], [86 x i8]* %2, i64 0, i64 0
%6 = tail call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%7 = getelementptr inbounds [9 x %struct.employees], [9 x %struct.employees]* %3, i64 0, i64 0, i32 0, i64 0
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([86 x i8], [86 x i8]* @str, i64 0, i64 0))
%9 = tail call i64 @fwrite(i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str.10, i64 0, i64 0), i64 86, i64 1, i32* %6)
%10 = call i32 (i32*, i8*, ...) @fprintf(i32* %6, i8* %5)
br label %11
11: ; preds = %0, %11
%12 = phi i64 [ 0, %0 ], [ %46, %11 ]
%13 = getelementptr inbounds [9 x %struct.employees], [9 x %struct.employees]* %3, i64 0, i64 %12, i32 1, i64 0
%14 = call i32 @strcpy(i8* %4, i8* %13)
%15 = call i64 @strlen(i8* %4)
%16 = getelementptr [53 x i8], [53 x i8]* %1, i64 0, i64 %15
%17 = getelementptr inbounds [9 x %struct.employees], [9 x %struct.employees]* %3, i64 0, i64 %12, i32 0, i64 0
%18 = call i8* @strcat(i8* %4, i8* %17)
%19 = getelementptr inbounds [9 x %struct.employees], [9 x %struct.employees]* %3, i64 0, i64 %12, i32 2
%20 = load float, float* %19
%21 = fpext float %20 to double
%22 = getelementptr inbounds [9 x %struct.employees], [9 x %struct.employees]* %3, i64 0, i64 %12, i32 3
%23 = load float, float* %22
%24 = fpext float %23 to double
%25 = getelementptr inbounds [9 x %struct.employees], [9 x %struct.employees]* %3, i64 0, i64 %12, i32 4
%26 = load float, float* %25
%27 = fpext float %26 to double
%28 = getelementptr inbounds [9 x %struct.employees], [9 x %struct.employees]* %3, i64 0, i64 %12, i32 5
%29 = load float, float* %28
%30 = fpext float %29 to double
%31 = getelementptr inbounds [9 x %struct.employees], [9 x %struct.employees]* %3, i64 0, i64 %12, i32 6
%32 = load float, float* %31
%33 = fpext float %32 to double
%34 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.12, i64 0, i64 0), i8* %4, double %21, double %24, double %27, double %30, double %33)
%35 = load float, float* %19
%36 = fpext float %35 to double
%37 = load float, float* %22
%38 = fpext float %37 to double
%39 = load float, float* %25
%40 = fpext float %39 to double
%41 = load float, float* %28
%42 = fpext float %41 to double
%43 = load float, float* %31
%44 = fpext float %43 to double
%45 = call i32 (i32*, i8*, ...) @fprintf(i32* %6, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.12, i64 0, i64 0), i8* %4, double %36, double %38, double %40, double %42, double %44)
%46 = add nuw nsw i64 %12, 1
%47 = icmp eq i64 %46, 10
br i1 %47, label %48, label %11
48: ; preds = %11
%49 = load i32, i32* @stdin
%50 = call i32 @fflush(i32 %49)
%51 = call i32 (...) @getchar()
%52 = call i32 @fclose(i32* %6)
ret i32 0
}