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

/* Variables and functions */
char EOF;
int /*<<< orphan*/ endianSwapFloat(float, char *);
int /*<<< orphan*/ endianSwapInt32(float, unsigned char *);
int /*<<< orphan*/ endianSwapfloat(float, char *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
char fgetc(int /*<<< orphan*/ *);
int /*<<< orphan*/ fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
char fputc(char, int /*<<< orphan*/ *);
int /*<<< orphan*/ getBytesFloat(float, char *);
int /*<<< orphan*/ getBytesInt32(float, unsigned char *);
int /*<<< orphan*/ getBytesfloat(float, char *);
char getYN();
scalar_t__ isBigEndian();
scalar_t__ isNum(char);
int /*<<< orphan*/ iscntrl(char);
int /*<<< orphan*/ ispunct(char);
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ strcmp(char *, char *);
float strtod(char *, char **);
scalar_t__ strtol(char *, char **, int);
int /*<<< orphan*/ usage();
int main(int args, char **argv) {
  if (args < 4)
    usage();
  int useDblFlag;
  if (!strcmp(argv[3], "-f"))
    useDblFlag = 0;
  else if (!strcmp(argv[3], "-d"))
    useDblFlag = 1;
  else
    usage();
  FILE *inFile = fopen(argv[1], "r");
  if (inFile == NULL) {
    fprintf(stderr, "Could not read '%s'.\n", argv[1]);
    exit(1);
  }
  FILE *outFile = fopen(argv[2], "r");
  if (outFile != NULL) {
    fclose(outFile);
    printf("Overwrite file '%s'? (y/n): ", argv[2]);
    if (getYN() == 'n')
      return 0;
  }
  outFile = fopen(argv[2], "wb");
  if (outFile == NULL) {
    fprintf(stderr, "Could not open '%s' for writing.\n", argv[2]);
    exit(1);
  }
  char c = fgetc(inFile);
  while (c != EOF) {
    if (isNum(c)) {
      char value[64];
      int i = 0;
      do {
        if (i >= sizeof(value) - 1) {
          value[i++] = '\0';
          fprintf(stderr, "Unable to parse data - missing delimiters: '%s'\n",
                  value);
          exit(1);
        }
        value[i++] = c;
        c = fgetc(inFile);
      } while (isNum(c));
      value[i++] = '\0';
      char *iEndPtr;
      char *dEndPtr;
      unsigned long iConv = (unsigned long)strtol(value, &iEndPtr, 10);
      float dConv = strtod(value, &dEndPtr);
      if (iEndPtr == value + i - 1) {
        unsigned char da[8];
        if (isBigEndian())
          endianSwapInt32(dConv, da);
        else
          getBytesInt32(dConv, da);
        int i;
        for (i = 0; i < 4; i++)
          if (fputc(da[i], outFile) == EOF) {
            fprintf(stderr, "Unable to write to file: '%s'\n", argv[2]);
            exit(1);
          }
      } else if (dEndPtr == value + i - 1) {
        if (useDblFlag) {
          char da[8];
          if (isBigEndian())
            endianSwapfloat(dConv, da);
          else
            getBytesfloat(dConv, da);
          int i;
          for (i = 0; i < 8; i++)
            if (fputc(da[i], outFile) == EOF) {
              fprintf(stderr, "Unable to write to file: '%s'\n", argv[2]);
              exit(1);
            }
        } else {
          char da[4];
          if (isBigEndian())
            endianSwapFloat((float)dConv, da);
          else
            getBytesFloat((float)dConv, da);
          int i;
          for (i = 0; i < 4; i++)
            if (fputc(da[i], outFile) == EOF) {
              fprintf(stderr, "Unable to write to file: '%s'\n", argv[2]);
              exit(1);
            }
        }
      } else {
        fprintf(
            stderr,
            "Unable to parse data - value is not a valid int or float: '%s'\n",
            value);
        exit(1);
      }
    }
    if (c == EOF)
      break;
    if (c != ' ' && !iscntrl(c) && !ispunct(c)) {
      char str[64];
      str[0] = c;
      str[1] = '\0';
      fgets(str + 1, sizeof(str) - 1, inFile);
      fprintf(
          stderr,
          "Unable to parse data - string is not a valid int or float: '%s'\n",
          str);
      exit(1);
    }
    c = fgetc(inFile);
  }
  fclose(inFile);
  fclose(outFile);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x100,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x4,-0x8(%rbp)
jge    129a <main+0x2a>
mov    $0x0,%al
call   1140 <usage@plt>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
lea    0xd57(%rip),%rsi
call   1100 <strcmp@plt>
cmp    $0x0,%eax
jne    12c3 <main+0x53>
movl   $0x0,-0x14(%rbp)
jmp    12f8 <main+0x88>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
lea    0xd31(%rip),%rsi
call   1100 <strcmp@plt>
cmp    $0x0,%eax
jne    12ec <main+0x7c>
movl   $0x1,-0x14(%rbp)
jmp    12f3 <main+0x83>
mov    $0x0,%al
call   1140 <usage@plt>
jmp    12f8 <main+0x88>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xcff(%rip),%rsi
call   1150 <fopen@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
jne    1342 <main+0xd2>
mov    0x2cb6(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdx
lea    0xcd5(%rip),%rsi
call   1110 <fprintf@plt>
mov    $0x1,%edi
call   1160 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xcb5(%rip),%rsi
call   1150 <fopen@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x28(%rbp)
je     13a6 <main+0x136>
mov    -0x28(%rbp),%rdi
call   1070 <fclose@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rsi
lea    0xca1(%rip),%rdi
call   1090 <printf@plt>
mov    $0x0,%al
call   1170 <getYN@plt>
movsbl %al,%eax
cmp    $0x6e,%eax
jne    13a1 <main+0x131>
movl   $0x0,-0x4(%rbp)
jmp    187c <main+0x60c>
jmp    13a6 <main+0x136>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xc86(%rip),%rsi
call   1150 <fopen@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x28(%rbp)
jne    13f0 <main+0x180>
mov    0x2c08(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdx
lea    0xc5d(%rip),%rsi
call   1110 <fprintf@plt>
mov    $0x1,%edi
call   1160 <exit@plt>
mov    -0x20(%rbp),%rdi
call   10b0 <fgetc@plt>
mov    %al,-0x29(%rbp)
movsbl -0x29(%rbp),%eax
mov    0x2be1(%rip),%rcx
movsbl (%rcx),%ecx
cmp    %ecx,%eax
je     1863 <main+0x5f3>
movsbl -0x29(%rbp),%edi
call   1030 <isNum@plt>
cmp    $0x0,%rax
je     17b7 <main+0x547>
movl   $0x0,-0x74(%rbp)
movslq -0x74(%rbp),%rax
cmp    $0x3f,%rax
jb     146f <main+0x1ff>
mov    -0x74(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x74(%rbp)
cltq
movb   $0x0,-0x70(%rbp,%rax,1)
mov    0x2b85(%rip),%rax
mov    (%rax),%edi
lea    -0x70(%rbp),%rdx
lea    0xc00(%rip),%rsi
call   1110 <fprintf@plt>
mov    $0x1,%edi
call   1160 <exit@plt>
mov    -0x29(%rbp),%cl
mov    -0x74(%rbp),%eax
mov    %eax,%edx
add    $0x1,%edx
mov    %edx,-0x74(%rbp)
cltq
mov    %cl,-0x70(%rbp,%rax,1)
mov    -0x20(%rbp),%rdi
call   10b0 <fgetc@plt>
mov    %al,-0x29(%rbp)
movsbl -0x29(%rbp),%edi
call   1030 <isNum@plt>
cmp    $0x0,%rax
jne    142c <main+0x1bc>
mov    -0x74(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x74(%rbp)
cltq
movb   $0x0,-0x70(%rbp,%rax,1)
lea    -0x70(%rbp),%rdi
lea    -0x80(%rbp),%rsi
mov    $0xa,%edx
call   1120 <strtol@plt>
mov    %rax,-0x90(%rbp)
lea    -0x70(%rbp),%rdi
lea    -0x88(%rbp),%rsi
call   1040 <strtod@plt>
movss  %xmm0,-0x94(%rbp)
ff
mov    -0x80(%rbp),%rax
lea    -0x70(%rbp),%rcx
movslq -0x74(%rbp),%rdx
add    %rdx,%rcx
add    $0xffffffffffffffff,%rcx
cmp    %rcx,%rax
jne    15ca <main+0x35a>
mov    $0x0,%al
call   1080 <isBigEndian@plt>
cmp    $0x0,%rax
je     152b <main+0x2bb>
movss  -0x94(%rbp),%xmm0
ff
lea    -0x9c(%rbp),%rdi
call   1190 <endianSwapInt32@plt>
jmp    153f <main+0x2cf>
movss  -0x94(%rbp),%xmm0
ff
lea    -0x9c(%rbp),%rdi
call   10c0 <getBytesInt32@plt>
movl   $0x0,-0xa0(%rbp)
cmpl   $0x4,-0xa0(%rbp)
jge    15c5 <main+0x355>
movslq -0xa0(%rbp),%rax
mov    -0x9c(%rbp,%rax,1),%al
mov    -0x28(%rbp),%rsi
movsbl %al,%edi
call   10e0 <fputc@plt>
movsbl %al,%eax
mov    0x2a6e(%rip),%rcx
movsbl (%rcx),%ecx
cmp    %ecx,%eax
jne    15ac <main+0x33c>
mov    0x2a4c(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdx
lea    0xaf4(%rip),%rsi
call   1110 <fprintf@plt>
mov    $0x1,%edi
call   1160 <exit@plt>
jmp    15b1 <main+0x341>
mov    -0xa0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa0(%rbp)
jmp    1549 <main+0x2d9>
jmp    17b2 <main+0x542>
mov    -0x88(%rbp),%rax
lea    -0x70(%rbp),%rcx
movslq -0x74(%rbp),%rdx
add    %rdx,%rcx
add    $0xffffffffffffffff,%rcx
cmp    %rcx,%rax
jne    178a <main+0x51a>
cmpl   $0x0,-0x14(%rbp)
je     16bc <main+0x44c>
mov    $0x0,%al
call   1080 <isBigEndian@plt>
cmp    $0x0,%rax
je     161d <main+0x3ad>
movss  -0x94(%rbp),%xmm0
ff
lea    -0xa8(%rbp),%rdi
call   10a0 <endianSwapfloat@plt>
jmp    1631 <main+0x3c1>
movss  -0x94(%rbp),%xmm0
ff
lea    -0xa8(%rbp),%rdi
call   1050 <getBytesfloat@plt>
movl   $0x0,-0xac(%rbp)
cmpl   $0x8,-0xac(%rbp)
jge    16b7 <main+0x447>
movslq -0xac(%rbp),%rax
mov    -0xa8(%rbp,%rax,1),%al
mov    -0x28(%rbp),%rsi
movsbl %al,%edi
call   10e0 <fputc@plt>
movsbl %al,%eax
mov    0x297c(%rip),%rcx
movsbl (%rcx),%ecx
cmp    %ecx,%eax
jne    169e <main+0x42e>
mov    0x295a(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdx
lea    0xa02(%rip),%rsi
call   1110 <fprintf@plt>
mov    $0x1,%edi
call   1160 <exit@plt>
jmp    16a3 <main+0x433>
mov    -0xac(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xac(%rbp)
jmp    163b <main+0x3cb>
jmp    1785 <main+0x515>
mov    $0x0,%al
call   1080 <isBigEndian@plt>
cmp    $0x0,%rax
je     16e6 <main+0x476>
movss  -0x94(%rbp),%xmm0
ff
lea    -0xb0(%rbp),%rdi
call   1130 <endianSwapFloat@plt>
jmp    16fa <main+0x48a>
movss  -0x94(%rbp),%xmm0
ff
lea    -0xb0(%rbp),%rdi
call   1180 <getBytesFloat@plt>
movl   $0x0,-0xb4(%rbp)
cmpl   $0x4,-0xb4(%rbp)
jge    1780 <main+0x510>
movslq -0xb4(%rbp),%rax
mov    -0xb0(%rbp,%rax,1),%al
mov    -0x28(%rbp),%rsi
movsbl %al,%edi
call   10e0 <fputc@plt>
movsbl %al,%eax
mov    0x28b3(%rip),%rcx
movsbl (%rcx),%ecx
cmp    %ecx,%eax
jne    1767 <main+0x4f7>
mov    0x2891(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdx
lea    0x939(%rip),%rsi
call   1110 <fprintf@plt>
mov    $0x1,%edi
call   1160 <exit@plt>
jmp    176c <main+0x4fc>
mov    -0xb4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xb4(%rbp)
jmp    1704 <main+0x494>
jmp    1785 <main+0x515>
jmp    17ad <main+0x53d>
mov    0x2847(%rip),%rax
mov    (%rax),%edi
lea    -0x70(%rbp),%rdx
lea    0x912(%rip),%rsi
call   1110 <fprintf@plt>
mov    $0x1,%edi
call   1160 <exit@plt>
jmp    17b2 <main+0x542>
jmp    17b7 <main+0x547>
movsbl -0x29(%rbp),%eax
mov    0x2826(%rip),%rcx
movsbl (%rcx),%ecx
cmp    %ecx,%eax
jne    17d2 <main+0x562>
jmp    1863 <main+0x5f3>
movsbl -0x29(%rbp),%eax
cmp    $0x20,%eax
je     1852 <main+0x5e2>
movsbl -0x29(%rbp),%edi
call   1060 <iscntrl@plt>
cmp    $0x0,%eax
jne    1852 <main+0x5e2>
movsbl -0x29(%rbp),%edi
call   10d0 <ispunct@plt>
cmp    $0x0,%eax
jne    1852 <main+0x5e2>
mov    -0x29(%rbp),%al
mov    %al,-0x100(%rbp)
movb   $0x0,-0xff(%rbp)
lea    -0x100(%rbp),%rdi
add    $0x1,%rdi
mov    -0x20(%rbp),%rdx
mov    $0x3f,%esi
call   10f0 <fgets@plt>
mov    0x27a5(%rip),%rax
mov    (%rax),%edi
lea    -0x100(%rbp),%rdx
lea    0x8ad(%rip),%rsi
call   1110 <fprintf@plt>
mov    $0x1,%edi
call   1160 <exit@plt>
mov    -0x20(%rbp),%rdi
call   10b0 <fgetc@plt>
mov    %al,-0x29(%rbp)
jmp    13fc <main+0x18c>
mov    -0x20(%rbp),%rdi
call   1070 <fclose@plt>
mov    -0x28(%rbp),%rdi
call   1070 <fclose@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x100,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
mov    %rsi,%rbp
cmp    $0x3,%edi
jg     128d <main+0x1d>
xor    %eax,%eax
call   1140 <usage@plt>
mov    0x18(%rbp),%rbx
lea    0xd68(%rip),%rsi
mov    %rbx,%rdi
call   1100 <strcmp@plt>
test   %eax,%eax
je     12c0 <main+0x50>
lea    0xd58(%rip),%rsi
mov    %rbx,%rdi
call   1100 <strcmp@plt>
test   %eax,%eax
je     12c8 <main+0x58>
xor    %eax,%eax
call   1140 <usage@plt>
jmp    12c2 <main+0x52>
mov    $0x1,%al
mov    %eax,0x14(%rsp)
jmp    12d0 <main+0x60>
movl   $0x0,0x14(%rsp)
mov    0x8(%rbp),%rdi
lea    0xd2b(%rip),%rsi
call   1150 <fopen@plt>
test   %rax,%rax
je     16a2 <main+0x432>
mov    %rax,%rbx
mov    0x10(%rbp),%rdi
lea    0xd0f(%rip),%rsi
call   1150 <fopen@plt>
test   %rax,%rax
je     1324 <main+0xb4>
mov    %rax,%rdi
call   1070 <fclose@plt>
mov    0x10(%rbp),%rsi
lea    0xd0a(%rip),%rdi
call   1090 <printf@plt>
xor    %eax,%eax
call   1170 <getYN@plt>
cmp    $0x6e,%al
je     136a <main+0xfa>
mov    %rbp,0x18(%rsp)
mov    0x10(%rbp),%rdi
lea    0xd07(%rip),%rsi
call   1150 <fopen@plt>
test   %rax,%rax
je     16b8 <main+0x448>
mov    %rax,%r15
mov    %rbx,%rdi
call   10b0 <fgetc@plt>
mov    0x2c94(%rip),%r12
cmp    (%r12),%al
jne    137b <main+0x10b>
mov    %rbx,%rdi
call   1070 <fclose@plt>
mov    %r15,%rdi
call   1070 <fclose@plt>
xor    %eax,%eax
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    %eax,%r13d
jmp    1391 <main+0x121>
mov    %rbx,%rdi
call   10b0 <fgetc@plt>
mov    %eax,%r13d
cmp    (%r12),%al
je     135a <main+0xea>
movsbl %r13b,%edi
call   1030 <isNum@plt>
test   %rax,%rax
je     1450 <main+0x1e0>
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nop
cmp    $0x3f,%rbp
je     164c <main+0x3dc>
mov    %r13b,0x30(%rsp,%rbp,1)
add    $0x1,%rbp
mov    %rbx,%rdi
call   10b0 <fgetc@plt>
mov    %eax,%r13d
movsbl %al,%edi
call   1030 <isNum@plt>
test   %rax,%rax
jne    13b0 <main+0x140>
lea    (%rsp,%rbp,1),%r14
add    $0x30,%r14
movb   $0x0,0x30(%rsp,%rbp,1)
lea    0x30(%rsp),%rbp
mov    %rbp,%rdi
lea    0x28(%rsp),%rsi
mov    $0xa,%edx
call   1120 <strtol@plt>
mov    %rbp,%rdi
lea    0x20(%rsp),%rsi
call   1040 <strtod@plt>
cmp    0x28(%rsp),%r14
movss  %xmm0,0x10(%rsp)
je     1460 <main+0x1f0>
cmp    0x20(%rsp),%r14
jne    1690 <main+0x420>
testb  $0x1,0x14(%rsp)
je     147e <main+0x20e>
xor    %eax,%eax
call   1080 <isBigEndian@plt>
test   %rax,%rax
je     14b5 <main+0x245>
movss  0x10(%rsp),%xmm0
lea    0x8(%rsp),%rdi
call   1130 <endianSwapFloat@plt>
jmp    14d0 <main+0x260>
nopl   0x0(%rax)
mov    (%r12),%cl
jmp    15e9 <main+0x379>
nopl   0x0(%rax)
xor    %eax,%eax
call   1080 <isBigEndian@plt>
test   %rax,%rax
je     14a3 <main+0x233>
movss  0x10(%rsp),%xmm0
lea    0x8(%rsp),%rdi
call   1190 <endianSwapInt32@plt>
jmp    14d0 <main+0x260>
xor    %eax,%eax
call   1080 <isBigEndian@plt>
test   %rax,%rax
je     151f <main+0x2af>
movss  0x10(%rsp),%xmm0
lea    0x8(%rsp),%rdi
call   10a0 <endianSwapfloat@plt>
jmp    152f <main+0x2bf>
movss  0x10(%rsp),%xmm0
lea    0x8(%rsp),%rdi
call   10c0 <getBytesInt32@plt>
jmp    14d0 <main+0x260>
movss  0x10(%rsp),%xmm0
lea    0x8(%rsp),%rdi
call   1180 <getBytesFloat@plt>
cs nopw 0x0(%rax,%rax,1)
nop
movsbl 0x8(%rsp),%edi
mov    %r15,%rsi
call   10e0 <fputc@plt>
cmp    (%r12),%al
je     1675 <main+0x405>
movsbl 0x9(%rsp),%edi
mov    %r15,%rsi
call   10e0 <fputc@plt>
cmp    (%r12),%al
je     1675 <main+0x405>
movsbl 0xa(%rsp),%edi
mov    %r15,%rsi
call   10e0 <fputc@plt>
cmp    (%r12),%al
je     1675 <main+0x405>
movsbl 0xb(%rsp),%edi
jmp    15d5 <main+0x365>
movss  0x10(%rsp),%xmm0
lea    0x8(%rsp),%rdi
call   1050 <getBytesfloat@plt>
movsbl 0x8(%rsp),%edi
mov    %r15,%rsi
call   10e0 <fputc@plt>
cmp    (%r12),%al
je     1675 <main+0x405>
movsbl 0x9(%rsp),%edi
mov    %r15,%rsi
call   10e0 <fputc@plt>
cmp    (%r12),%al
je     1675 <main+0x405>
movsbl 0xa(%rsp),%edi
mov    %r15,%rsi
call   10e0 <fputc@plt>
cmp    (%r12),%al
je     1675 <main+0x405>
movsbl 0xb(%rsp),%edi
mov    %r15,%rsi
call   10e0 <fputc@plt>
cmp    (%r12),%al
je     1675 <main+0x405>
movsbl 0xc(%rsp),%edi
mov    %r15,%rsi
call   10e0 <fputc@plt>
cmp    (%r12),%al
je     1675 <main+0x405>
movsbl 0xd(%rsp),%edi
mov    %r15,%rsi
call   10e0 <fputc@plt>
cmp    (%r12),%al
je     1675 <main+0x405>
movsbl 0xe(%rsp),%edi
mov    %r15,%rsi
call   10e0 <fputc@plt>
cmp    (%r12),%al
je     1675 <main+0x405>
movsbl 0xf(%rsp),%edi
mov    %r15,%rsi
call   10e0 <fputc@plt>
mov    (%r12),%cl
cmp    %cl,%al
je     1675 <main+0x405>
cmp    %cl,%r13b
je     135a <main+0xea>
cmp    $0x20,%r13b
je     1380 <main+0x110>
movsbl %r13b,%ebp
mov    %ebp,%edi
call   1060 <iscntrl@plt>
test   %eax,%eax
jne    1380 <main+0x110>
mov    %ebp,%edi
call   10d0 <ispunct@plt>
test   %eax,%eax
jne    1380 <main+0x110>
mov    %r13b,0x30(%rsp)
lea    0x31(%rsp),%rdi
movb   $0x0,0x31(%rsp)
mov    $0x3f,%esi
mov    %rbx,%rdx
call   10f0 <fgets@plt>
mov    0x2997(%rip),%rax
mov    (%rax),%edi
lea    0xaa6(%rip),%rsi
jmp    1661 <main+0x3f1>
movb   $0x0,0x6f(%rsp)
mov    0x2980(%rip),%rax
mov    (%rax),%edi
lea    0x9ff(%rip),%rsi
lea    0x30(%rsp),%rdx
call   1110 <fprintf@plt>
mov    $0x1,%edi
call   1160 <exit@plt>
mov    0x295c(%rip),%rax
mov    (%rax),%edi
mov    0x18(%rsp),%rax
mov    0x10(%rax),%rdx
lea    0xa03(%rip),%rsi
jmp    1666 <main+0x3f6>
mov    0x2941(%rip),%rax
mov    (%rax),%edi
lea    0xa10(%rip),%rsi
jmp    1661 <main+0x3f1>
mov    0x292f(%rip),%rax
mov    (%rax),%edi
mov    0x8(%rbp),%rdx
lea    0x952(%rip),%rsi
jmp    1666 <main+0x3f6>
mov    0x2919(%rip),%rax
mov    (%rax),%edi
mov    0x18(%rsp),%rax
mov    0x10(%rax),%rdx
lea    0x96d(%rip),%rsi
jmp    1666 <main+0x3f6>

LLVM IR (-O0):
@.str = [3 x i8] c"-f\00"
@.str.1 = [3 x i8] c"-d\00"
@.str.2 = [2 x i8] c"r\00"
@stderr = global i32 0
@.str.3 = [22 x i8] c"Could not read '%s'.\0A\00"
@.str.4 = [29 x i8] c"Overwrite file '%s'? (y/n): \00"
@.str.5 = [3 x i8] c"wb\00"
@.str.6 = [34 x i8] c"Could not open '%s' for writing.\0A\00"
@EOF = global i8 0
@.str.7 = [49 x i8] c"Unable to parse data - missing delimiters: '%s'\0A\00"
@.str.8 = [31 x i8] c"Unable to write to file: '%s'\0A\00"
@.str.9 = [64 x i8] c"Unable to parse data - value is not a valid int or float: '%s'\0A\00"
@.str.10 = [65 x i8] c"Unable to parse data - string is not a valid int or float: '%s'\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32*
%8 = alloca i32*
%9 = alloca i8
%10 = alloca [64 x i8]
%11 = alloca i32
%12 = alloca i8*
%13 = alloca i8*
%14 = alloca i64
%15 = alloca float
%16 = alloca [8 x i8]
%17 = alloca i32
%18 = alloca [8 x i8]
%19 = alloca i32
%20 = alloca [4 x i8]
%21 = alloca i32
%22 = alloca [64 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%23 = load i32, i32* %4
%24 = icmp slt i32 %23, 4
br i1 %24, label %25, label %27
25: ; preds = %2
%26 = call i32 (...) @usage()
br label %27
27: ; preds = %25, %2
%28 = load i8**, i8*** %5
%29 = getelementptr inbounds i8*, i8** %28, i64 3
%30 = load i8*, i8** %29
%31 = call i32 @strcmp(i8* %30, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%32 = icmp ne i32 %31, 0
br i1 %32, label %34, label %33
33: ; preds = %27
store i32 0, i32* %6
br label %44
34: ; preds = %27
%35 = load i8**, i8*** %5
%36 = getelementptr inbounds i8*, i8** %35, i64 3
%37 = load i8*, i8** %36
%38 = call i32 @strcmp(i8* %37, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%39 = icmp ne i32 %38, 0
br i1 %39, label %41, label %40
40: ; preds = %34
store i32 1, i32* %6
br label %43
41: ; preds = %34
%42 = call i32 (...) @usage()
br label %43
43: ; preds = %41, %40
br label %44
44: ; preds = %43, %33
%45 = load i8**, i8*** %5
%46 = getelementptr inbounds i8*, i8** %45, i64 1
%47 = load i8*, i8** %46
%48 = call i32* @fopen(i8* %47, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i32* %48, i32** %7
%49 = load i32*, i32** %7
%50 = icmp eq i32* %49, null
br i1 %50, label %51, label %58
51: ; preds = %44
%52 = load i32, i32* @stderr
%53 = load i8**, i8*** %5
%54 = getelementptr inbounds i8*, i8** %53, i64 1
%55 = load i8*, i8** %54
%56 = call i32 @fprintf(i32 %52, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), i8* %55)
%57 = call i32 @exit(i32 1)
unreachable
58: ; preds = %44
%59 = load i8**, i8*** %5
%60 = getelementptr inbounds i8*, i8** %59, i64 2
%61 = load i8*, i8** %60
%62 = call i32* @fopen(i8* %61, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i32* %62, i32** %8
%63 = load i32*, i32** %8
%64 = icmp ne i32* %63, null
br i1 %64, label %65, label %77
65: ; preds = %58
%66 = load i32*, i32** %8
%67 = call i32 @fclose(i32* %66)
%68 = load i8**, i8*** %5
%69 = getelementptr inbounds i8*, i8** %68, i64 2
%70 = load i8*, i8** %69
%71 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0), i8* %70)
%72 = call signext i8 (...) @getYN()
%73 = sext i8 %72 to i32
%74 = icmp eq i32 %73, 110
br i1 %74, label %75, label %76
75: ; preds = %65
store i32 0, i32* %3
br label %318
76: ; preds = %65
br label %77
77: ; preds = %76, %58
%78 = load i8**, i8*** %5
%79 = getelementptr inbounds i8*, i8** %78, i64 2
%80 = load i8*, i8** %79
%81 = call i32* @fopen(i8* %80, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
store i32* %81, i32** %8
%82 = load i32*, i32** %8
%83 = icmp eq i32* %82, null
br i1 %83, label %84, label %91
84: ; preds = %77
%85 = load i32, i32* @stderr
%86 = load i8**, i8*** %5
%87 = getelementptr inbounds i8*, i8** %86, i64 2
%88 = load i8*, i8** %87
%89 = call i32 @fprintf(i32 %85, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0), i8* %88)
%90 = call i32 @exit(i32 1)
unreachable
91: ; preds = %77
%92 = load i32*, i32** %7
%93 = call signext i8 @fgetc(i32* %92)
store i8 %93, i8* %9
br label %94
94: ; preds = %310, %91
%95 = load i8, i8* %9
%96 = sext i8 %95 to i32
%97 = load i8, i8* @EOF
%98 = sext i8 %97 to i32
%99 = icmp ne i32 %96, %98
br i1 %99, label %100, label %313
100: ; preds = %94
%101 = load i8, i8* %9
%102 = call i64 @isNum(i8 signext %101)
%103 = icmp ne i64 %102, 0
br i1 %103, label %104, label %279
104: ; preds = %100
store i32 0, i32* %11
br label %105
105: ; preds = %126, %104
%106 = load i32, i32* %11
%107 = sext i32 %106 to i64
%108 = icmp uge i64 %107, 63
br i1 %108, label %109, label %118
109: ; preds = %105
%110 = load i32, i32* %11
%111 = add nsw i32 %110, 1
store i32 %111, i32* %11
%112 = sext i32 %110 to i64
%113 = getelementptr inbounds [64 x i8], [64 x i8]* %10, i64 0, i64 %112
store i8 0, i8* %113
%114 = load i32, i32* @stderr
%115 = getelementptr inbounds [64 x i8], [64 x i8]* %10, i64 0, i64 0
%116 = call i32 @fprintf(i32 %114, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.7, i64 0, i64 0), i8* %115)
%117 = call i32 @exit(i32 1)
unreachable
118: ; preds = %105
%119 = load i8, i8* %9
%120 = load i32, i32* %11
%121 = add nsw i32 %120, 1
store i32 %121, i32* %11
%122 = sext i32 %120 to i64
%123 = getelementptr inbounds [64 x i8], [64 x i8]* %10, i64 0, i64 %122
store i8 %119, i8* %123
%124 = load i32*, i32** %7
%125 = call signext i8 @fgetc(i32* %124)
store i8 %125, i8* %9
br label %126
126: ; preds = %118
%127 = load i8, i8* %9
%128 = call i64 @isNum(i8 signext %127)
%129 = icmp ne i64 %128, 0
br i1 %129, label %105, label %130
130: ; preds = %126
%131 = load i32, i32* %11
%132 = add nsw i32 %131, 1
store i32 %132, i32* %11
%133 = sext i32 %131 to i64
%134 = getelementptr inbounds [64 x i8], [64 x i8]* %10, i64 0, i64 %133
store i8 0, i8* %134
%135 = getelementptr inbounds [64 x i8], [64 x i8]* %10, i64 0, i64 0
%136 = call i64 @strtol(i8* %135, i8** %12, i32 10)
store i64 %136, i64* %14
%137 = getelementptr inbounds [64 x i8], [64 x i8]* %10, i64 0, i64 0
%138 = call float @strtod(i8* %137, i8** %13)
store float %138, float* %15
%139 = load i8*, i8** %12
%140 = getelementptr inbounds [64 x i8], [64 x i8]* %10, i64 0, i64 0
%141 = load i32, i32* %11
%142 = sext i32 %141 to i64
%143 = getelementptr inbounds i8, i8* %140, i64 %142
%144 = getelementptr inbounds i8, i8* %143, i64 -1
%145 = icmp eq i8* %139, %144
br i1 %145, label %146, label %184
146: ; preds = %130
%147 = call i64 (...) @isBigEndian()
%148 = icmp ne i64 %147, 0
br i1 %148, label %149, label %153
149: ; preds = %146
%150 = load float, float* %15
%151 = getelementptr inbounds [8 x i8], [8 x i8]* %16, i64 0, i64 0
%152 = call i32 @endianSwapInt32(float %150, i8* %151)
br label %157
153: ; preds = %146
%154 = load float, float* %15
%155 = getelementptr inbounds [8 x i8], [8 x i8]* %16, i64 0, i64 0
%156 = call i32 @getBytesInt32(float %154, i8* %155)
br label %157
157: ; preds = %153, %149
store i32 0, i32* %17
br label %158
158: ; preds = %180, %157
%159 = load i32, i32* %17
%160 = icmp slt i32 %159, 4
br i1 %160, label %161, label %183
161: ; preds = %158
%162 = load i32, i32* %17
%163 = sext i32 %162 to i64
%164 = getelementptr inbounds [8 x i8], [8 x i8]* %16, i64 0, i64 %163
%165 = load i8, i8* %164
%166 = load i32*, i32** %8
%167 = call signext i8 @fputc(i8 signext %165, i32* %166)
%168 = sext i8 %167 to i32
%169 = load i8, i8* @EOF
%170 = sext i8 %169 to i32
%171 = icmp eq i32 %168, %170
br i1 %171, label %172, label %179
172: ; preds = %161
%173 = load i32, i32* @stderr
%174 = load i8**, i8*** %5
%175 = getelementptr inbounds i8*, i8** %174, i64 2
%176 = load i8*, i8** %175
%177 = call i32 @fprintf(i32 %173, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.8, i64 0, i64 0), i8* %176)
%178 = call i32 @exit(i32 1)
unreachable
179: ; preds = %161
br label %180
180: ; preds = %179
%181 = load i32, i32* %17
%182 = add nsw i32 %181, 1
store i32 %182, i32* %17
br label %158
183: ; preds = %158
br label %278
184: ; preds = %130
%185 = load i8*, i8** %13
%186 = getelementptr inbounds [64 x i8], [64 x i8]* %10, i64 0, i64 0
%187 = load i32, i32* %11
%188 = sext i32 %187 to i64
%189 = getelementptr inbounds i8, i8* %186, i64 %188
%190 = getelementptr inbounds i8, i8* %189, i64 -1
%191 = icmp eq i8* %185, %190
br i1 %191, label %192, label %272
192: ; preds = %184
%193 = load i32, i32* %6
%194 = icmp ne i32 %193, 0
br i1 %194, label %195, label %233
195: ; preds = %192
%196 = call i64 (...) @isBigEndian()
%197 = icmp ne i64 %196, 0
br i1 %197, label %198, label %202
198: ; preds = %195
%199 = load float, float* %15
%200 = getelementptr inbounds [8 x i8], [8 x i8]* %18, i64 0, i64 0
%201 = call i32 @endianSwapfloat(float %199, i8* %200)
br label %206
202: ; preds = %195
%203 = load float, float* %15
%204 = getelementptr inbounds [8 x i8], [8 x i8]* %18, i64 0, i64 0
%205 = call i32 @getBytesfloat(float %203, i8* %204)
br label %206
206: ; preds = %202, %198
store i32 0, i32* %19
br label %207
207: ; preds = %229, %206
%208 = load i32, i32* %19
%209 = icmp slt i32 %208, 8
br i1 %209, label %210, label %232
210: ; preds = %207
%211 = load i32, i32* %19
%212 = sext i32 %211 to i64
%213 = getelementptr inbounds [8 x i8], [8 x i8]* %18, i64 0, i64 %212
%214 = load i8, i8* %213
%215 = load i32*, i32** %8
%216 = call signext i8 @fputc(i8 signext %214, i32* %215)
%217 = sext i8 %216 to i32
%218 = load i8, i8* @EOF
%219 = sext i8 %218 to i32
%220 = icmp eq i32 %217, %219
br i1 %220, label %221, label %228
221: ; preds = %210
%222 = load i32, i32* @stderr
%223 = load i8**, i8*** %5
%224 = getelementptr inbounds i8*, i8** %223, i64 2
%225 = load i8*, i8** %224
%226 = call i32 @fprintf(i32 %222, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.8, i64 0, i64 0), i8* %225)
%227 = call i32 @exit(i32 1)
unreachable
228: ; preds = %210
br label %229
229: ; preds = %228
%230 = load i32, i32* %19
%231 = add nsw i32 %230, 1
store i32 %231, i32* %19
br label %207
232: ; preds = %207
br label %271
233: ; preds = %192
%234 = call i64 (...) @isBigEndian()
%235 = icmp ne i64 %234, 0
br i1 %235, label %236, label %240
236: ; preds = %233
%237 = load float, float* %15
%238 = getelementptr inbounds [4 x i8], [4 x i8]* %20, i64 0, i64 0
%239 = call i32 @endianSwapFloat(float %237, i8* %238)
br label %244
240: ; preds = %233
%241 = load float, float* %15
%242 = getelementptr inbounds [4 x i8], [4 x i8]* %20, i64 0, i64 0
%243 = call i32 @getBytesFloat(float %241, i8* %242)
br label %244
244: ; preds = %240, %236
store i32 0, i32* %21
br label %245
245: ; preds = %267, %244
%246 = load i32, i32* %21
%247 = icmp slt i32 %246, 4
br i1 %247, label %248, label %270
248: ; preds = %245
%249 = load i32, i32* %21
%250 = sext i32 %249 to i64
%251 = getelementptr inbounds [4 x i8], [4 x i8]* %20, i64 0, i64 %250
%252 = load i8, i8* %251
%253 = load i32*, i32** %8
%254 = call signext i8 @fputc(i8 signext %252, i32* %253)
%255 = sext i8 %254 to i32
%256 = load i8, i8* @EOF
%257 = sext i8 %256 to i32
%258 = icmp eq i32 %255, %257
br i1 %258, label %259, label %266
259: ; preds = %248
%260 = load i32, i32* @stderr
%261 = load i8**, i8*** %5
%262 = getelementptr inbounds i8*, i8** %261, i64 2
%263 = load i8*, i8** %262
%264 = call i32 @fprintf(i32 %260, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.8, i64 0, i64 0), i8* %263)
%265 = call i32 @exit(i32 1)
unreachable
266: ; preds = %248
br label %267
267: ; preds = %266
%268 = load i32, i32* %21
%269 = add nsw i32 %268, 1
store i32 %269, i32* %21
br label %245
270: ; preds = %245
br label %271
271: ; preds = %270, %232
br label %277
272: ; preds = %184
%273 = load i32, i32* @stderr
%274 = getelementptr inbounds [64 x i8], [64 x i8]* %10, i64 0, i64 0
%275 = call i32 @fprintf(i32 %273, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.9, i64 0, i64 0), i8* %274)
%276 = call i32 @exit(i32 1)
unreachable
277: ; preds = %271
br label %278
278: ; preds = %277, %183
br label %279
279: ; preds = %278, %100
%280 = load i8, i8* %9
%281 = sext i8 %280 to i32
%282 = load i8, i8* @EOF
%283 = sext i8 %282 to i32
%284 = icmp eq i32 %281, %283
br i1 %284, label %285, label %286
285: ; preds = %279
br label %313
286: ; preds = %279
%287 = load i8, i8* %9
%288 = sext i8 %287 to i32
%289 = icmp ne i32 %288, 32
br i1 %289, label %290, label %310
290: ; preds = %286
%291 = load i8, i8* %9
%292 = call i32 @iscntrl(i8 signext %291)
%293 = icmp ne i32 %292, 0
br i1 %293, label %310, label %294
294: ; preds = %290
%295 = load i8, i8* %9
%296 = call i32 @ispunct(i8 signext %295)
%297 = icmp ne i32 %296, 0
br i1 %297, label %310, label %298
298: ; preds = %294
%299 = load i8, i8* %9
%300 = getelementptr inbounds [64 x i8], [64 x i8]* %22, i64 0, i64 0
store i8 %299, i8* %300
%301 = getelementptr inbounds [64 x i8], [64 x i8]* %22, i64 0, i64 1
store i8 0, i8* %301
%302 = getelementptr inbounds [64 x i8], [64 x i8]* %22, i64 0, i64 0
%303 = getelementptr inbounds i8, i8* %302, i64 1
%304 = load i32*, i32** %7
%305 = call i32 @fgets(i8* %303, i32 63, i32* %304)
%306 = load i32, i32* @stderr
%307 = getelementptr inbounds [64 x i8], [64 x i8]* %22, i64 0, i64 0
%308 = call i32 @fprintf(i32 %306, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.10, i64 0, i64 0), i8* %307)
%309 = call i32 @exit(i32 1)
unreachable
310: ; preds = %294, %290, %286
%311 = load i32*, i32** %7
%312 = call signext i8 @fgetc(i32* %311)
store i8 %312, i8* %9
br label %94
313: ; preds = %285, %94
%314 = load i32*, i32** %7
%315 = call i32 @fclose(i32* %314)
%316 = load i32*, i32** %8
%317 = call i32 @fclose(i32* %316)
store i32 0, i32* %3
br label %318
318: ; preds = %313, %75
%319 = load i32, i32* %3
ret i32 %319
}

LLVM IR (-O2):
@.str = [3 x i8] c"-f\00"
@.str.1 = [3 x i8] c"-d\00"
@.str.2 = [2 x i8] c"r\00"
@stderr = global i32 0
@.str.3 = [22 x i8] c"Could not read '%s'.\0A\00"
@.str.4 = [29 x i8] c"Overwrite file '%s'? (y/n): \00"
@.str.5 = [3 x i8] c"wb\00"
@.str.6 = [34 x i8] c"Could not open '%s' for writing.\0A\00"
@EOF = global i8 0
@.str.7 = [49 x i8] c"Unable to parse data - missing delimiters: '%s'\0A\00"
@.str.8 = [31 x i8] c"Unable to write to file: '%s'\0A\00"
@.str.9 = [64 x i8] c"Unable to parse data - value is not a valid int or float: '%s'\0A\00"
@.str.10 = [65 x i8] c"Unable to parse data - string is not a valid int or float: '%s'\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [64 x i8]
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca [8 x i8]
%7 = alloca [8 x i8]
%8 = alloca [4 x i8]
%9 = alloca [64 x i8]
%10 = icmp slt i32 %0, 4
br i1 %10, label %11, label %13
11: ; preds = %2
%12 = tail call i32 (...) @usage()
br label %13
13: ; preds = %11, %2
%14 = getelementptr inbounds i8*, i8** %1, i64 3
%15 = load i8*, i8** %14
%16 = tail call i32 @strcmp(i8* dereferenceable(1) %15, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%17 = icmp eq i32 %16, 0
br i1 %17, label %23, label %18
18: ; preds = %13
%19 = tail call i32 @strcmp(i8* dereferenceable(1) %15, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%20 = icmp eq i32 %19, 0
br i1 %20, label %23, label %21
21: ; preds = %18
%22 = tail call i32 (...) @usage()
br label %23
23: ; preds = %18, %13, %21
%24 = phi i1 [ undef, %21 ], [ true, %13 ], [ false, %18 ]
%25 = getelementptr inbounds i8*, i8** %1, i64 1
%26 = load i8*, i8** %25
%27 = tail call i32* @fopen(i8* %26, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%28 = icmp eq i32* %27, null
br i1 %28, label %29, label %34
29: ; preds = %23
%30 = load i32, i32* @stderr
%31 = load i8*, i8** %25
%32 = tail call i32 @fprintf(i32 %30, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), i8* %31)
%33 = tail call i32 @exit(i32 1)
unreachable
34: ; preds = %23
%35 = getelementptr inbounds i8*, i8** %1, i64 2
%36 = load i8*, i8** %35
%37 = tail call i32* @fopen(i8* %36, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%38 = icmp eq i32* %37, null
br i1 %38, label %45, label %39
39: ; preds = %34
%40 = tail call i32 @fclose(i32* %37)
%41 = load i8*, i8** %35
%42 = tail call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0), i8* %41)
%43 = tail call signext i8 (...) @getYN()
%44 = icmp eq i8 %43, 110
br i1 %44, label %266, label %45
45: ; preds = %39, %34
%46 = load i8*, i8** %35
%47 = tail call i32* @fopen(i8* %46, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%48 = icmp eq i32* %47, null
br i1 %48, label %49, label %54
49: ; preds = %45
%50 = load i32, i32* @stderr
%51 = load i8*, i8** %35
%52 = tail call i32 @fprintf(i32 %50, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0), i8* %51)
%53 = tail call i32 @exit(i32 1)
unreachable
54: ; preds = %45
%55 = tail call signext i8 @fgetc(i32* %27)
%56 = load i8, i8* @EOF
%57 = icmp eq i8 %55, %56
br i1 %57, label %263, label %58
58: ; preds = %54
%59 = getelementptr inbounds [64 x i8], [64 x i8]* %3, i64 0, i64 0
%60 = bitcast i8** %4 to i8*
%61 = bitcast i8** %5 to i8*
%62 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 0
%63 = getelementptr inbounds [4 x i8], [4 x i8]* %8, i64 0, i64 0
%64 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 0
%65 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 1
%66 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 2
%67 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 3
%68 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 4
%69 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 5
%70 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 6
%71 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 7
%72 = getelementptr inbounds [4 x i8], [4 x i8]* %8, i64 0, i64 1
%73 = getelementptr inbounds [4 x i8], [4 x i8]* %8, i64 0, i64 2
%74 = getelementptr inbounds [4 x i8], [4 x i8]* %8, i64 0, i64 3
%75 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 1
%76 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 2
%77 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 3
br label %78
78: ; preds = %58, %259
%79 = phi i8 [ %55, %58 ], [ %260, %259 ]
%80 = call i64 @isNum(i8 signext %79)
%81 = icmp eq i64 %80, 0
br i1 %81, label %82, label %84
82: ; preds = %78
%83 = load i8, i8* @EOF
br label %240
84: ; preds = %78
br label %85
85: ; preds = %94, %84
%86 = phi i64 [ %95, %94 ], [ 0, %84 ]
%87 = phi i8 [ %97, %94 ], [ %79, %84 ]
%88 = icmp eq i64 %86, 63
br i1 %88, label %89, label %94
89: ; preds = %85
%90 = getelementptr inbounds [64 x i8], [64 x i8]* %3, i64 0, i64 63
store i8 0, i8* %90
%91 = load i32, i32* @stderr
%92 = call i32 @fprintf(i32 %91, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.7, i64 0, i64 0), i8* %59)
%93 = call i32 @exit(i32 1)
unreachable
94: ; preds = %85
%95 = add nuw nsw i64 %86, 1
%96 = getelementptr inbounds [64 x i8], [64 x i8]* %3, i64 0, i64 %86
store i8 %87, i8* %96
%97 = call signext i8 @fgetc(i32* %27)
%98 = call i64 @isNum(i8 signext %97)
%99 = icmp eq i64 %98, 0
br i1 %99, label %100, label %85
100: ; preds = %94
%101 = add nuw i64 %86, 2
%102 = and i64 %95, 4294967295
%103 = getelementptr inbounds [64 x i8], [64 x i8]* %3, i64 0, i64 %102
store i8 0, i8* %103
%104 = call i64 @strtol(i8* %59, i8** %4, i32 10)
%105 = call float @strtod(i8* %59, i8** %5)
%106 = load i8*, i8** %4
%107 = and i64 %101, 4294967295
%108 = getelementptr inbounds [64 x i8], [64 x i8]* %3, i64 0, i64 %107
%109 = getelementptr inbounds i8, i8* %108, i64 -1
%110 = icmp eq i8* %106, %109
br i1 %110, label %111, label %144
111: ; preds = %100
%112 = call i64 (...) @isBigEndian()
%113 = icmp eq i64 %112, 0
br i1 %113, label %116, label %114
114: ; preds = %111
%115 = call i32 @endianSwapInt32(float %105, i8* %64)
br label %118
116: ; preds = %111
%117 = call i32 @getBytesInt32(float %105, i8* %64)
br label %118
118: ; preds = %116, %114
%119 = load i8, i8* %64
%120 = call signext i8 @fputc(i8 signext %119, i32* %47)
%121 = load i8, i8* @EOF
%122 = icmp eq i8 %120, %121
br i1 %122, label %139, label %123
123: ; preds = %118
%124 = load i8, i8* %75
%125 = call signext i8 @fputc(i8 signext %124, i32* %47)
%126 = load i8, i8* @EOF
%127 = icmp eq i8 %125, %126
br i1 %127, label %139, label %128
128: ; preds = %123
%129 = load i8, i8* %76
%130 = call signext i8 @fputc(i8 signext %129, i32* %47)
%131 = load i8, i8* @EOF
%132 = icmp eq i8 %130, %131
br i1 %132, label %139, label %133
133: ; preds = %128
%134 = load i8, i8* %77
%135 = call signext i8 @fputc(i8 signext %134, i32* %47)
%136 = load i8, i8* @EOF
%137 = icmp eq i8 %135, %136
br i1 %137, label %139, label %138
138: ; preds = %133
br label %238
139: ; preds = %133, %128, %123, %118
%140 = load i32, i32* @stderr
%141 = load i8*, i8** %35
%142 = call i32 @fprintf(i32 %140, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.8, i64 0, i64 0), i8* %141)
%143 = call i32 @exit(i32 1)
unreachable
144: ; preds = %100
%145 = load i8*, i8** %5
%146 = icmp eq i8* %145, %109
br i1 %146, label %147, label %234
147: ; preds = %144
br i1 %24, label %201, label %148
148: ; preds = %147
%149 = call i64 (...) @isBigEndian()
%150 = icmp eq i64 %149, 0
br i1 %150, label %153, label %151
151: ; preds = %148
%152 = call i32 @endianSwapfloat(float %105, i8* %62)
br label %155
153: ; preds = %148
%154 = call i32 @getBytesfloat(float %105, i8* %62)
br label %155
155: ; preds = %153, %151
%156 = load i8, i8* %62
%157 = call signext i8 @fputc(i8 signext %156, i32* %47)
%158 = load i8, i8* @EOF
%159 = icmp eq i8 %157, %158
br i1 %159, label %196, label %160
160: ; preds = %155
%161 = load i8, i8* %65
%162 = call signext i8 @fputc(i8 signext %161, i32* %47)
%163 = load i8, i8* @EOF
%164 = icmp eq i8 %162, %163
br i1 %164, label %196, label %165
165: ; preds = %160
%166 = load i8, i8* %66
%167 = call signext i8 @fputc(i8 signext %166, i32* %47)
%168 = load i8, i8* @EOF
%169 = icmp eq i8 %167, %168
br i1 %169, label %196, label %170
170: ; preds = %165
%171 = load i8, i8* %67
%172 = call signext i8 @fputc(i8 signext %171, i32* %47)
%173 = load i8, i8* @EOF
%174 = icmp eq i8 %172, %173
br i1 %174, label %196, label %175
175: ; preds = %170
%176 = load i8, i8* %68
%177 = call signext i8 @fputc(i8 signext %176, i32* %47)
%178 = load i8, i8* @EOF
%179 = icmp eq i8 %177, %178
br i1 %179, label %196, label %180
180: ; preds = %175
%181 = load i8, i8* %69
%182 = call signext i8 @fputc(i8 signext %181, i32* %47)
%183 = load i8, i8* @EOF
%184 = icmp eq i8 %182, %183
br i1 %184, label %196, label %185
185: ; preds = %180
%186 = load i8, i8* %70
%187 = call signext i8 @fputc(i8 signext %186, i32* %47)
%188 = load i8, i8* @EOF
%189 = icmp eq i8 %187, %188
br i1 %189, label %196, label %190
190: ; preds = %185
%191 = load i8, i8* %71
%192 = call signext i8 @fputc(i8 signext %191, i32* %47)
%193 = load i8, i8* @EOF
%194 = icmp eq i8 %192, %193
br i1 %194, label %196, label %195
195: ; preds = %190
br label %238
196: ; preds = %190, %185, %180, %175, %170, %165, %160, %155
%197 = load i32, i32* @stderr
%198 = load i8*, i8** %35
%199 = call i32 @fprintf(i32 %197, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.8, i64 0, i64 0), i8* %198)
%200 = call i32 @exit(i32 1)
unreachable
201: ; preds = %147
%202 = call i64 (...) @isBigEndian()
%203 = icmp eq i64 %202, 0
br i1 %203, label %206, label %204
204: ; preds = %201
%205 = call i32 @endianSwapFloat(float %105, i8* %63)
br label %208
206: ; preds = %201
%207 = call i32 @getBytesFloat(float %105, i8* %63)
br label %208
208: ; preds = %206, %204
%209 = load i8, i8* %63
%210 = call signext i8 @fputc(i8 signext %209, i32* %47)
%211 = load i8, i8* @EOF
%212 = icmp eq i8 %210, %211
br i1 %212, label %229, label %213
213: ; preds = %208
%214 = load i8, i8* %72
%215 = call signext i8 @fputc(i8 signext %214, i32* %47)
%216 = load i8, i8* @EOF
%217 = icmp eq i8 %215, %216
br i1 %217, label %229, label %218
218: ; preds = %213
%219 = load i8, i8* %73
%220 = call signext i8 @fputc(i8 signext %219, i32* %47)
%221 = load i8, i8* @EOF
%222 = icmp eq i8 %220, %221
br i1 %222, label %229, label %223
223: ; preds = %218
%224 = load i8, i8* %74
%225 = call signext i8 @fputc(i8 signext %224, i32* %47)
%226 = load i8, i8* @EOF
%227 = icmp eq i8 %225, %226
br i1 %227, label %229, label %228
228: ; preds = %223
br label %238
229: ; preds = %223, %218, %213, %208
%230 = load i32, i32* @stderr
%231 = load i8*, i8** %35
%232 = call i32 @fprintf(i32 %230, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.8, i64 0, i64 0), i8* %231)
%233 = call i32 @exit(i32 1)
unreachable
234: ; preds = %144
%235 = load i32, i32* @stderr
%236 = call i32 @fprintf(i32 %235, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.9, i64 0, i64 0), i8* %59)
%237 = call i32 @exit(i32 1)
unreachable
238: ; preds = %228, %195, %138
%239 = phi i8 [ %226, %228 ], [ %193, %195 ], [ %136, %138 ]
br label %240
240: ; preds = %82, %238
%241 = phi i8 [ %239, %238 ], [ %83, %82 ]
%242 = phi i8 [ %97, %238 ], [ %79, %82 ]
%243 = icmp eq i8 %242, %241
br i1 %243, label %263, label %244
244: ; preds = %240
%245 = icmp eq i8 %242, 32
br i1 %245, label %259, label %246
246: ; preds = %244
%247 = call i32 @iscntrl(i8 signext %242)
%248 = icmp eq i32 %247, 0
br i1 %248, label %249, label %259
249: ; preds = %246
%250 = call i32 @ispunct(i8 signext %242)
%251 = icmp eq i32 %250, 0
br i1 %251, label %252, label %259
252: ; preds = %249
%253 = getelementptr inbounds [64 x i8], [64 x i8]* %9, i64 0, i64 0
store i8 %242, i8* %253
%254 = getelementptr inbounds [64 x i8], [64 x i8]* %9, i64 0, i64 1
store i8 0, i8* %254
%255 = call i32 @fgets(i8* %254, i32 63, i32* %27)
%256 = load i32, i32* @stderr
%257 = call i32 @fprintf(i32 %256, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.10, i64 0, i64 0), i8* %253)
%258 = call i32 @exit(i32 1)
unreachable
259: ; preds = %249, %246, %244
%260 = call signext i8 @fgetc(i32* %27)
%261 = load i8, i8* @EOF
%262 = icmp eq i8 %260, %261
br i1 %262, label %263, label %78
263: ; preds = %259, %240, %54
%264 = call i32 @fclose(i32* %27)
%265 = call i32 @fclose(i32* %47)
br label %266
266: ; preds = %39, %263
ret i32 0
}