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

/* Variables and functions */
int /*<<< orphan*/ SEEK_END;
int /*<<< orphan*/ SEEK_SET;
int atof(char const *);
char *ctime(int /*<<< orphan*/ *);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
scalar_t__ fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char const *, char *);
int /*<<< orphan*/ fseek(int /*<<< orphan*/ *, long, int /*<<< orphan*/);
size_t ftell(int /*<<< orphan*/ *);
int memcmp(char *, char const *, int const);
int /*<<< orphan*/ output_line(int /*<<< orphan*/ *, char *, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ show_error_message();
int /*<<< orphan*/ sprintf(char *, char *, char *, char *);
double const sqrt(double const);
int sscanf(char const *, char *, double *, double *);
int /*<<< orphan*/ *stdout;
int /*<<< orphan*/ strcat(char *, char const *);
int /*<<< orphan*/ *strchr(char *, char const);
int /*<<< orphan*/ strcpy(char *, char *);
size_t strlen(char const *);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
int main(const int argc, const char **argv) {
  const char *input_file_name = "MPCORB.DAT";
  FILE *output_file = stdout, *ifile;
  char buff[300];
  int i, use_cr = 0, line_no = 0, n_lines_output = 0;
  int n_lines = 0;
  size_t filesize;
  time_t t0 = time(NULL);
  for (i = 1; i < argc; i++)
    if (argv[i][0] == '-')
      switch (argv[i][1]) {
      case '?':
        show_error_message();
        return (0);
        break;
      case 'c':
      case 'C':
        use_cr = 1;
        break;
      case 'o':
      case 'O':
        output_file = fopen(argv[i] + 2, "wb");
        if (!output_file) {
          printf("'%s' not opened\n", argv[i] + 2);
          show_error_message();
          return (-1);
        }
        break;
      case 'i':
        input_file_name = argv[i] + 2;
        break;
      default:
        printf("'%s' not recognized\n", argv[i]);
        show_error_message();
        return (-3);
        break;
      }
  ifile = fopen(input_file_name, "rb");
  if (!ifile) {
    printf("'%s' not opened\n", input_file_name);
    show_error_message();
    return (-2);
  }
  fseek(ifile, 0L, SEEK_END);
  filesize = ftell(ifile);
  fseek(ifile, 0L, SEEK_SET);
  if (argc == 1) {
    use_cr = 1;
    output_file = fopen("mpcorbcr.dat", "wb");
  }
  *buff = '\0';
  while (memcmp(buff, "A brief header", 14) && fgets(buff, sizeof(buff), ifile))
    output_line(output_file, buff, use_cr);
  sprintf(buff, "mpcorbx version %s,  run on %s", "Mar 15 2022", ctime(&t0));
  output_line(output_file, buff, use_cr);
  if (argc > 1) {
    strcpy(buff, "Command-line arguments:");
    for (i = 1; i < argc; i++) {
      strcat(buff, " ");
      strcat(buff, argv[i]);
    }
    output_line(output_file, buff, use_cr);
  }
  while (memcmp(buff, "------", 6) && fgets(buff, sizeof(buff), ifile))
    output_line(output_file, buff, use_cr);
  while (fgets(buff, sizeof(buff), ifile))
    if (strlen(buff) > 200 && buff[29] == '.' && buff[95] == '.') {
      bool show_it = true;
      int i;
      line_no++;
      if (!n_lines)
        n_lines = 1 + (filesize - ftell(ifile)) / strlen(buff);
      for (i = 1; i < argc && show_it; i++) {
        const bool less_than = (NULL != strchr("<({l", argv[i][1]));
        const bool greater_than = (NULL != strchr(">)}g", argv[i][1]));
        if (greater_than || less_than || argv[i][1] == ':') {
          const double DUMMY_VAL = -31.4159207;
          double val = DUMMY_VAL;
          const char *semimajor = buff + 91;
          const char *ecc = buff + 69;
          switch (argv[i][0]) {
          case 'a':
            val = atof(semimajor);
            break;
          case 'P': {
            const double a = atof(semimajor);
            val = a * sqrt(a);
          } break;
          case 'q':
            val = atof(semimajor) * (1. - atof(ecc));
            break;
          case 'Q':
            val = atof(semimajor) * (1. + atof(ecc));
            break;
          case 'H':
            if (buff[10] != ' ')
              val = atof(buff + 8);
            else
              show_it = false;
            break;
          case 'n':
            val = atof(buff + 80);
            break;
          case 'O':
            val = atof(buff + 194);
            break;
          case 'A':
            val = atof(buff + 48);
            break;
          case 'p':
            val = atof(buff + 37);
            break;
          case 'N':
            val = (double)line_no;
            break;
          case 'd': {
            const int len = strlen(argv[i] + 2);
            const int compare = memcmp(buff, argv[i] + 2, len);
            if (buff[len - 1] == ' ')
              show_it = false;
            else {
              if (less_than && compare > 0)
                show_it = false;
              if (greater_than && compare < 0)
                show_it = false;
            }
          } break;
          case 'e':
            val = atof(ecc);
            break;
          case 'i':
            val = atof(buff + 59);
            break;
          default:
            break;
          }
          if (val != DUMMY_VAL) {
            if (argv[i][1] == ':') {
              double low_range, high_range;
              if (sscanf(argv[i] + 2, "%lf,%lf", &low_range, &high_range) == 2)
                if (val < low_range || val > high_range)
                  show_it = false;
            } else {
              const double comparison = atof(argv[i] + 2);
              if (less_than && val > comparison)
                show_it = false;
              if (greater_than && val < comparison)
                show_it = false;
            }
          }
        }
      }
      if (show_it) {
        n_lines_output++;
        output_line(output_file, buff, use_cr);
      }
    }
  fclose(ifile);
  if (output_file != stdout) {
    printf("%d lines read in; %d lines written\n", line_no, n_lines_output);
    fclose(output_file);
  }
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x240,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xf48(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0x2d75(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x20(%rbp)
movl   $0x0,-0x168(%rbp)
movl   $0x0,-0x16c(%rbp)
movl   $0x0,-0x170(%rbp)
movl   $0x0,-0x174(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   10d0 <time@plt>
mov    %eax,-0x184(%rbp)
movl   $0x1,-0x164(%rbp)
mov    -0x164(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    13ff <main+0x1cf>
mov    -0x10(%rbp),%rax
movslq -0x164(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsbl (%rax),%eax
cmp    $0x2d,%eax
jne    13e6 <main+0x1b6>
mov    -0x10(%rbp),%rax
movslq -0x164(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsbl 0x1(%rax),%eax
add    $0xffffffc1,%eax
mov    %eax,%ecx
mov    %rcx,-0x1e8(%rbp)
sub    $0x30,%eax
ja     13b1 <main+0x181>
mov    -0x1e8(%rbp),%rax
lea    0xdd1(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    $0x0,%al
call   1110 <show_error_message@plt>
movl   $0x0,-0x4(%rbp)
jmp    1d84 <main+0xb54>
movl   $0x1,-0x168(%rbp)
jmp    13e1 <main+0x1b1>
mov    -0x10(%rbp),%rax
movslq -0x164(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
add    $0x2,%rdi
lea    0xe5b(%rip),%rsi
call   1120 <fopen@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
jne    1390 <main+0x160>
mov    -0x10(%rbp),%rax
movslq -0x164(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
add    $0x2,%rsi
lea    0xe30(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
mov    $0x0,%al
call   1110 <show_error_message@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1d84 <main+0xb54>
jmp    13e1 <main+0x1b1>
mov    -0x10(%rbp),%rax
movslq -0x164(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
add    $0x2,%rax
mov    %rax,-0x18(%rbp)
jmp    13e1 <main+0x1b1>
mov    -0x10(%rbp),%rax
movslq -0x164(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
lea    0xdf0(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
mov    $0x0,%al
call   1110 <show_error_message@plt>
movl   $0xfffffffd,-0x4(%rbp)
jmp    1d84 <main+0xb54>
jmp    13e6 <main+0x1b6>
jmp    13eb <main+0x1bb>
mov    -0x164(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x164(%rbp)
jmp    12a3 <main+0x73>
mov    -0x18(%rbp),%rdi
lea    0xdc2(%rip),%rsi
call   1120 <fopen@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x28(%rbp)
jne    1443 <main+0x213>
mov    -0x18(%rbp),%rsi
lea    0xd7d(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
mov    $0x0,%al
call   1110 <show_error_message@plt>
movl   $0xfffffffe,-0x4(%rbp)
jmp    1d84 <main+0xb54>
mov    -0x28(%rbp),%rdi
mov    0x2b9a(%rip),%rax
mov    (%rax),%edx
xor    %eax,%eax
mov    %eax,%esi
call   10f0 <fseek@plt>
mov    -0x28(%rbp),%rdi
call   10c0 <ftell@plt>
mov    %rax,-0x180(%rbp)
mov    -0x28(%rbp),%rdi
mov    0x2b64(%rip),%rax
mov    (%rax),%edx
xor    %eax,%eax
mov    %eax,%esi
call   10f0 <fseek@plt>
cmpl   $0x1,-0x8(%rbp)
jne    14aa <main+0x27a>
movl   $0x1,-0x168(%rbp)
lea    0xd35(%rip),%rdi
lea    0xd02(%rip),%rsi
call   1120 <fopen@plt>
mov    %rax,-0x20(%rbp)
movb   $0x0,-0x160(%rbp)
lea    -0x160(%rbp),%rdi
lea    0xd1d(%rip),%rsi
mov    $0xe,%edx
call   10a0 <memcmp@plt>
mov    %eax,%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x1e9(%rbp)
je     14fe <main+0x2ce>
lea    -0x160(%rbp),%rdi
mov    -0x28(%rbp),%rdx
mov    $0x12c,%esi
call   10b0 <fgets@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x1e9(%rbp)
mov    -0x1e9(%rbp),%al
test   $0x1,%al
jne    1511 <main+0x2e1>
jmp    152c <main+0x2fc>
mov    -0x20(%rbp),%rdi
lea    -0x160(%rbp),%rsi
mov    -0x168(%rbp),%edx
call   1100 <output_line@plt>
jmp    14b1 <main+0x281>
lea    -0x160(%rbp),%rax
mov    %rax,-0x1f8(%rbp)
lea    -0x184(%rbp),%rdi
call   1060 <ctime@plt>
mov    -0x1f8(%rbp),%rdi
mov    %rax,%rcx
lea    0xc94(%rip),%rsi
lea    0xcac(%rip),%rdx
call   1150 <sprintf@plt>
mov    -0x20(%rbp),%rdi
lea    -0x160(%rbp),%rsi
mov    -0x168(%rbp),%edx
call   1100 <output_line@plt>
cmpl   $0x1,-0x8(%rbp)
jle    1607 <main+0x3d7>
lea    -0x160(%rbp),%rdi
lea    0xc85(%rip),%rsi
call   1030 <strcpy@plt>
movl   $0x1,-0x164(%rbp)
mov    -0x164(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    15f1 <main+0x3c1>
lea    -0x160(%rbp),%rdi
lea    0xc71(%rip),%rsi
call   1140 <strcat@plt>
lea    -0x160(%rbp),%rdi
mov    -0x10(%rbp),%rax
movslq -0x164(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
call   1140 <strcat@plt>
mov    -0x164(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x164(%rbp)
jmp    15a0 <main+0x370>
mov    -0x20(%rbp),%rdi
lea    -0x160(%rbp),%rsi
mov    -0x168(%rbp),%edx
call   1100 <output_line@plt>
jmp    160c <main+0x3dc>
lea    -0x160(%rbp),%rdi
lea    0xc16(%rip),%rsi
mov    $0x6,%edx
call   10a0 <memcmp@plt>
mov    %eax,%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x1f9(%rbp)
je     1659 <main+0x429>
lea    -0x160(%rbp),%rdi
mov    -0x28(%rbp),%rdx
mov    $0x12c,%esi
call   10b0 <fgets@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x1f9(%rbp)
mov    -0x1f9(%rbp),%al
test   $0x1,%al
jne    166c <main+0x43c>
jmp    1687 <main+0x457>
mov    -0x20(%rbp),%rdi
lea    -0x160(%rbp),%rsi
mov    -0x168(%rbp),%edx
call   1100 <output_line@plt>
jmp    160c <main+0x3dc>
jmp    168c <main+0x45c>
lea    -0x160(%rbp),%rdi
mov    -0x28(%rbp),%rdx
mov    $0x12c,%esi
call   10b0 <fgets@plt>
cmp    $0x0,%rax
je     1d3d <main+0xb0d>
lea    -0x160(%rbp),%rdi
call   1070 <strlen@plt>
cmp    $0xc8,%rax
jbe    1d38 <main+0xb08>
movsbl -0x143(%rbp),%eax
cmp    $0x2e,%eax
jne    1d38 <main+0xb08>
movsbl -0x101(%rbp),%eax
cmp    $0x2e,%eax
jne    1d38 <main+0xb08>
movl   $0x1,-0x188(%rbp)
mov    -0x16c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x16c(%rbp)
cmpl   $0x0,-0x174(%rbp)
jne    1759 <main+0x529>
mov    -0x180(%rbp),%rax
mov    %rax,-0x210(%rbp)
mov    -0x28(%rbp),%rdi
call   10c0 <ftell@plt>
mov    %rax,%rcx
mov    -0x210(%rbp),%rax
sub    %rcx,%rax
mov    %rax,-0x208(%rbp)
lea    -0x160(%rbp),%rdi
call   1070 <strlen@plt>
mov    %rax,%rcx
mov    -0x208(%rbp),%rax
xor    %edx,%edx
div    %rcx
add    $0x1,%rax
mov    %eax,-0x174(%rbp)
movl   $0x1,-0x18c(%rbp)
mov    -0x18c(%rbp),%ecx
xor    %eax,%eax
cmp    -0x8(%rbp),%ecx
mov    %al,-0x211(%rbp)
jge    178a <main+0x55a>
cmpl   $0x0,-0x188(%rbp)
setne  %al
mov    %al,-0x211(%rbp)
mov    -0x211(%rbp),%al
test   $0x1,%al
jne    179d <main+0x56d>
jmp    1d01 <main+0xad1>
mov    -0x10(%rbp),%rax
movslq -0x18c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
lea    0xa84(%rip),%rdi
movsbl 0x1(%rax),%esi
call   1080 <strchr@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
setne  %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x190(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x18c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
lea    0xa54(%rip),%rdi
movsbl 0x1(%rax),%esi
call   1080 <strchr@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
setne  %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x194(%rbp)
cmpl   $0x0,-0x194(%rbp)
jne    183d <main+0x60d>
cmpl   $0x0,-0x190(%rbp)
jne    183d <main+0x60d>
mov    -0x10(%rbp),%rax
movslq -0x18c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsbl 0x1(%rax),%eax
cmp    $0x3a,%eax
jne    1ce8 <main+0xab8>
movabs $0xc03f6a79c76c3abc,%rax
6a 3f c0
mov    %rax,-0x1a0(%rbp)
mov    %rax,-0x1a8(%rbp)
lea    -0x105(%rbp),%rax
mov    %rax,-0x1b0(%rbp)
lea    -0x11b(%rbp),%rax
mov    %rax,-0x1b8(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x18c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsbl (%rax),%eax
add    $0xffffffbf,%eax
mov    %eax,%ecx
mov    %rcx,-0x220(%rbp)
sub    $0x30,%eax
ja     1b97 <main+0x967>
mov    -0x220(%rbp),%rax
lea    0x76a(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x1b0(%rbp),%rdi
call   1040 <atof@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x1a8(%rbp)
ff
jmp    1b9c <main+0x96c>
mov    -0x1b0(%rbp),%rdi
call   1040 <atof@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x1c0(%rbp)
ff
movsd  -0x1c0(%rbp),%xmm0
ff
movsd  %xmm0,-0x228(%rbp)
ff
movsd  -0x1c0(%rbp),%xmm0
ff
call   1130 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  -0x228(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x1a8(%rbp)
ff
jmp    1b9c <main+0x96c>
mov    -0x1b0(%rbp),%rdi
call   1040 <atof@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x230(%rbp)
ff
mov    -0x1b8(%rbp),%rdi
call   1040 <atof@plt>
movsd  -0x230(%rbp),%xmm0
ff
cvtsi2sd %eax,%xmm2
movsd  0x6ab(%rip),%xmm1
subsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x1a8(%rbp)
ff
jmp    1b9c <main+0x96c>
mov    -0x1b0(%rbp),%rdi
call   1040 <atof@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x238(%rbp)
ff
mov    -0x1b8(%rbp),%rdi
call   1040 <atof@plt>
movsd  -0x238(%rbp),%xmm0
ff
cvtsi2sd %eax,%xmm2
movsd  0x65e(%rip),%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x1a8(%rbp)
ff
jmp    1b9c <main+0x96c>
movsbl -0x156(%rbp),%eax
cmp    $0x20,%eax
je     19e8 <main+0x7b8>
lea    -0x160(%rbp),%rdi
add    $0x8,%rdi
call   1040 <atof@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x1a8(%rbp)
ff
jmp    19f2 <main+0x7c2>
movl   $0x0,-0x188(%rbp)
jmp    1b9c <main+0x96c>
lea    -0x160(%rbp),%rdi
add    $0x50,%rdi
call   1040 <atof@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x1a8(%rbp)
ff
jmp    1b9c <main+0x96c>
lea    -0x160(%rbp),%rdi
add    $0xc2,%rdi
call   1040 <atof@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x1a8(%rbp)
ff
jmp    1b9c <main+0x96c>
lea    -0x160(%rbp),%rdi
add    $0x30,%rdi
call   1040 <atof@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x1a8(%rbp)
ff
jmp    1b9c <main+0x96c>
lea    -0x160(%rbp),%rdi
add    $0x25,%rdi
call   1040 <atof@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x1a8(%rbp)
ff
jmp    1b9c <main+0x96c>
cvtsi2sdl -0x16c(%rbp),%xmm0
ff
movsd  %xmm0,-0x1a8(%rbp)
ff
jmp    1b9c <main+0x96c>
mov    -0x10(%rbp),%rax
movslq -0x18c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
add    $0x2,%rdi
call   1070 <strlen@plt>
mov    %eax,-0x1c4(%rbp)
lea    -0x160(%rbp),%rdi
mov    -0x10(%rbp),%rax
movslq -0x18c(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
add    $0x2,%rsi
mov    -0x1c4(%rbp),%edx
call   10a0 <memcmp@plt>
mov    %eax,-0x1c8(%rbp)
mov    -0x1c4(%rbp),%eax
sub    $0x1,%eax
cltq
movsbl -0x160(%rbp,%rax,1),%eax
ff
cmp    $0x20,%eax
jne    1b07 <main+0x8d7>
movl   $0x0,-0x188(%rbp)
jmp    1b54 <main+0x924>
cmpl   $0x0,-0x190(%rbp)
je     1b2b <main+0x8fb>
cmpl   $0x0,-0x1c8(%rbp)
jle    1b2b <main+0x8fb>
movl   $0x0,-0x188(%rbp)
cmpl   $0x0,-0x194(%rbp)
je     1b4f <main+0x91f>
cmpl   $0x0,-0x1c8(%rbp)
jge    1b4f <main+0x91f>
movl   $0x0,-0x188(%rbp)
jmp    1b54 <main+0x924>
jmp    1b9c <main+0x96c>
mov    -0x1b8(%rbp),%rdi
call   1040 <atof@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x1a8(%rbp)
ff
jmp    1b9c <main+0x96c>
lea    -0x160(%rbp),%rdi
add    $0x3b,%rdi
call   1040 <atof@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x1a8(%rbp)
ff
jmp    1b9c <main+0x96c>
jmp    1b9c <main+0x96c>
movsd  -0x1a8(%rbp),%xmm0
ff
movsd  0x45c(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    1bc1 <main+0x991>
jp     1bc1 <main+0x991>
jmp    1ce3 <main+0xab3>
mov    -0x10(%rbp),%rax
movslq -0x18c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsbl 0x1(%rax),%eax
cmp    $0x3a,%eax
jne    1c57 <main+0xa27>
mov    -0x10(%rbp),%rax
movslq -0x18c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
add    $0x2,%rdi
lea    0x64a(%rip),%rsi
lea    -0x1d0(%rbp),%rdx
lea    -0x1d8(%rbp),%rcx
call   10e0 <sscanf@plt>
cmp    $0x2,%eax
jne    1c52 <main+0xa22>
movsd  -0x1a8(%rbp),%xmm1
ff
movsd  -0x1d0(%rbp),%xmm0
ff
ucomisd %xmm1,%xmm0
ja     1c43 <main+0xa13>
movsd  -0x1a8(%rbp),%xmm0
ff
ucomisd -0x1d8(%rbp),%xmm0
ff
jbe    1c4d <main+0xa1d>
movl   $0x0,-0x188(%rbp)
jmp    1c52 <main+0xa22>
jmp    1cde <main+0xaae>
mov    -0x10(%rbp),%rax
movslq -0x18c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
add    $0x2,%rdi
call   1040 <atof@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x1e0(%rbp)
ff
cmpl   $0x0,-0x190(%rbp)
je     1ca8 <main+0xa78>
movsd  -0x1a8(%rbp),%xmm0
ff
ucomisd -0x1e0(%rbp),%xmm0
ff
jbe    1ca8 <main+0xa78>
movl   $0x0,-0x188(%rbp)
cmpl   $0x0,-0x194(%rbp)
je     1cd9 <main+0xaa9>
movsd  -0x1a8(%rbp),%xmm1
ff
movsd  -0x1e0(%rbp),%xmm0
ff
ucomisd %xmm1,%xmm0
jbe    1cd9 <main+0xaa9>
movl   $0x0,-0x188(%rbp)
jmp    1cde <main+0xaae>
jmp    1ce3 <main+0xab3>
jmp    1ce8 <main+0xab8>
jmp    1ced <main+0xabd>
mov    -0x18c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18c(%rbp)
jmp    1763 <main+0x533>
cmpl   $0x0,-0x188(%rbp)
je     1d33 <main+0xb03>
mov    -0x170(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x170(%rbp)
mov    -0x20(%rbp),%rdi
lea    -0x160(%rbp),%rsi
mov    -0x168(%rbp),%edx
call   1100 <output_line@plt>
jmp    1d38 <main+0xb08>
jmp    168c <main+0x45c>
mov    -0x28(%rbp),%rdi
call   1050 <fclose@plt>
mov    -0x20(%rbp),%rax
mov    0x227f(%rip),%rcx
cmp    (%rcx),%rax
je     1d7d <main+0xb4d>
mov    -0x16c(%rbp),%esi
mov    -0x170(%rbp),%edx
lea    0x4dc(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
mov    -0x20(%rbp),%rdi
call   1050 <fclose@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x240,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x1b8,%rsp
mov    %rsi,0x30(%rsp)
mov    %edi,%ebx
mov    0x2d81(%rip),%rax
mov    (%rax),%r15
xor    %edi,%edi
call   10d0 <time@plt>
mov    %eax,0x4c(%rsp)
cmp    $0x2,%ebx
mov    %ebx,0xc(%rsp)
jl     12f6 <main+0xc6>
mov    %ebx,%r13d
xor    %ebx,%ebx
lea    0xf2a(%rip),%r14
mov    $0x1,%ebp
lea    0xd96(%rip),%r12
jmp    129d <main+0x6d>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %ebx,%ecx
add    $0x1,%rbp
mov    %ecx,%ebx
cmp    %rbp,%r13
je     12ff <main+0xcf>
mov    0x30(%rsp),%rax
mov    (%rax,%rbp,8),%rsi
cmpb   $0x2d,(%rsi)
jne    1290 <main+0x60>
movsbl 0x1(%rsi),%eax
add    $0xffffffc1,%eax
cmp    $0x30,%eax
ja     1a0a <main+0x7da>
mov    $0x1,%ecx
movslq (%r12,%rax,4),%rax
add    %r12,%rax
jmp    *%rax
add    $0x2,%rsi
mov    %rsi,%rdi
lea    0xed4(%rip),%rsi
call   1120 <fopen@plt>
mov    %ebx,%ecx
mov    %rax,%r15
test   %rax,%rax
jne    1292 <main+0x62>
jmp    19d6 <main+0x7a6>
add    $0x2,%rsi
mov    %ebx,%ecx
mov    %rsi,%r14
jmp    1292 <main+0x62>
lea    0xea3(%rip),%r14
xor    %ecx,%ecx
mov    %rcx,0x20(%rsp)
lea    0xec9(%rip),%rsi
mov    %r14,%rdi
call   1120 <fopen@plt>
test   %rax,%rax
je     19a5 <main+0x775>
mov    %rax,%rbx
mov    0x2cc2(%rip),%rax
mov    (%rax),%edx
mov    %rbx,%rdi
xor    %esi,%esi
call   10f0 <fseek@plt>
mov    %rbx,%rdi
call   10c0 <ftell@plt>
mov    %rax,0x58(%rsp)
mov    0x2c92(%rip),%rax
mov    (%rax),%edx
mov    %rbx,0x28(%rsp)
mov    %rbx,%rdi
xor    %esi,%esi
call   10f0 <fseek@plt>
cmpl   $0x1,0xc(%rsp)
mov    %r15,%r12
jne    1381 <main+0x151>
lea    0xe6f(%rip),%rdi
lea    0xe3c(%rip),%rsi
call   1120 <fopen@plt>
mov    %rax,%r12
mov    $0x1,%eax
mov    %rax,0x20(%rsp)
movb   $0x0,0x80(%rsp)
lea    0xe54(%rip),%rsi
lea    0x80(%rsp),%rdi
mov    $0xe,%edx
call   10a0 <memcmp@plt>
test   %eax,%eax
mov    0x30(%rsp),%r13
mov    0x28(%rsp),%r15
je     13f9 <main+0x1c9>
lea    0x80(%rsp),%rbp
lea    0xe25(%rip),%r14
nop
mov    %rbp,%rdi
mov    $0x12c,%esi
mov    %r15,%rdx
call   10b0 <fgets@plt>
test   %rax,%rax
je     13f9 <main+0x1c9>
mov    %r12,%rdi
mov    %rbp,%rsi
mov    0x20(%rsp),%rdx
call   1100 <output_line@plt>
mov    %rbp,%rdi
mov    %r14,%rsi
mov    $0xe,%edx
call   10a0 <memcmp@plt>
test   %eax,%eax
jne    13c0 <main+0x190>
lea    0x4c(%rsp),%rdi
call   1060 <ctime@plt>
lea    0xde9(%rip),%rsi
lea    0xe01(%rip),%rdx
lea    0x80(%rsp),%rbp
mov    %rbp,%rdi
mov    %rax,%rcx
call   1150 <sprintf@plt>
mov    %r12,%rdi
mov    %rbp,%rsi
mov    0x20(%rsp),%rdx
call   1100 <output_line@plt>
cmpl   $0x2,0xc(%rsp)
jl     14ab <main+0x27b>
lea    0xddc(%rip),%rsi
lea    0x80(%rsp),%r15
mov    %r15,%rdi
call   1030 <strcpy@plt>
mov    0xc(%rsp),%ebx
mov    $0x1,%ebp
lea    0xdd4(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %r15,%rdi
mov    %r14,%rsi
call   1140 <strcat@plt>
mov    0x0(%r13,%rbp,8),%rsi
mov    %r15,%rdi
call   1140 <strcat@plt>
add    $0x1,%rbp
cmp    %rbp,%rbx
jne    1470 <main+0x240>
lea    0x80(%rsp),%rsi
mov    %r12,%rdi
mov    0x20(%rsp),%rdx
call   1100 <output_line@plt>
mov    0x28(%rsp),%r15
lea    0xd86(%rip),%rsi
lea    0x80(%rsp),%rdi
mov    $0x6,%edx
call   10a0 <memcmp@plt>
test   %eax,%eax
je     1519 <main+0x2e9>
lea    0x80(%rsp),%rbp
lea    0xd61(%rip),%r14
nopw   0x0(%rax,%rax,1)
mov    %rbp,%rdi
mov    $0x12c,%esi
mov    %r15,%rdx
call   10b0 <fgets@plt>
test   %rax,%rax
je     1519 <main+0x2e9>
mov    %r12,%rdi
mov    %rbp,%rsi
mov    0x20(%rsp),%rdx
call   1100 <output_line@plt>
mov    %rbp,%rdi
mov    %r14,%rsi
mov    $0x6,%edx
call   10a0 <memcmp@plt>
test   %eax,%eax
jne    14e0 <main+0x2b0>
lea    0x80(%rsp),%rdi
mov    $0x12c,%esi
mov    %r15,%rdx
call   10b0 <fgets@plt>
mov    $0x0,%r14d
mov    $0x0,%ebx
test   %rax,%rax
je     196d <main+0x73d>
movslq 0xc(%rsp),%rax
mov    %rax,0x68(%rsp)
xor    %ebx,%ebx
lea    0x80(%rsp),%rbp
xor    %r14d,%r14d
xor    %eax,%eax
mov    %rax,0x50(%rsp)
mov    %r12,0x38(%rsp)
jmp    15bd <main+0x38d>
nopw   0x0(%rax,%rax,1)
test   %ebx,%ebx
mov    0x38(%rsp),%r12
mov    0x28(%rsp),%r15
mov    0x40(%rsp),%rbx
mov    0x1c(%rsp),%r14d
lea    0x80(%rsp),%rbp
je     15a4 <main+0x374>
add    $0x1,%r14d
mov    %r12,%rdi
mov    %rbp,%rsi
mov    0x20(%rsp),%rdx
call   1100 <output_line@plt>
mov    %rbp,%rdi
mov    $0x12c,%esi
mov    %r15,%rdx
call   10b0 <fgets@plt>
test   %rax,%rax
je     196d <main+0x73d>
mov    %rbp,%rdi
call   1070 <strlen@plt>
cmp    $0xc9,%rax
jb     15a4 <main+0x374>
cmpb   $0x2e,0x9d(%rsp)
2e
jne    15a4 <main+0x374>
cmpb   $0x2e,0xdf(%rsp)
2e
jne    15a4 <main+0x374>
mov    0x50(%rsp),%rax
test   %eax,%eax
jne    1629 <main+0x3f9>
mov    %r15,%rdi
call   10c0 <ftell@plt>
mov    %rbp,%rdi
mov    0x58(%rsp),%rbp
sub    %rax,%rbp
call   1070 <strlen@plt>
mov    %rax,%rcx
or     %rbp,%rax
shr    $0x20,%rax
je     1618 <main+0x3e8>
mov    %rbp,%rax
xor    %edx,%edx
div    %rcx
jmp    161e <main+0x3ee>
mov    %ebp,%eax
xor    %edx,%edx
div    %ecx
lea    0x80(%rsp),%rbp
add    $0x1,%eax
mov    %rax,0x50(%rsp)
add    $0x1,%ebx
cmpl   $0x2,0xc(%rsp)
jl     1590 <main+0x360>
mov    %r14d,0x1c(%rsp)
mov    %rbx,0x40(%rsp)
xorps  %xmm0,%xmm0
cvtsi2sd %ebx,%xmm0
movsd  %xmm0,0x60(%rsp)
mov    $0x2,%r14d
nopl   0x0(%rax)
mov    -0x8(%r13,%r14,8),%rax
movsbl 0x1(%rax),%esi
lea    0xbcf(%rip),%rdi
call   1080 <strchr@plt>
mov    %rax,%r15
mov    -0x8(%r13,%r14,8),%rax
movsbl 0x1(%rax),%esi
lea    0xbbc(%rip),%rdi
call   1080 <strchr@plt>
mov    %rax,%r12
or     %r15,%rax
mov    -0x8(%r13,%r14,8),%rbp
jne    16a9 <main+0x479>
mov    $0x1,%ebx
cmpb   $0x3a,0x1(%rbp)
jne    18bb <main+0x68b>
movsbl 0x0(%rbp),%eax
mov    $0x1,%ebx
add    $0xffffffbf,%eax
cmp    $0x30,%eax
ja     18bb <main+0x68b>
lea    0xa17(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
movsd  0x60(%rsp),%xmm1
jmp    *%rax
lea    0xb0(%rsp),%rdi
jmp    1810 <main+0x5e0>
cmpb   $0x20,0x8a(%rsp)
20
je     1940 <main+0x710>
lea    0x88(%rsp),%rdi
jmp    1810 <main+0x5e0>
lea    0x142(%rsp),%rdi
jmp    1810 <main+0x5e0>
lea    0xdb(%rsp),%rdi
call   1040 <atof@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
ucomisd 0x8eb(%rip),%xmm0
jb     191c <main+0x6ec>
xorps  %xmm1,%xmm1
sqrtsd %xmm0,%xmm1
mulsd  %xmm0,%xmm1
jmp    181c <main+0x5ec>
lea    0xdb(%rsp),%rdi
call   1040 <atof@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,0x10(%rsp)
lea    0xc5(%rsp),%rdi
call   1040 <atof@plt>
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
addsd  0x88f(%rip),%xmm1
mulsd  0x10(%rsp),%xmm1
jmp    181c <main+0x5ec>
lea    0xdb(%rsp),%rdi
jmp    1810 <main+0x5e0>
add    $0x2,%rbp
mov    %rbp,%rdi
call   1070 <strlen@plt>
mov    %rax,%r13
lea    0x80(%rsp),%rdi
mov    %rbp,%rsi
mov    %r13d,%edx
call   10a0 <memcmp@plt>
add    $0xffffffff,%r13d
movslq %r13d,%rcx
cmpb   $0x20,0x80(%rsp,%rcx,1)
20
je     1947 <main+0x717>
test   %r12,%r12
sete   %cl
test   %r15,%r15
sete   %dl
test   %eax,%eax
setle  %al
setns  %bl
or     %dl,%al
or     %cl,%bl
and    %al,%bl
movzbl %bl,%ebx
mov    0x30(%rsp),%r13
jmp    18bb <main+0x68b>
lea    0xc5(%rsp),%rdi
jmp    1810 <main+0x5e0>
lea    0xbb(%rsp),%rdi
jmp    1810 <main+0x5e0>
lea    0xd0(%rsp),%rdi
jmp    1810 <main+0x5e0>
lea    0xa5(%rsp),%rdi
nopl   (%rax)
call   1040 <atof@plt>
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
ucomisd 0x7e4(%rip),%xmm1
jne    182c <main+0x5fc>
jnp    18bb <main+0x68b>
movsd  %xmm1,0x10(%rsp)
mov    -0x8(%r13,%r14,8),%rdi
cmpb   $0x3a,0x1(%rdi)
jne    1880 <main+0x650>
add    $0x2,%rdi
lea    0xa01(%rip),%rsi
lea    0x78(%rsp),%rdx
lea    0x70(%rsp),%rcx
call   10e0 <sscanf@plt>
mov    $0x1,%ebx
cmp    $0x2,%eax
jne    18bb <main+0x68b>
movsd  0x78(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
ucomisd %xmm1,%xmm0
setbe  %al
ucomisd 0x70(%rsp),%xmm1
setbe  %cl
jmp    18b6 <main+0x686>
nop
test   %r12,%r12
sete   %bpl
test   %r15,%r15
sete   %bl
add    $0x2,%rdi
call   1040 <atof@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0x10(%rsp),%xmm1
ucomisd %xmm0,%xmm1
setbe  %al
or     %bl,%al
ucomisd %xmm1,%xmm0
setbe  %cl
or     %bpl,%cl
and    %al,%cl
movzbl %cl,%ebx
cmp    0x68(%rsp),%r14
jge    1570 <main+0x340>
add    $0x1,%r14
test   %ebx,%ebx
jne    1660 <main+0x430>
jmp    1570 <main+0x340>
lea    0xdb(%rsp),%rdi
call   1040 <atof@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,0x10(%rsp)
lea    0xc5(%rsp),%rdi
call   1040 <atof@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0x6f3(%rip),%xmm1
subsd  %xmm0,%xmm1
mulsd  0x10(%rsp),%xmm1
jmp    181c <main+0x5ec>
movsd  %xmm0,0x10(%rsp)
movsd  0x10(%rsp),%xmm0
call   1130 <sqrt@plt>
movapd %xmm0,%xmm1
movsd  0x10(%rsp),%xmm0
mulsd  %xmm0,%xmm1
jmp    181c <main+0x5ec>
mov    0x38(%rsp),%r12
jmp    1951 <main+0x721>
mov    0x38(%rsp),%r12
mov    0x30(%rsp),%r13
mov    0x28(%rsp),%r15
mov    0x40(%rsp),%rbx
mov    0x1c(%rsp),%r14d
lea    0x80(%rsp),%rbp
jmp    15a4 <main+0x374>
mov    %r15,%rdi
call   1050 <fclose@plt>
mov    0x2654(%rip),%rax
cmp    (%rax),%r12
mov    $0x0,%ebp
je     19c2 <main+0x792>
lea    0x8c4(%rip),%rdi
xor    %ebp,%ebp
mov    %ebx,%esi
mov    %r14d,%edx
xor    %eax,%eax
call   1090 <printf@plt>
mov    %r12,%rdi
call   1050 <fclose@plt>
jmp    19c2 <main+0x792>
lea    0x802(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1090 <printf@plt>
xor    %eax,%eax
call   1110 <show_error_message@plt>
mov    $0xfffffffe,%ebp
mov    %ebp,%eax
add    $0x1b8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x30(%rsp),%rax
mov    (%rax,%rbp,8),%rsi
add    $0x2,%rsi
lea    0x7c4(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
xor    %eax,%eax
call   1110 <show_error_message@plt>
mov    $0xffffffff,%ebp
jmp    19c2 <main+0x792>
xor    %ebp,%ebp
xor    %eax,%eax
call   1110 <show_error_message@plt>
jmp    19c2 <main+0x792>
lea    0x7ae(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
xor    %eax,%eax
call   1110 <show_error_message@plt>
mov    $0xfffffffd,%ebp
jmp    19c2 <main+0x792>

LLVM IR (-O0):
@.str = [11 x i8] c"MPCORB.DAT\00"
@stdout = global i32* null
@.str.1 = [3 x i8] c"wb\00"
@.str.2 = [17 x i8] c"'%s' not opened\0A\00"
@.str.3 = [21 x i8] c"'%s' not recognized\0A\00"
@.str.4 = [3 x i8] c"rb\00"
@SEEK_END = global i32 0
@SEEK_SET = global i32 0
@.str.5 = [13 x i8] c"mpcorbcr.dat\00"
@.str.6 = [15 x i8] c"A brief header\00"
@.str.7 = [31 x i8] c"mpcorbx version %s, run on %s\00"
@.str.8 = [12 x i8] c"Mar 15 2022\00"
@.str.9 = [24 x i8] c"Command-line arguments:\00"
@.str.10 = [2 x i8] c" \00"
@.str.11 = [7 x i8] c"------\00"
@.str.12 = [5 x i8] c"<({l\00"
@.str.13 = [5 x i8] c">)}g\00"
@.str.14 = [8 x i8] c"%lf,%lf\00"
@.str.15 = [36 x i8] c"%d lines read in; %d lines written\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca i32*
%8 = alloca i32*
%9 = alloca [300 x i8]
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i64
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca double
%22 = alloca double
%23 = alloca i8*
%24 = alloca i8*
%25 = alloca double
%26 = alloca i32
%27 = alloca i32
%28 = alloca double
%29 = alloca double
%30 = alloca double
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8** %6
%31 = load i32*, i32** @stdout
store i32* %31, i32** %7
store i32 0, i32* %11
store i32 0, i32* %12
store i32 0, i32* %13
store i32 0, i32* %14
%32 = call i32 @time(i32* null)
store i32 %32, i32* %16
store i32 1, i32* %10
br label %33
33: ; preds = %96, %2
%34 = load i32, i32* %10
%35 = load i32, i32* %4
%36 = icmp slt i32 %34, %35
br i1 %36, label %37, label %99
37: ; preds = %33
%38 = load i8**, i8*** %5
%39 = load i32, i32* %10
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i8*, i8** %38, i64 %40
%42 = load i8*, i8** %41
%43 = getelementptr inbounds i8, i8* %42, i64 0
%44 = load i8, i8* %43
%45 = sext i8 %44 to i32
%46 = icmp eq i32 %45, 45
br i1 %46, label %47, label %95
47: ; preds = %37
%48 = load i8**, i8*** %5
%49 = load i32, i32* %10
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds i8*, i8** %48, i64 %50
%52 = load i8*, i8** %51
%53 = getelementptr inbounds i8, i8* %52, i64 1
%54 = load i8, i8* %53
%55 = sext i8 %54 to i32
switch i32 %55, label %86 [
i32 63, label %56
i32 99, label %58
i32 67, label %58
i32 111, label %59
i32 79, label %59
i32 105, label %79
]
56: ; preds = %47
%57 = call i32 (...) @show_error_message()
store i32 0, i32* %3
br label %491
58: ; preds = %47, %47
store i32 1, i32* %11
br label %94
59: ; preds = %47, %47
%60 = load i8**, i8*** %5
%61 = load i32, i32* %10
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds i8*, i8** %60, i64 %62
%64 = load i8*, i8** %63
%65 = getelementptr inbounds i8, i8* %64, i64 2
%66 = call i32* @fopen(i8* %65, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %66, i32** %7
%67 = load i32*, i32** %7
%68 = icmp ne i32* %67, null
br i1 %68, label %78, label %69
69: ; preds = %59
%70 = load i8**, i8*** %5
%71 = load i32, i32* %10
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds i8*, i8** %70, i64 %72
%74 = load i8*, i8** %73
%75 = getelementptr inbounds i8, i8* %74, i64 2
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i8* %75)
%77 = call i32 (...) @show_error_message()
store i32 -1, i32* %3
br label %491
78: ; preds = %59
br label %94
79: ; preds = %47
%80 = load i8**, i8*** %5
%81 = load i32, i32* %10
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds i8*, i8** %80, i64 %82
%84 = load i8*, i8** %83
%85 = getelementptr inbounds i8, i8* %84, i64 2
store i8* %85, i8** %6
br label %94
86: ; preds = %47
%87 = load i8**, i8*** %5
%88 = load i32, i32* %10
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds i8*, i8** %87, i64 %89
%91 = load i8*, i8** %90
%92 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0), i8* %91)
%93 = call i32 (...) @show_error_message()
store i32 -3, i32* %3
br label %491
94: ; preds = %79, %78, %58
br label %95
95: ; preds = %94, %37
br label %96
96: ; preds = %95
%97 = load i32, i32* %10
%98 = add nsw i32 %97, 1
store i32 %98, i32* %10
br label %33
99: ; preds = %33
%100 = load i8*, i8** %6
%101 = call i32* @fopen(i8* %100, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
store i32* %101, i32** %8
%102 = load i32*, i32** %8
%103 = icmp ne i32* %102, null
br i1 %103, label %108, label %104
104: ; preds = %99
%105 = load i8*, i8** %6
%106 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i8* %105)
%107 = call i32 (...) @show_error_message()
store i32 -2, i32* %3
br label %491
108: ; preds = %99
%109 = load i32*, i32** %8
%110 = load i32, i32* @SEEK_END
%111 = call i32 @fseek(i32* %109, i64 0, i32 %110)
%112 = load i32*, i32** %8
%113 = call i64 @ftell(i32* %112)
store i64 %113, i64* %15
%114 = load i32*, i32** %8
%115 = load i32, i32* @SEEK_SET
%116 = call i32 @fseek(i32* %114, i64 0, i32 %115)
%117 = load i32, i32* %4
%118 = icmp eq i32 %117, 1
br i1 %118, label %119, label %121
119: ; preds = %108
store i32 1, i32* %11
%120 = call i32* @fopen(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %120, i32** %7
br label %121
121: ; preds = %119, %108
%122 = getelementptr inbounds [300 x i8], [300 x i8]* %9, i64 0, i64 0
store i8 0, i8* %122
br label %123
123: ; preds = %134, %121
%124 = getelementptr inbounds [300 x i8], [300 x i8]* %9, i64 0, i64 0
%125 = call i32 @memcmp(i8* %124, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0), i32 14)
%126 = icmp ne i32 %125, 0
br i1 %126, label %127, label %132
127: ; preds = %123
%128 = getelementptr inbounds [300 x i8], [300 x i8]* %9, i64 0, i64 0
%129 = load i32*, i32** %8
%130 = call i64 @fgets(i8* %128, i32 300, i32* %129)
%131 = icmp ne i64 %130, 0
br label %132
132: ; preds = %127, %123
%133 = phi i1 [ false, %123 ], [ %131, %127 ]
br i1 %133, label %134, label %139
134: ; preds = %132
%135 = load i32*, i32** %7
%136 = getelementptr inbounds [300 x i8], [300 x i8]* %9, i64 0, i64 0
%137 = load i32, i32* %11
%138 = call i32 @output_line(i32* %135, i8* %136, i32 %137)
br label %123
139: ; preds = %132
%140 = getelementptr inbounds [300 x i8], [300 x i8]* %9, i64 0, i64 0
%141 = call i8* @ctime(i32* %16)
%142 = call i32 @sprintf(i8* %140, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0), i8* %141)
%143 = load i32*, i32** %7
%144 = getelementptr inbounds [300 x i8], [300 x i8]* %9, i64 0, i64 0
%145 = load i32, i32* %11
%146 = call i32 @output_line(i32* %143, i8* %144, i32 %145)
%147 = load i32, i32* %4
%148 = icmp sgt i32 %147, 1
br i1 %148, label %149, label %174
149: ; preds = %139
%150 = getelementptr inbounds [300 x i8], [300 x i8]* %9, i64 0, i64 0
%151 = call i32 @strcpy(i8* %150, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.9, i64 0, i64 0))
store i32 1, i32* %10
br label %152
152: ; preds = %166, %149
%153 = load i32, i32* %10
%154 = load i32, i32* %4
%155 = icmp slt i32 %153, %154
br i1 %155, label %156, label %169
156: ; preds = %152
%157 = getelementptr inbounds [300 x i8], [300 x i8]* %9, i64 0, i64 0
%158 = call i32 @strcat(i8* %157, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
%159 = getelementptr inbounds [300 x i8], [300 x i8]* %9, i64 0, i64 0
%160 = load i8**, i8*** %5
%161 = load i32, i32* %10
%162 = sext i32 %161 to i64
%163 = getelementptr inbounds i8*, i8** %160, i64 %162
%164 = load i8*, i8** %163
%165 = call i32 @strcat(i8* %159, i8* %164)
br label %166
166: ; preds = %156
%167 = load i32, i32* %10
%168 = add nsw i32 %167, 1
store i32 %168, i32* %10
br label %152
169: ; preds = %152
%170 = load i32*, i32** %7
%171 = getelementptr inbounds [300 x i8], [300 x i8]* %9, i64 0, i64 0
%172 = load i32, i32* %11
%173 = call i32 @output_line(i32* %170, i8* %171, i32 %172)
br label %174
174: ; preds = %169, %139
br label %175
175: ; preds = %186, %174
%176 = getelementptr inbounds [300 x i8], [300 x i8]* %9, i64 0, i64 0
%177 = call i32 @memcmp(i8* %176, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0), i32 6)
%178 = icmp ne i32 %177, 0
br i1 %178, label %179, label %184
179: ; preds = %175
%180 = getelementptr inbounds [300 x i8], [300 x i8]* %9, i64 0, i64 0
%181 = load i32*, i32** %8
%182 = call i64 @fgets(i8* %180, i32 300, i32* %181)
%183 = icmp ne i64 %182, 0
br label %184
184: ; preds = %179, %175
%185 = phi i1 [ false, %175 ], [ %183, %179 ]
br i1 %185, label %186, label %191
186: ; preds = %184
%187 = load i32*, i32** %7
%188 = getelementptr inbounds [300 x i8], [300 x i8]* %9, i64 0, i64 0
%189 = load i32, i32* %11
%190 = call i32 @output_line(i32* %187, i8* %188, i32 %189)
br label %175
191: ; preds = %184
br label %192
192: ; preds = %477, %191
%193 = getelementptr inbounds [300 x i8], [300 x i8]* %9, i64 0, i64 0
%194 = load i32*, i32** %8
%195 = call i64 @fgets(i8* %193, i32 300, i32* %194)
%196 = icmp ne i64 %195, 0
br i1 %196, label %197, label %478
197: ; preds = %192
%198 = getelementptr inbounds [300 x i8], [300 x i8]* %9, i64 0, i64 0
%199 = call i64 @strlen(i8* %198)
%200 = icmp ugt i64 %199, 200
br i1 %200, label %201, label %477
201: ; preds = %197
%202 = getelementptr inbounds [300 x i8], [300 x i8]* %9, i64 0, i64 29
%203 = load i8, i8* %202
%204 = sext i8 %203 to i32
%205 = icmp eq i32 %204, 46
br i1 %205, label %206, label %477
206: ; preds = %201
%207 = getelementptr inbounds [300 x i8], [300 x i8]* %9, i64 0, i64 95
%208 = load i8, i8* %207
%209 = sext i8 %208 to i32
%210 = icmp eq i32 %209, 46
br i1 %210, label %211, label %477
211: ; preds = %206
store i32 1, i32* %17
%212 = load i32, i32* %12
%213 = add nsw i32 %212, 1
store i32 %213, i32* %12
%214 = load i32, i32* %14
%215 = icmp ne i32 %214, 0
br i1 %215, label %226, label %216
216: ; preds = %211
%217 = load i64, i64* %15
%218 = load i32*, i32** %8
%219 = call i64 @ftell(i32* %218)
%220 = sub i64 %217, %219
%221 = getelementptr inbounds [300 x i8], [300 x i8]* %9, i64 0, i64 0
%222 = call i64 @strlen(i8* %221)
%223 = udiv i64 %220, %222
%224 = add i64 1, %223
%225 = trunc i64 %224 to i32
store i32 %225, i32* %14
br label %226
226: ; preds = %216, %211
store i32 1, i32* %18
br label %227
227: ; preds = %463, %226
%228 = load i32, i32* %18
%229 = load i32, i32* %4
%230 = icmp slt i32 %228, %229
br i1 %230, label %231, label %234
231: ; preds = %227
%232 = load i32, i32* %17
%233 = icmp ne i32 %232, 0
br label %234
234: ; preds = %231, %227
%235 = phi i1 [ false, %227 ], [ %233, %231 ]
br i1 %235, label %236, label %466
236: ; preds = %234
%237 = load i8**, i8*** %5
%238 = load i32, i32* %18
%239 = sext i32 %238 to i64
%240 = getelementptr inbounds i8*, i8** %237, i64 %239
%241 = load i8*, i8** %240
%242 = getelementptr inbounds i8, i8* %241, i64 1
%243 = load i8, i8* %242
%244 = call i32* @strchr(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0), i8 signext %243)
%245 = icmp ne i32* null, %244
%246 = zext i1 %245 to i32
store i32 %246, i32* %19
%247 = load i8**, i8*** %5
%248 = load i32, i32* %18
%249 = sext i32 %248 to i64
%250 = getelementptr inbounds i8*, i8** %247, i64 %249
%251 = load i8*, i8** %250
%252 = getelementptr inbounds i8, i8* %251, i64 1
%253 = load i8, i8* %252
%254 = call i32* @strchr(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0), i8 signext %253)
%255 = icmp ne i32* null, %254
%256 = zext i1 %255 to i32
store i32 %256, i32* %20
%257 = load i32, i32* %20
%258 = icmp ne i32 %257, 0
br i1 %258, label %272, label %259
259: ; preds = %236
%260 = load i32, i32* %19
%261 = icmp ne i32 %260, 0
br i1 %261, label %272, label %262
262: ; preds = %259
%263 = load i8**, i8*** %5
%264 = load i32, i32* %18
%265 = sext i32 %264 to i64
%266 = getelementptr inbounds i8*, i8** %263, i64 %265
%267 = load i8*, i8** %266
%268 = getelementptr inbounds i8, i8* %267, i64 1
%269 = load i8, i8* %268
%270 = sext i8 %269 to i32
%271 = icmp eq i32 %270, 58
br i1 %271, label %272, label %462
272: ; preds = %262, %259, %236
store double 0xC03F6A79C76C3ABC, double* %21
store double 0xC03F6A79C76C3ABC, double* %22
%273 = getelementptr inbounds [300 x i8], [300 x i8]* %9, i64 0, i64 0
%274 = getelementptr inbounds i8, i8* %273, i64 91
store i8* %274, i8** %23
%275 = getelementptr inbounds [300 x i8], [300 x i8]* %9, i64 0, i64 0
%276 = getelementptr inbounds i8, i8* %275, i64 69
store i8* %276, i8** %24
%277 = load i8**, i8*** %5
%278 = load i32, i32* %18
%279 = sext i32 %278 to i64
%280 = getelementptr inbounds i8*, i8** %277, i64 %279
%281 = load i8*, i8** %280
%282 = getelementptr inbounds i8, i8* %281, i64 0
%283 = load i8, i8* %282
%284 = sext i8 %283 to i32
switch i32 %284, label %401 [
i32 97, label %285
i32 80, label %289
i32 113, label %297
i32 81, label %306
i32 72, label %315
i32 110, label %327
i32 79, label %332
i32 65, label %337
i32 112, label %342
i32 78, label %347
i32 100, label %350
i32 101, label %392
i32 105, label %396
]
285: ; preds = %272
%286 = load i8*, i8** %23
%287 = call i32 @atof(i8* %286)
%288 = sitofp i32 %287 to double
store double %288, double* %22
br label %402
289: ; preds = %272
%290 = load i8*, i8** %23
%291 = call i32 @atof(i8* %290)
%292 = sitofp i32 %291 to double
store double %292, double* %25
%293 = load double, double* %25
%294 = load double, double* %25
%295 = call double @sqrt(double %294)
%296 = fmul double %293, %295
store double %296, double* %22
br label %402
297: ; preds = %272
%298 = load i8*, i8** %23
%299 = call i32 @atof(i8* %298)
%300 = sitofp i32 %299 to double
%301 = load i8*, i8** %24
%302 = call i32 @atof(i8* %301)
%303 = sitofp i32 %302 to double
%304 = fsub double 1.000000e+00, %303
%305 = fmul double %300, %304
store double %305, double* %22
br label %402
306: ; preds = %272
%307 = load i8*, i8** %23
%308 = call i32 @atof(i8* %307)
%309 = sitofp i32 %308 to double
%310 = load i8*, i8** %24
%311 = call i32 @atof(i8* %310)
%312 = sitofp i32 %311 to double
%313 = fadd double 1.000000e+00, %312
%314 = fmul double %309, %313
store double %314, double* %22
br label %402
315: ; preds = %272
%316 = getelementptr inbounds [300 x i8], [300 x i8]* %9, i64 0, i64 10
%317 = load i8, i8* %316
%318 = sext i8 %317 to i32
%319 = icmp ne i32 %318, 32
br i1 %319, label %320, label %325
320: ; preds = %315
%321 = getelementptr inbounds [300 x i8], [300 x i8]* %9, i64 0, i64 0
%322 = getelementptr inbounds i8, i8* %321, i64 8
%323 = call i32 @atof(i8* %322)
%324 = sitofp i32 %323 to double
store double %324, double* %22
br label %326
325: ; preds = %315
store i32 0, i32* %17
br label %326
326: ; preds = %325, %320
br label %402
327: ; preds = %272
%328 = getelementptr inbounds [300 x i8], [300 x i8]* %9, i64 0, i64 0
%329 = getelementptr inbounds i8, i8* %328, i64 80
%330 = call i32 @atof(i8* %329)
%331 = sitofp i32 %330 to double
store double %331, double* %22
br label %402
332: ; preds = %272
%333 = getelementptr inbounds [300 x i8], [300 x i8]* %9, i64 0, i64 0
%334 = getelementptr inbounds i8, i8* %333, i64 194
%335 = call i32 @atof(i8* %334)
%336 = sitofp i32 %335 to double
store double %336, double* %22
br label %402
337: ; preds = %272
%338 = getelementptr inbounds [300 x i8], [300 x i8]* %9, i64 0, i64 0
%339 = getelementptr inbounds i8, i8* %338, i64 48
%340 = call i32 @atof(i8* %339)
%341 = sitofp i32 %340 to double
store double %341, double* %22
br label %402
342: ; preds = %272
%343 = getelementptr inbounds [300 x i8], [300 x i8]* %9, i64 0, i64 0
%344 = getelementptr inbounds i8, i8* %343, i64 37
%345 = call i32 @atof(i8* %344)
%346 = sitofp i32 %345 to double
store double %346, double* %22
br label %402
347: ; preds = %272
%348 = load i32, i32* %12
%349 = sitofp i32 %348 to double
store double %349, double* %22
br label %402
350: ; preds = %272
%351 = load i8**, i8*** %5
%352 = load i32, i32* %18
%353 = sext i32 %352 to i64
%354 = getelementptr inbounds i8*, i8** %351, i64 %353
%355 = load i8*, i8** %354
%356 = getelementptr inbounds i8, i8* %355, i64 2
%357 = call i64 @strlen(i8* %356)
%358 = trunc i64 %357 to i32
store i32 %358, i32* %26
%359 = getelementptr inbounds [300 x i8], [300 x i8]* %9, i64 0, i64 0
%360 = load i8**, i8*** %5
%361 = load i32, i32* %18
%362 = sext i32 %361 to i64
%363 = getelementptr inbounds i8*, i8** %360, i64 %362
%364 = load i8*, i8** %363
%365 = getelementptr inbounds i8, i8* %364, i64 2
%366 = load i32, i32* %26
%367 = call i32 @memcmp(i8* %359, i8* %365, i32 %366)
store i32 %367, i32* %27
%368 = load i32, i32* %26
%369 = sub nsw i32 %368, 1
%370 = sext i32 %369 to i64
%371 = getelementptr inbounds [300 x i8], [300 x i8]* %9, i64 0, i64 %370
%372 = load i8, i8* %371
%373 = sext i8 %372 to i32
%374 = icmp eq i32 %373, 32
br i1 %374, label %375, label %376
375: ; preds = %350
store i32 0, i32* %17
br label %391
376: ; preds = %350
%377 = load i32, i32* %19
%378 = icmp ne i32 %377, 0
br i1 %378, label %379, label %383
379: ; preds = %376
%380 = load i32, i32* %27
%381 = icmp sgt i32 %380, 0
br i1 %381, label %382, label %383
382: ; preds = %379
store i32 0, i32* %17
br label %383
383: ; preds = %382, %379, %376
%384 = load i32, i32* %20
%385 = icmp ne i32 %384, 0
br i1 %385, label %386, label %390
386: ; preds = %383
%387 = load i32, i32* %27
%388 = icmp slt i32 %387, 0
br i1 %388, label %389, label %390
389: ; preds = %386
store i32 0, i32* %17
br label %390
390: ; preds = %389, %386, %383
br label %391
391: ; preds = %390, %375
br label %402
392: ; preds = %272
%393 = load i8*, i8** %24
%394 = call i32 @atof(i8* %393)
%395 = sitofp i32 %394 to double
store double %395, double* %22
br label %402
396: ; preds = %272
%397 = getelementptr inbounds [300 x i8], [300 x i8]* %9, i64 0, i64 0
%398 = getelementptr inbounds i8, i8* %397, i64 59
%399 = call i32 @atof(i8* %398)
%400 = sitofp i32 %399 to double
store double %400, double* %22
br label %402
401: ; preds = %272
br label %402
402: ; preds = %401, %396, %392, %391, %347, %342, %337, %332, %327, %326, %306, %297, %289, %285
%403 = load double, double* %22
%404 = fcmp une double %403, 0xC03F6A79C76C3ABC
br i1 %404, label %405, label %461
405: ; preds = %402
%406 = load i8**, i8*** %5
%407 = load i32, i32* %18
%408 = sext i32 %407 to i64
%409 = getelementptr inbounds i8*, i8** %406, i64 %408
%410 = load i8*, i8** %409
%411 = getelementptr inbounds i8, i8* %410, i64 1
%412 = load i8, i8* %411
%413 = sext i8 %412 to i32
%414 = icmp eq i32 %413, 58
br i1 %414, label %415, label %435
415: ; preds = %405
%416 = load i8**, i8*** %5
%417 = load i32, i32* %18
%418 = sext i32 %417 to i64
%419 = getelementptr inbounds i8*, i8** %416, i64 %418
%420 = load i8*, i8** %419
%421 = getelementptr inbounds i8, i8* %420, i64 2
%422 = call i32 @sscanf(i8* %421, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i64 0, i64 0), double* %28, double* %29)
%423 = icmp eq i32 %422, 2
br i1 %423, label %424, label %434
424: ; preds = %415
%425 = load double, double* %22
%426 = load double, double* %28
%427 = fcmp olt double %425, %426
br i1 %427, label %432, label %428
428: ; preds = %424
%429 = load double, double* %22
%430 = load double, double* %29
%431 = fcmp ogt double %429, %430
br i1 %431, label %432, label %433
432: ; preds = %428, %424
store i32 0, i32* %17
br label %433
433: ; preds = %432, %428
br label %434
434: ; preds = %433, %415
br label %460
435: ; preds = %405
%436 = load i8**, i8*** %5
%437 = load i32, i32* %18
%438 = sext i32 %437 to i64
%439 = getelementptr inbounds i8*, i8** %436, i64 %438
%440 = load i8*, i8** %439
%441 = getelementptr inbounds i8, i8* %440, i64 2
%442 = call i32 @atof(i8* %441)
%443 = sitofp i32 %442 to double
store double %443, double* %30
%444 = load i32, i32* %19
%445 = icmp ne i32 %444, 0
br i1 %445, label %446, label %451
446: ; preds = %435
%447 = load double, double* %22
%448 = load double, double* %30
%449 = fcmp ogt double %447, %448
br i1 %449, label %450, label %451
450: ; preds = %446
store i32 0, i32* %17
br label %451
451: ; preds = %450, %446, %435
%452 = load i32, i32* %20
%453 = icmp ne i32 %452, 0
br i1 %453, label %454, label %459
454: ; preds = %451
%455 = load double, double* %22
%456 = load double, double* %30
%457 = fcmp olt double %455, %456
br i1 %457, label %458, label %459
458: ; preds = %454
store i32 0, i32* %17
br label %459
459: ; preds = %458, %454, %451
br label %460
460: ; preds = %459, %434
br label %461
461: ; preds = %460, %402
br label %462
462: ; preds = %461, %262
br label %463
463: ; preds = %462
%464 = load i32, i32* %18
%465 = add nsw i32 %464, 1
store i32 %465, i32* %18
br label %227
466: ; preds = %234
%467 = load i32, i32* %17
%468 = icmp ne i32 %467, 0
br i1 %468, label %469, label %476
469: ; preds = %466
%470 = load i32, i32* %13
%471 = add nsw i32 %470, 1
store i32 %471, i32* %13
%472 = load i32*, i32** %7
%473 = getelementptr inbounds [300 x i8], [300 x i8]* %9, i64 0, i64 0
%474 = load i32, i32* %11
%475 = call i32 @output_line(i32* %472, i8* %473, i32 %474)
br label %476
476: ; preds = %469, %466
br label %477
477: ; preds = %476, %206, %201, %197
br label %192
478: ; preds = %192
%479 = load i32*, i32** %8
%480 = call i32 @fclose(i32* %479)
%481 = load i32*, i32** %7
%482 = load i32*, i32** @stdout
%483 = icmp ne i32* %481, %482
br i1 %483, label %484, label %490
484: ; preds = %478
%485 = load i32, i32* %12
%486 = load i32, i32* %13
%487 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.15, i64 0, i64 0), i32 %485, i32 %486)
%488 = load i32*, i32** %7
%489 = call i32 @fclose(i32* %488)
br label %490
490: ; preds = %484, %478
store i32 0, i32* %3
br label %491
491: ; preds = %490, %104, %86, %69, %56
%492 = load i32, i32* %3
ret i32 %492
}

LLVM IR (-O2):
@.str = [11 x i8] c"MPCORB.DAT\00"
@stdout = global i32* null
@.str.1 = [3 x i8] c"wb\00"
@.str.2 = [17 x i8] c"'%s' not opened\0A\00"
@.str.3 = [21 x i8] c"'%s' not recognized\0A\00"
@.str.4 = [3 x i8] c"rb\00"
@SEEK_END = global i32 0
@SEEK_SET = global i32 0
@.str.5 = [13 x i8] c"mpcorbcr.dat\00"
@.str.6 = [15 x i8] c"A brief header\00"
@.str.7 = [31 x i8] c"mpcorbx version %s, run on %s\00"
@.str.8 = [12 x i8] c"Mar 15 2022\00"
@.str.9 = [24 x i8] c"Command-line arguments:\00"
@.str.10 = [2 x i8] c" \00"
@.str.11 = [7 x i8] c"------\00"
@.str.12 = [5 x i8] c"<({l\00"
@.str.13 = [5 x i8] c">)}g\00"
@.str.14 = [8 x i8] c"%lf,%lf\00"
@.str.15 = [36 x i8] c"%d lines read in; %d lines written\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [300 x i8]
%4 = alloca i32
%5 = alloca double
%6 = alloca double
%7 = load i32*, i32** @stdout
%8 = getelementptr inbounds [300 x i8], [300 x i8]* %3, i64 0, i64 0
%9 = bitcast i32* %4 to i8*
%10 = tail call i32 @time(i32* null)
store i32 %10, i32* %4
%11 = icmp sgt i32 %0, 1
br i1 %11, label %12, label %51
12: ; preds = %2
%13 = zext i32 %0 to i64
br label %14
14: ; preds = %12, %45
%15 = phi i64 [ 1, %12 ], [ %49, %45 ]
%16 = phi i8* [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), %12 ], [ %48, %45 ]
%17 = phi i32* [ %7, %12 ], [ %47, %45 ]
%18 = phi i32 [ 0, %12 ], [ %46, %45 ]
%19 = getelementptr inbounds i8*, i8** %1, i64 %15
%20 = load i8*, i8** %19
%21 = load i8, i8* %20
%22 = icmp eq i8 %21, 45
br i1 %22, label %23, label %45
23: ; preds = %14
%24 = getelementptr inbounds i8, i8* %20, i64 1
%25 = load i8, i8* %24
%26 = sext i8 %25 to i32
switch i32 %26, label %42 [
i32 63, label %27
i32 99, label %45
i32 67, label %45
i32 111, label %29
i32 79, label %29
i32 105, label %40
]
27: ; preds = %23
%28 = tail call i32 (...) @show_error_message()
br label %298
29: ; preds = %23, %23
%30 = getelementptr inbounds i8, i8* %20, i64 2
%31 = tail call i32* @fopen(i8* %30, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%32 = icmp eq i32* %31, null
br i1 %32, label %33, label %45
33: ; preds = %29
%34 = and i64 %15, 4294967295
%35 = getelementptr inbounds i8*, i8** %1, i64 %34
%36 = load i8*, i8** %35
%37 = getelementptr inbounds i8, i8* %36, i64 2
%38 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i8* %37)
%39 = tail call i32 (...) @show_error_message()
br label %298
40: ; preds = %23
%41 = getelementptr inbounds i8, i8* %20, i64 2
br label %45
42: ; preds = %23
%43 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0), i8* %20)
%44 = tail call i32 (...) @show_error_message()
br label %298
45: ; preds = %23, %23, %14, %29, %40
%46 = phi i32 [ %18, %40 ], [ %18, %29 ], [ %18, %14 ], [ 1, %23 ], [ 1, %23 ]
%47 = phi i32* [ %17, %40 ], [ %31, %29 ], [ %17, %14 ], [ %17, %23 ], [ %17, %23 ]
%48 = phi i8* [ %41, %40 ], [ %16, %29 ], [ %16, %14 ], [ %16, %23 ], [ %16, %23 ]
%49 = add nuw nsw i64 %15, 1
%50 = icmp eq i64 %49, %13
br i1 %50, label %51, label %14
51: ; preds = %45, %2
%52 = phi i32 [ 0, %2 ], [ %46, %45 ]
%53 = phi i32* [ %7, %2 ], [ %47, %45 ]
%54 = phi i8* [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), %2 ], [ %48, %45 ]
%55 = tail call i32* @fopen(i8* %54, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%56 = icmp eq i32* %55, null
br i1 %56, label %57, label %60
57: ; preds = %51
%58 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i8* %54)
%59 = tail call i32 (...) @show_error_message()
br label %298
60: ; preds = %51
%61 = load i32, i32* @SEEK_END
%62 = tail call i32 @fseek(i32* %55, i64 0, i32 %61)
%63 = tail call i64 @ftell(i32* %55)
%64 = load i32, i32* @SEEK_SET
%65 = tail call i32 @fseek(i32* %55, i64 0, i32 %64)
%66 = icmp eq i32 %0, 1
br i1 %66, label %67, label %69
67: ; preds = %60
%68 = tail call i32* @fopen(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
br label %69
69: ; preds = %67, %60
%70 = phi i32 [ 1, %67 ], [ %52, %60 ]
%71 = phi i32* [ %68, %67 ], [ %53, %60 ]
store i8 0, i8* %8
%72 = call i32 @memcmp(i8* %8, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0), i32 14)
%73 = icmp eq i32 %72, 0
br i1 %73, label %81, label %74
74: ; preds = %69, %77
%75 = call i64 @fgets(i8* %8, i32 300, i32* %55)
%76 = icmp eq i64 %75, 0
br i1 %76, label %81, label %77
77: ; preds = %74
%78 = call i32 @output_line(i32* %71, i8* %8, i32 %70)
%79 = call i32 @memcmp(i8* %8, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0), i32 14)
%80 = icmp eq i32 %79, 0
br i1 %80, label %81, label %74
81: ; preds = %74, %77, %69
%82 = call i8* @ctime(i32* %4)
%83 = call i32 @sprintf(i8* %8, i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0), i8* %82)
%84 = call i32 @output_line(i32* %71, i8* %8, i32 %70)
br i1 %11, label %85, label %98
85: ; preds = %81
%86 = call i32 @strcpy(i8* %8, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.9, i64 0, i64 0))
%87 = zext i32 %0 to i64
br label %88
88: ; preds = %85, %88
%89 = phi i64 [ 1, %85 ], [ %94, %88 ]
%90 = call i32 @strcat(i8* %8, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
%91 = getelementptr inbounds i8*, i8** %1, i64 %89
%92 = load i8*, i8** %91
%93 = call i32 @strcat(i8* %8, i8* %92)
%94 = add nuw nsw i64 %89, 1
%95 = icmp eq i64 %94, %87
br i1 %95, label %96, label %88
96: ; preds = %88
%97 = call i32 @output_line(i32* %71, i8* %8, i32 %70)
br label %98
98: ; preds = %96, %81
%99 = call i32 @memcmp(i8* %8, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0), i32 6)
%100 = icmp eq i32 %99, 0
br i1 %100, label %108, label %101
101: ; preds = %98, %104
%102 = call i64 @fgets(i8* %8, i32 300, i32* %55)
%103 = icmp eq i64 %102, 0
br i1 %103, label %108, label %104
104: ; preds = %101
%105 = call i32 @output_line(i32* %71, i8* %8, i32 %70)
%106 = call i32 @memcmp(i8* %8, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0), i32 6)
%107 = icmp eq i32 %106, 0
br i1 %107, label %108, label %101
108: ; preds = %101, %104, %98
%109 = call i64 @fgets(i8* %8, i32 300, i32* %55)
%110 = icmp eq i64 %109, 0
br i1 %110, label %289, label %111
111: ; preds = %108
%112 = getelementptr inbounds [300 x i8], [300 x i8]* %3, i64 0, i64 29
%113 = getelementptr inbounds [300 x i8], [300 x i8]* %3, i64 0, i64 95
%114 = getelementptr inbounds [300 x i8], [300 x i8]* %3, i64 0, i64 91
%115 = getelementptr inbounds [300 x i8], [300 x i8]* %3, i64 0, i64 69
%116 = getelementptr inbounds [300 x i8], [300 x i8]* %3, i64 0, i64 59
%117 = getelementptr inbounds [300 x i8], [300 x i8]* %3, i64 0, i64 37
%118 = getelementptr inbounds [300 x i8], [300 x i8]* %3, i64 0, i64 48
%119 = getelementptr inbounds [300 x i8], [300 x i8]* %3, i64 0, i64 194
%120 = getelementptr inbounds [300 x i8], [300 x i8]* %3, i64 0, i64 80
%121 = getelementptr inbounds [300 x i8], [300 x i8]* %3, i64 0, i64 10
%122 = getelementptr inbounds [300 x i8], [300 x i8]* %3, i64 0, i64 8
%123 = bitcast double* %5 to i8*
%124 = bitcast double* %6 to i8*
%125 = sext i32 %0 to i64
br label %126
126: ; preds = %111, %283
%127 = phi i32 [ 0, %111 ], [ %286, %283 ]
%128 = phi i32 [ 0, %111 ], [ %285, %283 ]
%129 = phi i32 [ 0, %111 ], [ %284, %283 ]
%130 = call i64 @strlen(i8* %8)
%131 = icmp ugt i64 %130, 200
%132 = load i8, i8* %112
%133 = icmp eq i8 %132, 46
%134 = select i1 %131, i1 %133, i1 false
%135 = load i8, i8* %113
%136 = icmp eq i8 %135, 46
%137 = select i1 %134, i1 %136, i1 false
br i1 %137, label %138, label %283
138: ; preds = %126
%139 = add nsw i32 %127, 1
%140 = icmp eq i32 %129, 0
br i1 %140, label %141, label %148
141: ; preds = %138
%142 = call i64 @ftell(i32* %55)
%143 = sub i64 %63, %142
%144 = call i64 @strlen(i8* %8)
%145 = udiv i64 %143, %144
%146 = trunc i64 %145 to i32
%147 = add i32 %146, 1
br label %148
148: ; preds = %141, %138
%149 = phi i32 [ %129, %138 ], [ %147, %141 ]
br i1 %11, label %150, label %280
150: ; preds = %148
%151 = sitofp i32 %139 to double
br label %152
152: ; preds = %150, %273
%153 = phi i64 [ 1, %150 ], [ %275, %273 ]
%154 = getelementptr inbounds i8*, i8** %1, i64 %153
%155 = load i8*, i8** %154
%156 = getelementptr inbounds i8, i8* %155, i64 1
%157 = load i8, i8* %156
%158 = call i32* @strchr(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0), i8 signext %157)
%159 = icmp ne i32* %158, null
%160 = load i8*, i8** %154
%161 = getelementptr inbounds i8, i8* %160, i64 1
%162 = load i8, i8* %161
%163 = call i32* @strchr(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0), i8 signext %162)
%164 = icmp ne i32* %163, null
%165 = select i1 %164, i1 true, i1 %159
%166 = load i8*, i8** %154
br i1 %165, label %171, label %167
167: ; preds = %152
%168 = getelementptr inbounds i8, i8* %166, i64 1
%169 = load i8, i8* %168
%170 = icmp eq i8 %169, 58
br i1 %170, label %171, label %273
171: ; preds = %152, %167
%172 = load i8, i8* %166
%173 = sext i8 %172 to i32
switch i32 %173, label %273 [
i32 97, label %174
i32 80, label %177
i32 113, label %182
i32 81, label %189
i32 72, label %196
i32 110, label %202
i32 79, label %205
i32 65, label %208
i32 112, label %211
i32 78, label %240
i32 100, label %214
i32 101, label %234
i32 105, label %237
]
174: ; preds = %171
%175 = call i32 @atof(i8* %114)
%176 = sitofp i32 %175 to double
br label %240
177: ; preds = %171
%178 = call i32 @atof(i8* %114)
%179 = sitofp i32 %178 to double
%180 = call double @sqrt(double %179)
%181 = fmul double %180, %179
br label %240
182: ; preds = %171
%183 = call i32 @atof(i8* %114)
%184 = sitofp i32 %183 to double
%185 = call i32 @atof(i8* %115)
%186 = sitofp i32 %185 to double
%187 = fsub double 1.000000e+00, %186
%188 = fmul double %187, %184
br label %240
189: ; preds = %171
%190 = call i32 @atof(i8* %114)
%191 = sitofp i32 %190 to double
%192 = call i32 @atof(i8* %115)
%193 = sitofp i32 %192 to double
%194 = fadd double %193, 1.000000e+00
%195 = fmul double %194, %191
br label %240
196: ; preds = %171
%197 = load i8, i8* %121
%198 = icmp eq i8 %197, 32
br i1 %198, label %283, label %199
199: ; preds = %196
%200 = call i32 @atof(i8* %122)
%201 = sitofp i32 %200 to double
br label %240
202: ; preds = %171
%203 = call i32 @atof(i8* %120)
%204 = sitofp i32 %203 to double
br label %240
205: ; preds = %171
%206 = call i32 @atof(i8* %119)
%207 = sitofp i32 %206 to double
br label %240
208: ; preds = %171
%209 = call i32 @atof(i8* %118)
%210 = sitofp i32 %209 to double
br label %240
211: ; preds = %171
%212 = call i32 @atof(i8* %117)
%213 = sitofp i32 %212 to double
br label %240
214: ; preds = %171
%215 = getelementptr inbounds i8, i8* %166, i64 2
%216 = call i64 @strlen(i8* %215)
%217 = trunc i64 %216 to i32
%218 = call i32 @memcmp(i8* %8, i8* %215, i32 %217)
%219 = shl i64 %216, 32
%220 = add i64 %219, -4294967296
%221 = ashr exact i64 %220, 32
%222 = getelementptr inbounds [300 x i8], [300 x i8]* %3, i64 0, i64 %221
%223 = load i8, i8* %222
%224 = icmp eq i8 %223, 32
br i1 %224, label %283, label %225
225: ; preds = %214
%226 = icmp slt i32 %218, 1
%227 = xor i1 %159, true
%228 = select i1 %227, i1 true, i1 %226
%229 = icmp sgt i32 %218, -1
%230 = xor i1 %164, true
%231 = select i1 %230, i1 true, i1 %229
%232 = select i1 %231, i1 %228, i1 false
%233 = zext i1 %232 to i32
br label %273
234: ; preds = %171
%235 = call i32 @atof(i8* %115)
%236 = sitofp i32 %235 to double
br label %240
237: ; preds = %171
%238 = call i32 @atof(i8* %116)
%239 = sitofp i32 %238 to double
br label %240
240: ; preds = %171, %199, %237, %234, %211, %208, %205, %202, %189, %182, %177, %174
%241 = phi double [ %239, %237 ], [ %236, %234 ], [ %213, %211 ], [ %210, %208 ], [ %207, %205 ], [ %204, %202 ], [ %201, %199 ], [ %195, %189 ], [ %188, %182 ], [ %181, %177 ], [ %176, %174 ], [ %151, %171 ]
%242 = fcmp une double %241, 0xC03F6A79C76C3ABC
br i1 %242, label %243, label %273
243: ; preds = %240
%244 = load i8*, i8** %154
%245 = getelementptr inbounds i8, i8* %244, i64 1
%246 = load i8, i8* %245
%247 = icmp eq i8 %246, 58
br i1 %247, label %248, label %261
248: ; preds = %243
%249 = getelementptr inbounds i8, i8* %244, i64 2
%250 = call i32 @sscanf(i8* %249, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i64 0, i64 0), double* %5, double* %6)
%251 = icmp eq i32 %250, 2
br i1 %251, label %252, label %259
252: ; preds = %248
%253 = load double, double* %5
%254 = fcmp uge double %241, %253
%255 = load double, double* %6
%256 = fcmp ule double %241, %255
%257 = select i1 %254, i1 %256, i1 false
%258 = zext i1 %257 to i32
br label %259
259: ; preds = %252, %248
%260 = phi i32 [ 1, %248 ], [ %258, %252 ]
br label %273
261: ; preds = %243
%262 = getelementptr inbounds i8, i8* %244, i64 2
%263 = call i32 @atof(i8* %262)
%264 = sitofp i32 %263 to double
%265 = fcmp ule double %241, %264
%266 = xor i1 %159, true
%267 = select i1 %266, i1 true, i1 %265
%268 = fcmp uge double %241, %264
%269 = xor i1 %164, true
%270 = select i1 %269, i1 true, i1 %268
%271 = select i1 %270, i1 %267, i1 false
%272 = zext i1 %271 to i32
br label %273
273: ; preds = %225, %171, %240, %261, %259, %167
%274 = phi i32 [ 1, %167 ], [ %260, %259 ], [ %272, %261 ], [ 1, %240 ], [ %233, %225 ], [ 1, %171 ]
%275 = add nuw nsw i64 %153, 1
%276 = icmp slt i64 %275, %125
%277 = icmp ne i32 %274, 0
%278 = select i1 %276, i1 %277, i1 false
br i1 %278, label %152, label %279
279: ; preds = %273
br i1 %277, label %280, label %283
280: ; preds = %148, %279
%281 = add nsw i32 %128, 1
%282 = call i32 @output_line(i32* %71, i8* %8, i32 %70)
br label %283
283: ; preds = %214, %196, %279, %280, %126
%284 = phi i32 [ %129, %126 ], [ %149, %280 ], [ %149, %279 ], [ %149, %196 ], [ %149, %214 ]
%285 = phi i32 [ %128, %126 ], [ %281, %280 ], [ %128, %279 ], [ %128, %196 ], [ %128, %214 ]
%286 = phi i32 [ %127, %126 ], [ %139, %280 ], [ %139, %279 ], [ %139, %196 ], [ %139, %214 ]
%287 = call i64 @fgets(i8* %8, i32 300, i32* %55)
%288 = icmp eq i64 %287, 0
br i1 %288, label %289, label %126
289: ; preds = %283, %108
%290 = phi i32 [ 0, %108 ], [ %285, %283 ]
%291 = phi i32 [ 0, %108 ], [ %286, %283 ]
%292 = call i32 @fclose(i32* %55)
%293 = load i32*, i32** @stdout
%294 = icmp eq i32* %71, %293
br i1 %294, label %298, label %295
295: ; preds = %289
%296 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.15, i64 0, i64 0), i32 %291, i32 %290)
%297 = call i32 @fclose(i32* %71)
br label %298
298: ; preds = %289, %295, %57, %42, %33, %27
%299 = phi i32 [ -3, %42 ], [ -1, %33 ], [ 0, %27 ], [ -2, %57 ], [ 0, %295 ], [ 0, %289 ]
ret i32 %299
}