#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int EXIT_SUCCESS;
int Little_End_In_First();
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int fread(unsigned char *, int, int, int /*<<< orphan*/ *);
char *nScet_to_sScet(unsigned long, unsigned long);
int /*<<< orphan*/ show_help(int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ *stdin;
int /*<<< orphan*/ stdout;
int /*<<< orphan*/ strcmp(char *, char *);
int /*<<< orphan*/ strncpy(char *, char *, int);
int main(int argc, char *argv[]) {
  int i, bLsbFirst, nRead, nRecords = 0;
  char *sFile = NULL;
  FILE *hIn;
  char sTime[32];
  unsigned char arRecord[1024];
  int nBand, nRxAttn, nXmitPwr;
  unsigned long nScetDays, nScetMsec;
  unsigned long nXmitFrq;
  float fXmitFrq, *pDen;
  while (--argc) {
    ++argv;
    if (!strcmp("-h", *argv) || !strcmp("-help", *argv)) {
      show_help(stdout);
      exit(0);
    } else {
      sFile = *argv;
    }
  }
  if (sFile == NULL) {
    hIn = stdin;
    fprintf(stderr, "reading from stdin\n");
  } else if ((hIn = fopen(sFile, "rb")) == NULL) {
    fprintf(stderr, "Unable to open %s\n\n", sFile);
    show_help(stdout);
    exit(1);
  } else {
    fprintf(stderr, "reading %s\n", sFile);
  }
  if ((bLsbFirst = Little_End_In_First()) == 1)
    fprintf(stderr, "detected a little endian machine (lsb first)\n");
  else
    fprintf(stderr, "detected a big endian machine (msb first)\n");
  while ((nRead = fread(arRecord, 400, 1, hIn)) != 0) {
    ++nRecords;
    nScetDays = ((unsigned long)arRecord[8]) << 24;
    nScetDays |= ((unsigned long)arRecord[9]) << 16;
    nScetDays |= ((unsigned long)arRecord[10]) << 8;
    nScetDays |= ((unsigned long)arRecord[11]) << 0;
    nScetMsec = ((unsigned long)arRecord[12]) << 24;
    nScetMsec |= ((unsigned long)arRecord[13]) << 16;
    nScetMsec |= ((unsigned long)arRecord[14]) << 8;
    nScetMsec |= ((unsigned long)arRecord[15]) << 0;
    strncpy(sTime, (char *)(arRecord + 24), 21);
    sTime[22] = '\0';
    nXmitPwr = arRecord[59];
    nBand = arRecord[62];
    switch (arRecord[63] & 0x07) {
    case 0x00:
      nRxAttn = 2;
      break;
    case 0x01:
      nRxAttn = 6;
      break;
    case 0x02:
      nRxAttn = 10;
      break;
    case 0x03:
      nRxAttn = 14;
      break;
    case 0x04:
      nRxAttn = 18;
      break;
    case 0x05:
      nRxAttn = 22;
      break;
    case 0x06:
      nRxAttn = 26;
      break;
    case 0x07:
      nRxAttn = 30;
      break;
    default:
      nRxAttn = 50;
      break;
    }
    nRxAttn = arRecord[63];
    nXmitFrq = ((unsigned long)arRecord[76]) << 24;
    nXmitFrq |= ((unsigned long)arRecord[77]) << 16;
    nXmitFrq |= ((unsigned long)arRecord[78]) << 8;
    nXmitFrq |= ((unsigned long)arRecord[79]) << 0;
    fXmitFrq = *((float *)(&nXmitFrq));
    if (bLsbFirst == 1) {
      unsigned char *p = arRecord + 80;
      for (i = 0; i < 80 * 4; i += 4, p += 4) {
        *(p + 0) ^= *(p + 3);
        *(p + 3) ^= *(p + 0);
        *(p + 0) ^= *(p + 3);
        *(p + 1) ^= *(p + 2);
        *(p + 2) ^= *(p + 1);
        *(p + 1) ^= *(p + 2);
      }
    }
    pDen = (float *)(arRecord + 80);
    fprintf(stdout, "Frame Begin Time :: %s %s\r\n", sTime,
            nScet_to_sScet(nScetDays, nScetMsec));
    fprintf(stdout, "Transmit Frequency = %.3f KHz\r\n", fXmitFrq / 1000.0);
    fprintf(stdout, "Band Number = %d\r\n", nBand);
    fprintf(stdout, "Receiver Attenuation = %d\r\n", nRxAttn);
    fprintf(stdout, "Transmit Power Level = %d\r\n", nXmitPwr);
    for (i = 0; i < 80; i++)
      fprintf(stdout, "%.1E ", pDen[i]);
    fprintf(stdout, "\r\n\r\n");
  }
  fprintf(stderr, "Read %d records (%d frames) totaling %d bytes\n", nRecords,
          nRecords / 160, nRecords * 400);
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x4b0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x20(%rbp)
movq   $0x0,-0x28(%rbp)
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
cmp    $0x0,%eax
je     1233 <main+0xa3>
mov    -0x10(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xe44(%rip),%rdi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
je     120e <main+0x7e>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xe2b(%rip),%rdi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
jne    1223 <main+0x93>
mov    0x2dbb(%rip),%rax
mov    (%rax),%edi
call   1070 <show_help@plt>
xor    %edi,%edi
call   10a0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x28(%rbp)
jmp    11b8 <main+0x28>
cmpq   $0x0,-0x28(%rbp)
jne    1268 <main+0xd8>
mov    0x2da3(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x30(%rbp)
mov    0x2d85(%rip),%rax
mov    (%rax),%edi
lea    0xdd5(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
jmp    12d9 <main+0x149>
mov    -0x28(%rbp),%rdi
lea    0xdd2(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x30(%rbp)
cmp    $0x0,%rax
jne    12b9 <main+0x129>
mov    0x2d4b(%rip),%rax
mov    (%rax),%edi
mov    -0x28(%rbp),%rdx
lea    0xdae(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    0x2d28(%rip),%rax
mov    (%rax),%edi
call   1070 <show_help@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>
mov    0x2d18(%rip),%rax
mov    (%rax),%edi
mov    -0x28(%rbp),%rdx
lea    0xd8f(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
jmp    12d9 <main+0x149>
mov    $0x0,%al
call   1090 <Little_End_In_First@plt>
mov    %eax,-0x18(%rbp)
cmp    $0x1,%eax
jne    1308 <main+0x178>
mov    0x2ce5(%rip),%rax
mov    (%rax),%edi
lea    0xd6c(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
jmp    131f <main+0x18f>
mov    0x2cc9(%rip),%rax
mov    (%rax),%edi
lea    0xd7e(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
jmp    1324 <main+0x194>
lea    -0x450(%rbp),%rdi
mov    -0x30(%rbp),%rcx
mov    $0x190,%esi
mov    $0x1,%edx
call   1040 <fread@plt>
mov    %eax,-0x1c(%rbp)
cmp    $0x0,%eax
je     17c0 <main+0x630>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
movzbl -0x448(%rbp),%eax
shl    $0x18,%rax
mov    %rax,-0x468(%rbp)
movzbl -0x447(%rbp),%eax
mov    %eax,%ecx
shl    $0x10,%rcx
mov    -0x468(%rbp),%rax
or     %rcx,%rax
mov    %rax,-0x468(%rbp)
movzbl -0x446(%rbp),%eax
mov    %eax,%ecx
shl    $0x8,%rcx
mov    -0x468(%rbp),%rax
or     %rcx,%rax
mov    %rax,-0x468(%rbp)
movzbl -0x445(%rbp),%eax
mov    %eax,%ecx
mov    -0x468(%rbp),%rax
or     %rcx,%rax
mov    %rax,-0x468(%rbp)
movzbl -0x444(%rbp),%eax
shl    $0x18,%rax
mov    %rax,-0x470(%rbp)
movzbl -0x443(%rbp),%eax
mov    %eax,%ecx
shl    $0x10,%rcx
mov    -0x470(%rbp),%rax
or     %rcx,%rax
mov    %rax,-0x470(%rbp)
movzbl -0x442(%rbp),%eax
mov    %eax,%ecx
shl    $0x8,%rcx
mov    -0x470(%rbp),%rax
or     %rcx,%rax
mov    %rax,-0x470(%rbp)
movzbl -0x441(%rbp),%eax
mov    %eax,%ecx
mov    -0x470(%rbp),%rax
or     %rcx,%rax
mov    %rax,-0x470(%rbp)
lea    -0x438(%rbp),%rsi
lea    -0x50(%rbp),%rdi
mov    $0x15,%edx
call   1030 <strncpy@plt>
movb   $0x0,-0x3a(%rbp)
movzbl -0x415(%rbp),%eax
mov    %eax,-0x45c(%rbp)
movzbl -0x412(%rbp),%eax
mov    %eax,-0x454(%rbp)
movzbl -0x411(%rbp),%eax
and    $0x7,%eax
mov    %eax,%ecx
mov    %rcx,-0x498(%rbp)
sub    $0x7,%eax
ja     1501 <main+0x371>
mov    -0x498(%rbp),%rax
lea    0xb88(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0x2,-0x458(%rbp)
jmp    150b <main+0x37b>
movl   $0x6,-0x458(%rbp)
jmp    150b <main+0x37b>
movl   $0xa,-0x458(%rbp)
jmp    150b <main+0x37b>
movl   $0xe,-0x458(%rbp)
jmp    150b <main+0x37b>
movl   $0x12,-0x458(%rbp)
jmp    150b <main+0x37b>
movl   $0x16,-0x458(%rbp)
jmp    150b <main+0x37b>
movl   $0x1a,-0x458(%rbp)
jmp    150b <main+0x37b>
movl   $0x1e,-0x458(%rbp)
jmp    150b <main+0x37b>
movl   $0x32,-0x458(%rbp)
movzbl -0x411(%rbp),%eax
mov    %eax,-0x458(%rbp)
movzbl -0x404(%rbp),%eax
shl    $0x18,%rax
mov    %rax,-0x478(%rbp)
movzbl -0x403(%rbp),%eax
shl    $0x10,%rax
or     -0x478(%rbp),%rax
mov    %rax,-0x478(%rbp)
movzbl -0x402(%rbp),%eax
shl    $0x8,%rax
or     -0x478(%rbp),%rax
mov    %rax,-0x478(%rbp)
movzbl -0x401(%rbp),%eax
shl    $0x0,%rax
or     -0x478(%rbp),%rax
mov    %rax,-0x478(%rbp)
movss  -0x478(%rbp),%xmm0
ff
movss  %xmm0,-0x47c(%rbp)
ff
cmpl   $0x1,-0x18(%rbp)
jne    1677 <main+0x4e7>
lea    -0x450(%rbp),%rax
add    $0x50,%rax
mov    %rax,-0x490(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x140,-0x14(%rbp)
jge    1672 <main+0x4e2>
mov    -0x490(%rbp),%rax
movzbl 0x3(%rax),%edx
mov    -0x490(%rbp),%rax
movzbl (%rax),%ecx
xor    %edx,%ecx
mov    %cl,(%rax)
mov    -0x490(%rbp),%rax
movzbl (%rax),%edx
mov    -0x490(%rbp),%rax
movzbl 0x3(%rax),%ecx
xor    %edx,%ecx
mov    %cl,0x3(%rax)
mov    -0x490(%rbp),%rax
movzbl 0x3(%rax),%edx
mov    -0x490(%rbp),%rax
movzbl (%rax),%ecx
xor    %edx,%ecx
mov    %cl,(%rax)
mov    -0x490(%rbp),%rax
movzbl 0x2(%rax),%edx
mov    -0x490(%rbp),%rax
movzbl 0x1(%rax),%ecx
xor    %edx,%ecx
mov    %cl,0x1(%rax)
mov    -0x490(%rbp),%rax
movzbl 0x1(%rax),%edx
mov    -0x490(%rbp),%rax
movzbl 0x2(%rax),%ecx
xor    %edx,%ecx
mov    %cl,0x2(%rax)
mov    -0x490(%rbp),%rax
movzbl 0x2(%rax),%edx
mov    -0x490(%rbp),%rax
movzbl 0x1(%rax),%ecx
xor    %edx,%ecx
mov    %cl,0x1(%rax)
mov    -0x14(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x14(%rbp)
mov    -0x490(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x490(%rbp)
jmp    15a8 <main+0x418>
jmp    1677 <main+0x4e7>
lea    -0x450(%rbp),%rax
add    $0x50,%rax
mov    %rax,-0x488(%rbp)
mov    0x2940(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4a4(%rbp)
lea    -0x50(%rbp),%rax
mov    %rax,-0x4a0(%rbp)
mov    -0x468(%rbp),%rdi
mov    -0x470(%rbp),%rsi
call   10b0 <nScet_to_sScet@plt>
mov    -0x4a4(%rbp),%edi
mov    -0x4a0(%rbp),%rdx
mov    %rax,%rcx
lea    0x9f4(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    0x28f5(%rip),%rax
mov    (%rax),%edi
movss  -0x47c(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movsd  0x90f(%rip),%xmm1
divsd  %xmm1,%xmm0
lea    0x9e1(%rip),%rsi
mov    $0x1,%al
call   1060 <fprintf@plt>
mov    0x28c6(%rip),%rax
mov    (%rax),%edi
mov    -0x454(%rbp),%edx
lea    0x9e4(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    0x28a9(%rip),%rax
mov    (%rax),%edi
mov    -0x458(%rbp),%edx
lea    0x9da(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    0x288c(%rip),%rax
mov    (%rax),%edi
mov    -0x45c(%rbp),%edx
lea    0x9d9(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0x0,-0x14(%rbp)
cmpl   $0x50,-0x14(%rbp)
jge    17a4 <main+0x614>
mov    0x285e(%rip),%rax
mov    (%rax),%edi
mov    -0x488(%rbp),%rax
movslq -0x14(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0x9b9(%rip),%rsi
mov    $0x1,%al
call   1060 <fprintf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1761 <main+0x5d1>
mov    0x2825(%rip),%rax
mov    (%rax),%edi
lea    0x99a(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
jmp    1324 <main+0x194>
mov    0x2811(%rip),%rax
mov    (%rax),%edi
mov    -0x20(%rbp),%eax
mov    %eax,-0x4a8(%rbp)
mov    -0x20(%rbp),%eax
mov    $0xa0,%ecx
cltd
idiv   %ecx
mov    -0x4a8(%rbp),%edx
mov    %eax,%ecx
imul   $0x190,-0x20(%rbp),%r8d
lea    0x95f(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    0x27c6(%rip),%rax
mov    (%rax),%eax
add    $0x4b0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x448,%rsp
cmp    $0x1,%edi
je     123f <main+0xaf>
mov    %rsi,%r12
mov    %edi,%r13d
mov    $0x1,%ebp
lea    0xe4c(%rip),%r14
lea    0xe48(%rip),%r15
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    (%r12,%rbp,8),%rbx
mov    %r14,%rdi
mov    %rbx,%rsi
call   1050 <strcmp@plt>
test   %eax,%eax
je     14b4 <main+0x324>
mov    %r15,%rdi
mov    %rbx,%rsi
call   1050 <strcmp@plt>
test   %eax,%eax
je     14b4 <main+0x324>
add    $0x1,%rbp
cmp    %ebp,%r13d
jne    11d0 <main+0x40>
test   %rbx,%rbx
je     123f <main+0xaf>
lea    0xe16(%rip),%rsi
mov    %rbx,%rdi
call   1080 <fopen@plt>
mov    %rax,%rbp
mov    0x2db7(%rip),%rax
mov    (%rax),%edi
test   %rbp,%rbp
je     14c9 <main+0x339>
lea    0xe09(%rip),%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1060 <fprintf@plt>
jmp    1260 <main+0xd0>
mov    0x2da2(%rip),%rax
mov    (%rax),%rbp
mov    0x2d88(%rip),%rax
mov    (%rax),%edi
lea    0xdb8(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
xor    %r13d,%r13d
xor    %eax,%eax
call   1090 <Little_End_In_First@plt>
mov    %eax,(%rsp)
cmp    $0x1,%eax
mov    0x2d61(%rip),%rax
mov    (%rax),%edi
lea    0xdc8(%rip),%rax
lea    0xdef(%rip),%rsi
cmove  %rax,%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
lea    0x40(%rsp),%rdi
mov    $0x190,%esi
mov    $0x1,%edx
mov    %rbp,%rcx
call   1040 <fread@plt>
test   %eax,%eax
je     1468 <main+0x2d8>
mov    0x2d18(%rip),%r14
lea    0xe69(%rip),%r15
xor    %r13d,%r13d
mov    %rbp,0x18(%rsp)
nopw   0x0(%rax,%rax,1)
mov    0x48(%rsp),%r12d
mov    0x4c(%rsp),%ebp
shl    $0x20,%r12
shl    $0x20,%rbp
lea    0x20(%rsp),%rdi
lea    0x58(%rsp),%rsi
mov    $0x15,%edx
call   1030 <strncpy@plt>
movb   $0x0,0x36(%rsp)
movzbl 0x7b(%rsp),%eax
mov    %eax,0x10(%rsp)
movzbl 0x7e(%rsp),%eax
mov    %eax,0x8(%rsp)
movzbl 0x7f(%rsp),%eax
mov    %eax,0xc(%rsp)
mov    0x8c(%rsp),%esi
cmpl   $0x1,(%rsp)
jne    1363 <main+0x1d3>
mov    $0xfffffffc,%ecx
lea    0x97(%rsp),%rdx
nop
movzbl -0x7(%rdx),%eax
movzbl -0x4(%rdx),%ebx
mov    %al,-0x4(%rdx)
mov    %bl,-0x7(%rdx)
rolw   $0x8,-0x6(%rdx)
movzbl (%rdx),%eax
movzbl -0x3(%rdx),%ebx
mov    %bl,(%rdx)
mov    %al,-0x3(%rdx)
rolw   $0x8,-0x2(%rdx)
add    $0x8,%rdx
add    $0x8,%ecx
cmp    $0x13c,%ecx
jb     1330 <main+0x1a0>
bswap  %r12
bswap  %rbp
add    $0x1,%r13d
mov    %r13d,0x14(%rsp)
bswap  %esi
mov    %esi,0x4(%rsp)
mov    (%r14),%r13d
mov    %r12,%rdi
mov    %rbp,%rsi
call   10b0 <nScet_to_sScet@plt>
mov    %r13d,%edi
lea    0xd11(%rip),%rsi
lea    0x20(%rsp),%rdx
mov    %rax,%rcx
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    (%r14),%edi
movss  0x4(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
divsd  0xc4c(%rip),%xmm0
lea    0xd02(%rip),%rsi
mov    $0x1,%al
call   1060 <fprintf@plt>
mov    (%r14),%edi
lea    0xd11(%rip),%rsi
mov    0x8(%rsp),%edx
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    (%r14),%edi
lea    0xd0f(%rip),%rsi
mov    0xc(%rsp),%edx
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    (%r14),%edi
lea    0xd16(%rip),%rsi
mov    0x10(%rsp),%edx
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    $0x14,%ebx
cs nopw 0x0(%rax,%rax,1)
mov    (%r14),%edi
movss  0x40(%rsp,%rbx,4),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r15,%rsi
mov    $0x1,%al
call   1060 <fprintf@plt>
add    $0x1,%rbx
cmp    $0x64,%rbx
jne    1410 <main+0x280>
mov    (%r14),%edi
lea    0xcf3(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
lea    0x40(%rsp),%rdi
mov    $0x190,%esi
mov    $0x1,%edx
mov    0x18(%rsp),%rcx
call   1040 <fread@plt>
test   %eax,%eax
mov    0x14(%rsp),%r13d
jne    12d0 <main+0x140>
mov    0x2b69(%rip),%rax
mov    (%rax),%edi
mov    %r13d,%eax
mov    $0xcccccccd,%ecx
imul   %rax,%rcx
shr    $0x27,%rcx
imul   $0x190,%r13d,%r8d
lea    0xca4(%rip),%rsi
mov    %r13d,%edx
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0x2b28(%rip),%rax
mov    (%rax),%eax
add    $0x448,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2b15(%rip),%rax
mov    (%rax),%edi
call   1070 <show_help@plt>
xor    %edi,%edi
call   10a0 <exit@plt>
lea    0xb58(%rip),%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0x2aef(%rip),%rax
mov    (%rax),%edi
call   1070 <show_help@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"-h\00"
@.str.1 = [6 x i8] c"-help\00"
@stdout = global i32 0
@stdin = global i32* null
@stderr = global i32 0
@.str.2 = [20 x i8] c"reading from stdin\0A\00"
@.str.3 = [3 x i8] c"rb\00"
@.str.4 = [20 x i8] c"Unable to open %s\0A\0A\00"
@.str.5 = [12 x i8] c"reading %s\0A\00"
@.str.6 = [46 x i8] c"detected a little endian machine (lsb first)\0A\00"
@.str.7 = [43 x i8] c"detected a big endian machine (msb first)\0A\00"
@.str.8 = [28 x i8] c"Frame Begin Time :: %s %s\0D\0A\00"
@.str.9 = [32 x i8] c"Transmit Frequency = %.3f KHz\0D\0A\00"
@.str.10 = [19 x i8] c"Band Number = %d\0D\0A\00"
@.str.11 = [28 x i8] c"Receiver Attenuation = %d\0D\0A\00"
@.str.12 = [28 x i8] c"Transmit Power Level = %d\0D\0A\00"
@.str.13 = [6 x i8] c"%.1E \00"
@.str.14 = [5 x i8] c"\0D\0A\0D\0A\00"
@.str.15 = [47 x i8] c"Read %d records (%d frames) totaling %d bytes\0A\00"
@EXIT_SUCCESS = global i32 0
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 i32
%10 = alloca i8*
%11 = alloca i32*
%12 = alloca [32 x i8]
%13 = alloca [1024 x i8]
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i64
%18 = alloca i64
%19 = alloca i64
%20 = alloca float
%21 = alloca float*
%22 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %9
store i8* null, i8** %10
br label %23
23: ; preds = %46, %2
%24 = load i32, i32* %4
%25 = add nsw i32 %24, -1
store i32 %25, i32* %4
%26 = icmp ne i32 %25, 0
br i1 %26, label %27, label %47
27: ; preds = %23
%28 = load i8**, i8*** %5
%29 = getelementptr inbounds i8*, i8** %28, i32 1
store i8** %29, i8*** %5
%30 = load i8**, i8*** %5
%31 = load i8*, i8** %30
%32 = call i32 @strcmp(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %31)
%33 = icmp ne i32 %32, 0
br i1 %33, label %34, label %39
34: ; preds = %27
%35 = load i8**, i8*** %5
%36 = load i8*, i8** %35
%37 = call i32 @strcmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %36)
%38 = icmp ne i32 %37, 0
br i1 %38, label %43, label %39
39: ; preds = %34, %27
%40 = load i32, i32* @stdout
%41 = call i32 @show_help(i32 %40)
%42 = call i32 @exit(i32 0)
unreachable
43: ; preds = %34
%44 = load i8**, i8*** %5
%45 = load i8*, i8** %44
store i8* %45, i8** %10
br label %46
46: ; preds = %43
br label %23
47: ; preds = %23
%48 = load i8*, i8** %10
%49 = icmp eq i8* %48, null
br i1 %49, label %50, label %54
50: ; preds = %47
%51 = load i32*, i32** @stdin
store i32* %51, i32** %11
%52 = load i32, i32* @stderr
%53 = call i32 (i32, i8*, ...) @fprintf(i32 %52, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0))
br label %70
54: ; preds = %47
%55 = load i8*, i8** %10
%56 = call i32* @fopen(i8* %55, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
store i32* %56, i32** %11
%57 = icmp eq i32* %56, null
br i1 %57, label %58, label %65
58: ; preds = %54
%59 = load i32, i32* @stderr
%60 = load i8*, i8** %10
%61 = call i32 (i32, i8*, ...) @fprintf(i32 %59, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0), i8* %60)
%62 = load i32, i32* @stdout
%63 = call i32 @show_help(i32 %62)
%64 = call i32 @exit(i32 1)
unreachable
65: ; preds = %54
%66 = load i32, i32* @stderr
%67 = load i8*, i8** %10
%68 = call i32 (i32, i8*, ...) @fprintf(i32 %66, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i8* %67)
br label %69
69: ; preds = %65
br label %70
70: ; preds = %69, %50
%71 = call i32 (...) @Little_End_In_First()
store i32 %71, i32* %7
%72 = icmp eq i32 %71, 1
br i1 %72, label %73, label %76
73: ; preds = %70
%74 = load i32, i32* @stderr
%75 = call i32 (i32, i8*, ...) @fprintf(i32 %74, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.6, i64 0, i64 0))
br label %79
76: ; preds = %70
%77 = load i32, i32* @stderr
%78 = call i32 (i32, i8*, ...) @fprintf(i32 %77, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.7, i64 0, i64 0))
br label %79
79: ; preds = %76, %73
br label %80
80: ; preds = %298, %79
%81 = getelementptr inbounds [1024 x i8], [1024 x i8]* %13, i64 0, i64 0
%82 = load i32*, i32** %11
%83 = call i32 @fread(i8* %81, i32 400, i32 1, i32* %82)
store i32 %83, i32* %8
%84 = icmp ne i32 %83, 0
br i1 %84, label %85, label %301
85: ; preds = %80
%86 = load i32, i32* %9
%87 = add nsw i32 %86, 1
store i32 %87, i32* %9
%88 = getelementptr inbounds [1024 x i8], [1024 x i8]* %13, i64 0, i64 8
%89 = load i8, i8* %88
%90 = zext i8 %89 to i64
%91 = shl i64 %90, 24
store i64 %91, i64* %17
%92 = getelementptr inbounds [1024 x i8], [1024 x i8]* %13, i64 0, i64 9
%93 = load i8, i8* %92
%94 = zext i8 %93 to i64
%95 = shl i64 %94, 16
%96 = load i64, i64* %17
%97 = or i64 %96, %95
store i64 %97, i64* %17
%98 = getelementptr inbounds [1024 x i8], [1024 x i8]* %13, i64 0, i64 10
%99 = load i8, i8* %98
%100 = zext i8 %99 to i64
%101 = shl i64 %100, 8
%102 = load i64, i64* %17
%103 = or i64 %102, %101
store i64 %103, i64* %17
%104 = getelementptr inbounds [1024 x i8], [1024 x i8]* %13, i64 0, i64 11
%105 = load i8, i8* %104
%106 = zext i8 %105 to i64
%107 = shl i64 %106, 0
%108 = load i64, i64* %17
%109 = or i64 %108, %107
store i64 %109, i64* %17
%110 = getelementptr inbounds [1024 x i8], [1024 x i8]* %13, i64 0, i64 12
%111 = load i8, i8* %110
%112 = zext i8 %111 to i64
%113 = shl i64 %112, 24
store i64 %113, i64* %18
%114 = getelementptr inbounds [1024 x i8], [1024 x i8]* %13, i64 0, i64 13
%115 = load i8, i8* %114
%116 = zext i8 %115 to i64
%117 = shl i64 %116, 16
%118 = load i64, i64* %18
%119 = or i64 %118, %117
store i64 %119, i64* %18
%120 = getelementptr inbounds [1024 x i8], [1024 x i8]* %13, i64 0, i64 14
%121 = load i8, i8* %120
%122 = zext i8 %121 to i64
%123 = shl i64 %122, 8
%124 = load i64, i64* %18
%125 = or i64 %124, %123
store i64 %125, i64* %18
%126 = getelementptr inbounds [1024 x i8], [1024 x i8]* %13, i64 0, i64 15
%127 = load i8, i8* %126
%128 = zext i8 %127 to i64
%129 = shl i64 %128, 0
%130 = load i64, i64* %18
%131 = or i64 %130, %129
store i64 %131, i64* %18
%132 = getelementptr inbounds [32 x i8], [32 x i8]* %12, i64 0, i64 0
%133 = getelementptr inbounds [1024 x i8], [1024 x i8]* %13, i64 0, i64 0
%134 = getelementptr inbounds i8, i8* %133, i64 24
%135 = call i32 @strncpy(i8* %132, i8* %134, i32 21)
%136 = getelementptr inbounds [32 x i8], [32 x i8]* %12, i64 0, i64 22
store i8 0, i8* %136
%137 = getelementptr inbounds [1024 x i8], [1024 x i8]* %13, i64 0, i64 59
%138 = load i8, i8* %137
%139 = zext i8 %138 to i32
store i32 %139, i32* %16
%140 = getelementptr inbounds [1024 x i8], [1024 x i8]* %13, i64 0, i64 62
%141 = load i8, i8* %140
%142 = zext i8 %141 to i32
store i32 %142, i32* %14
%143 = getelementptr inbounds [1024 x i8], [1024 x i8]* %13, i64 0, i64 63
%144 = load i8, i8* %143
%145 = zext i8 %144 to i32
%146 = and i32 %145, 7
switch i32 %146, label %155 [
i32 0, label %147
i32 1, label %148
i32 2, label %149
i32 3, label %150
i32 4, label %151
i32 5, label %152
i32 6, label %153
i32 7, label %154
]
147: ; preds = %85
store i32 2, i32* %15
br label %156
148: ; preds = %85
store i32 6, i32* %15
br label %156
149: ; preds = %85
store i32 10, i32* %15
br label %156
150: ; preds = %85
store i32 14, i32* %15
br label %156
151: ; preds = %85
store i32 18, i32* %15
br label %156
152: ; preds = %85
store i32 22, i32* %15
br label %156
153: ; preds = %85
store i32 26, i32* %15
br label %156
154: ; preds = %85
store i32 30, i32* %15
br label %156
155: ; preds = %85
store i32 50, i32* %15
br label %156
156: ; preds = %155, %154, %153, %152, %151, %150, %149, %148, %147
%157 = getelementptr inbounds [1024 x i8], [1024 x i8]* %13, i64 0, i64 63
%158 = load i8, i8* %157
%159 = zext i8 %158 to i32
store i32 %159, i32* %15
%160 = getelementptr inbounds [1024 x i8], [1024 x i8]* %13, i64 0, i64 76
%161 = load i8, i8* %160
%162 = zext i8 %161 to i64
%163 = shl i64 %162, 24
store i64 %163, i64* %19
%164 = getelementptr inbounds [1024 x i8], [1024 x i8]* %13, i64 0, i64 77
%165 = load i8, i8* %164
%166 = zext i8 %165 to i64
%167 = shl i64 %166, 16
%168 = load i64, i64* %19
%169 = or i64 %168, %167
store i64 %169, i64* %19
%170 = getelementptr inbounds [1024 x i8], [1024 x i8]* %13, i64 0, i64 78
%171 = load i8, i8* %170
%172 = zext i8 %171 to i64
%173 = shl i64 %172, 8
%174 = load i64, i64* %19
%175 = or i64 %174, %173
store i64 %175, i64* %19
%176 = getelementptr inbounds [1024 x i8], [1024 x i8]* %13, i64 0, i64 79
%177 = load i8, i8* %176
%178 = zext i8 %177 to i64
%179 = shl i64 %178, 0
%180 = load i64, i64* %19
%181 = or i64 %180, %179
store i64 %181, i64* %19
%182 = bitcast i64* %19 to float*
%183 = load float, float* %182
store float %183, float* %20
%184 = load i32, i32* %7
%185 = icmp eq i32 %184, 1
br i1 %185, label %186, label %259
186: ; preds = %156
%187 = getelementptr inbounds [1024 x i8], [1024 x i8]* %13, i64 0, i64 0
%188 = getelementptr inbounds i8, i8* %187, i64 80
store i8* %188, i8** %22
store i32 0, i32* %6
br label %189
189: ; preds = %253, %186
%190 = load i32, i32* %6
%191 = icmp slt i32 %190, 320
br i1 %191, label %192, label %258
192: ; preds = %189
%193 = load i8*, i8** %22
%194 = getelementptr inbounds i8, i8* %193, i64 3
%195 = load i8, i8* %194
%196 = zext i8 %195 to i32
%197 = load i8*, i8** %22
%198 = getelementptr inbounds i8, i8* %197, i64 0
%199 = load i8, i8* %198
%200 = zext i8 %199 to i32
%201 = xor i32 %200, %196
%202 = trunc i32 %201 to i8
store i8 %202, i8* %198
%203 = load i8*, i8** %22
%204 = getelementptr inbounds i8, i8* %203, i64 0
%205 = load i8, i8* %204
%206 = zext i8 %205 to i32
%207 = load i8*, i8** %22
%208 = getelementptr inbounds i8, i8* %207, i64 3
%209 = load i8, i8* %208
%210 = zext i8 %209 to i32
%211 = xor i32 %210, %206
%212 = trunc i32 %211 to i8
store i8 %212, i8* %208
%213 = load i8*, i8** %22
%214 = getelementptr inbounds i8, i8* %213, i64 3
%215 = load i8, i8* %214
%216 = zext i8 %215 to i32
%217 = load i8*, i8** %22
%218 = getelementptr inbounds i8, i8* %217, i64 0
%219 = load i8, i8* %218
%220 = zext i8 %219 to i32
%221 = xor i32 %220, %216
%222 = trunc i32 %221 to i8
store i8 %222, i8* %218
%223 = load i8*, i8** %22
%224 = getelementptr inbounds i8, i8* %223, i64 2
%225 = load i8, i8* %224
%226 = zext i8 %225 to i32
%227 = load i8*, i8** %22
%228 = getelementptr inbounds i8, i8* %227, i64 1
%229 = load i8, i8* %228
%230 = zext i8 %229 to i32
%231 = xor i32 %230, %226
%232 = trunc i32 %231 to i8
store i8 %232, i8* %228
%233 = load i8*, i8** %22
%234 = getelementptr inbounds i8, i8* %233, i64 1
%235 = load i8, i8* %234
%236 = zext i8 %235 to i32
%237 = load i8*, i8** %22
%238 = getelementptr inbounds i8, i8* %237, i64 2
%239 = load i8, i8* %238
%240 = zext i8 %239 to i32
%241 = xor i32 %240, %236
%242 = trunc i32 %241 to i8
store i8 %242, i8* %238
%243 = load i8*, i8** %22
%244 = getelementptr inbounds i8, i8* %243, i64 2
%245 = load i8, i8* %244
%246 = zext i8 %245 to i32
%247 = load i8*, i8** %22
%248 = getelementptr inbounds i8, i8* %247, i64 1
%249 = load i8, i8* %248
%250 = zext i8 %249 to i32
%251 = xor i32 %250, %246
%252 = trunc i32 %251 to i8
store i8 %252, i8* %248
br label %253
253: ; preds = %192
%254 = load i32, i32* %6
%255 = add nsw i32 %254, 4
store i32 %255, i32* %6
%256 = load i8*, i8** %22
%257 = getelementptr inbounds i8, i8* %256, i64 4
store i8* %257, i8** %22
br label %189
258: ; preds = %189
br label %259
259: ; preds = %258, %156
%260 = getelementptr inbounds [1024 x i8], [1024 x i8]* %13, i64 0, i64 0
%261 = getelementptr inbounds i8, i8* %260, i64 80
%262 = bitcast i8* %261 to float*
store float* %262, float** %21
%263 = load i32, i32* @stdout
%264 = getelementptr inbounds [32 x i8], [32 x i8]* %12, i64 0, i64 0
%265 = load i64, i64* %17
%266 = load i64, i64* %18
%267 = call i8* @nScet_to_sScet(i64 %265, i64 %266)
%268 = call i32 (i32, i8*, ...) @fprintf(i32 %263, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.8, i64 0, i64 0), i8* %264, i8* %267)
%269 = load i32, i32* @stdout
%270 = load float, float* %20
%271 = fpext float %270 to double
%272 = fdiv double %271, 1.000000e+03
%273 = call i32 (i32, i8*, ...) @fprintf(i32 %269, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.9, i64 0, i64 0), double %272)
%274 = load i32, i32* @stdout
%275 = load i32, i32* %14
%276 = call i32 (i32, i8*, ...) @fprintf(i32 %274, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.10, i64 0, i64 0), i32 %275)
%277 = load i32, i32* @stdout
%278 = load i32, i32* %15
%279 = call i32 (i32, i8*, ...) @fprintf(i32 %277, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.11, i64 0, i64 0), i32 %278)
%280 = load i32, i32* @stdout
%281 = load i32, i32* %16
%282 = call i32 (i32, i8*, ...) @fprintf(i32 %280, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.12, i64 0, i64 0), i32 %281)
store i32 0, i32* %6
br label %283
283: ; preds = %295, %259
%284 = load i32, i32* %6
%285 = icmp slt i32 %284, 80
br i1 %285, label %286, label %298
286: ; preds = %283
%287 = load i32, i32* @stdout
%288 = load float*, float** %21
%289 = load i32, i32* %6
%290 = sext i32 %289 to i64
%291 = getelementptr inbounds float, float* %288, i64 %290
%292 = load float, float* %291
%293 = fpext float %292 to double
%294 = call i32 (i32, i8*, ...) @fprintf(i32 %287, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0), double %293)
br label %295
295: ; preds = %286
%296 = load i32, i32* %6
%297 = add nsw i32 %296, 1
store i32 %297, i32* %6
br label %283
298: ; preds = %283
%299 = load i32, i32* @stdout
%300 = call i32 (i32, i8*, ...) @fprintf(i32 %299, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0))
br label %80
301: ; preds = %80
%302 = load i32, i32* @stderr
%303 = load i32, i32* %9
%304 = load i32, i32* %9
%305 = sdiv i32 %304, 160
%306 = load i32, i32* %9
%307 = mul nsw i32 %306, 400
%308 = call i32 (i32, i8*, ...) @fprintf(i32 %302, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.15, i64 0, i64 0), i32 %303, i32 %305, i32 %307)
%309 = load i32, i32* @EXIT_SUCCESS
ret i32 %309
}

LLVM IR (-O2):
@.str = [3 x i8] c"-h\00"
@.str.1 = [6 x i8] c"-help\00"
@stdout = global i32 0
@stdin = global i32* null
@stderr = global i32 0
@.str.2 = [20 x i8] c"reading from stdin\0A\00"
@.str.3 = [3 x i8] c"rb\00"
@.str.4 = [20 x i8] c"Unable to open %s\0A\0A\00"
@.str.5 = [12 x i8] c"reading %s\0A\00"
@.str.6 = [46 x i8] c"detected a little endian machine (lsb first)\0A\00"
@.str.7 = [43 x i8] c"detected a big endian machine (msb first)\0A\00"
@.str.8 = [28 x i8] c"Frame Begin Time :: %s %s\0D\0A\00"
@.str.9 = [32 x i8] c"Transmit Frequency = %.3f KHz\0D\0A\00"
@.str.10 = [19 x i8] c"Band Number = %d\0D\0A\00"
@.str.11 = [28 x i8] c"Receiver Attenuation = %d\0D\0A\00"
@.str.12 = [28 x i8] c"Transmit Power Level = %d\0D\0A\00"
@.str.13 = [6 x i8] c"%.1E \00"
@.str.14 = [5 x i8] c"\0D\0A\0D\0A\00"
@.str.15 = [47 x i8] c"Read %d records (%d frames) totaling %d bytes\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [32 x i8]
%4 = alloca [1024 x i8]
%5 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 0
%6 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 0
%7 = add nsw i32 %0, -1
%8 = icmp eq i32 %7, 0
br i1 %8, label %28, label %12
9: ; preds = %19
%10 = add nsw i32 %13, -1
%11 = icmp eq i32 %10, 0
br i1 %11, label %26, label %12
12: ; preds = %2, %9
%13 = phi i32 [ %10, %9 ], [ %7, %2 ]
%14 = phi i8** [ %15, %9 ], [ %1, %2 ]
%15 = getelementptr inbounds i8*, i8** %14, i64 1
%16 = load i8*, i8** %15
%17 = tail call i32 @strcmp(i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* dereferenceable(1) %16)
%18 = icmp eq i32 %17, 0
br i1 %18, label %22, label %19
19: ; preds = %12
%20 = tail call i32 @strcmp(i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* dereferenceable(1) %16)
%21 = icmp eq i32 %20, 0
br i1 %21, label %22, label %9
22: ; preds = %19, %12
%23 = load i32, i32* @stdout
%24 = tail call i32 @show_help(i32 %23)
%25 = tail call i32 @exit(i32 0)
unreachable
26: ; preds = %9
%27 = icmp eq i8* %16, null
br i1 %27, label %28, label %32
28: ; preds = %2, %26
%29 = load i32*, i32** @stdin
%30 = load i32, i32* @stderr
%31 = tail call i32 (i32, i8*, ...) @fprintf(i32 %30, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0))
br label %43
32: ; preds = %26
%33 = tail call i32* @fopen(i8* %16, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%34 = icmp eq i32* %33, null
%35 = load i32, i32* @stderr
br i1 %34, label %36, label %41
36: ; preds = %32
%37 = tail call i32 (i32, i8*, ...) @fprintf(i32 %35, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0), i8* %16)
%38 = load i32, i32* @stdout
%39 = tail call i32 @show_help(i32 %38)
%40 = tail call i32 @exit(i32 1)
unreachable
41: ; preds = %32
%42 = tail call i32 (i32, i8*, ...) @fprintf(i32 %35, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i8* %16)
br label %43
43: ; preds = %41, %28
%44 = phi i32* [ %29, %28 ], [ %33, %41 ]
%45 = tail call i32 (...) @Little_End_In_First()
%46 = icmp eq i32 %45, 1
%47 = load i32, i32* @stderr
%48 = select i1 %46, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.7, i64 0, i64 0)
%49 = tail call i32 (i32, i8*, ...) @fprintf(i32 %47, i8* %48)
%50 = call i32 @fread(i8* %6, i32 400, i32 1, i32* %44)
%51 = icmp eq i32 %50, 0
br i1 %51, label %175, label %52
52: ; preds = %43
%53 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 8
%54 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 9
%55 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 10
%56 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 11
%57 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 12
%58 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 13
%59 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 14
%60 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 15
%61 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 24
%62 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 22
%63 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 59
%64 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 62
%65 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 63
%66 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 76
%67 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 77
%68 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 78
%69 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 79
%70 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 80
%71 = bitcast i8* %70 to float*
br label %72
72: ; preds = %52, %170
%73 = phi i32 [ 0, %52 ], [ %74, %170 ]
%74 = add nuw nsw i32 %73, 1
%75 = load i8, i8* %53
%76 = zext i8 %75 to i64
%77 = shl nuw nsw i64 %76, 24
%78 = load i8, i8* %54
%79 = zext i8 %78 to i64
%80 = shl nuw nsw i64 %79, 16
%81 = or i64 %80, %77
%82 = load i8, i8* %55
%83 = zext i8 %82 to i64
%84 = shl nuw nsw i64 %83, 8
%85 = or i64 %81, %84
%86 = load i8, i8* %56
%87 = zext i8 %86 to i64
%88 = or i64 %85, %87
%89 = load i8, i8* %57
%90 = zext i8 %89 to i64
%91 = shl nuw nsw i64 %90, 24
%92 = load i8, i8* %58
%93 = zext i8 %92 to i64
%94 = shl nuw nsw i64 %93, 16
%95 = or i64 %94, %91
%96 = load i8, i8* %59
%97 = zext i8 %96 to i64
%98 = shl nuw nsw i64 %97, 8
%99 = or i64 %95, %98
%100 = load i8, i8* %60
%101 = zext i8 %100 to i64
%102 = or i64 %99, %101
%103 = call i32 @strncpy(i8* %5, i8* %61, i32 21)
store i8 0, i8* %62
%104 = load i8, i8* %63
%105 = zext i8 %104 to i32
%106 = load i8, i8* %64
%107 = zext i8 %106 to i32
%108 = load i8, i8* %65
%109 = zext i8 %108 to i32
%110 = load i8, i8* %66
%111 = zext i8 %110 to i32
%112 = shl nuw i32 %111, 24
%113 = load i8, i8* %67
%114 = zext i8 %113 to i32
%115 = shl nuw nsw i32 %114, 16
%116 = or i32 %115, %112
%117 = load i8, i8* %68
%118 = zext i8 %117 to i32
%119 = shl nuw nsw i32 %118, 8
%120 = or i32 %116, %119
%121 = load i8, i8* %69
%122 = zext i8 %121 to i32
%123 = or i32 %120, %122
%124 = bitcast i32 %123 to float
br i1 %46, label %125, label %147
125: ; preds = %72, %125
%126 = phi i8* [ %145, %125 ], [ %70, %72 ]
%127 = phi i32 [ %144, %125 ], [ 0, %72 ]
%128 = getelementptr inbounds i8, i8* %126, i64 3
%129 = load i8, i8* %128
%130 = load i8, i8* %126
store i8 %130, i8* %128
store i8 %129, i8* %126
%131 = getelementptr inbounds i8, i8* %126, i64 2
%132 = load i8, i8* %131
%133 = getelementptr inbounds i8, i8* %126, i64 1
%134 = load i8, i8* %133
store i8 %134, i8* %131
store i8 %132, i8* %133
%135 = or i32 %127, 4
%136 = getelementptr inbounds i8, i8* %126, i64 4
%137 = getelementptr inbounds i8, i8* %126, i64 7
%138 = load i8, i8* %137
%139 = load i8, i8* %136
store i8 %139, i8* %137
store i8 %138, i8* %136
%140 = getelementptr inbounds i8, i8* %126, i64 6
%141 = load i8, i8* %140
%142 = getelementptr inbounds i8, i8* %126, i64 5
%143 = load i8, i8* %142
store i8 %143, i8* %140
store i8 %141, i8* %142
%144 = add nuw nsw i32 %127, 8
%145 = getelementptr inbounds i8, i8* %126, i64 8
%146 = icmp ult i32 %135, 316
br i1 %146, label %125, label %147
147: ; preds = %125, %72
%148 = load i32, i32* @stdout
%149 = call i8* @nScet_to_sScet(i64 %88, i64 %102)
%150 = call i32 (i32, i8*, ...) @fprintf(i32 %148, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.8, i64 0, i64 0), i8* %5, i8* %149)
%151 = load i32, i32* @stdout
%152 = fpext float %124 to double
%153 = fdiv double %152, 1.000000e+03
%154 = call i32 (i32, i8*, ...) @fprintf(i32 %151, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.9, i64 0, i64 0), double %153)
%155 = load i32, i32* @stdout
%156 = call i32 (i32, i8*, ...) @fprintf(i32 %155, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.10, i64 0, i64 0), i32 %107)
%157 = load i32, i32* @stdout
%158 = call i32 (i32, i8*, ...) @fprintf(i32 %157, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.11, i64 0, i64 0), i32 %109)
%159 = load i32, i32* @stdout
%160 = call i32 (i32, i8*, ...) @fprintf(i32 %159, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.12, i64 0, i64 0), i32 %105)
br label %161
161: ; preds = %147, %161
%162 = phi i64 [ 0, %147 ], [ %168, %161 ]
%163 = load i32, i32* @stdout
%164 = getelementptr inbounds float, float* %71, i64 %162
%165 = load float, float* %164
%166 = fpext float %165 to double
%167 = call i32 (i32, i8*, ...) @fprintf(i32 %163, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0), double %166)
%168 = add nuw nsw i64 %162, 1
%169 = icmp eq i64 %168, 80
br i1 %169, label %170, label %161
170: ; preds = %161
%171 = load i32, i32* @stdout
%172 = call i32 (i32, i8*, ...) @fprintf(i32 %171, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0))
%173 = call i32 @fread(i8* %6, i32 400, i32 1, i32* %44)
%174 = icmp eq i32 %173, 0
br i1 %174, label %175, label %72
175: ; preds = %170, %43
%176 = phi i32 [ 0, %43 ], [ %74, %170 ]
%177 = load i32, i32* @stderr
%178 = udiv i32 %176, 160
%179 = mul nsw i32 %176, 400
%180 = call i32 (i32, i8*, ...) @fprintf(i32 %177, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.15, i64 0, i64 0), i32 %176, i32 %178, i32 %179)
%181 = load i32, i32* @EXIT_SUCCESS
ret i32 %181
}