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

/* Variables and functions */
char *asctime(int /*<<< orphan*/);
int /*<<< orphan*/ check_io(int /*<<< orphan*/ *, char *, int /*<<< orphan*/);
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
char fgetc(int /*<<< orphan*/ *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int fscanf(int /*<<< orphan*/ *, char *, int *);
int get_line(char *, int, int);
int /*<<< orphan*/ gmtime(int /*<<< orphan*/ *);
scalar_t__ isalnum(int);
int /*<<< orphan*/ isascii(int);
int /*<<< orphan*/ output_till_dot(int /*<<< orphan*/ *, char *, char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ *stdin;
int /*<<< orphan*/ stdout;
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
void output_entry(FILE *output, char *oname) {
  char title[31 + 1 + 1];
  char buf[79 + 1 + 1];
  int entry = 0;
  int ret;
  int ok_line = 0;
  char skip;
  time_t epoch_sec;
  char *p;
  fprintf(output, "---entry---\n");
  check_io(output, oname, 0);
  fprintf(output, "rule:\t%d\n", 2004);
  check_io(output, oname, 0);
  printf("Is this a fix, update or resubmittion to a ");
  printf("previous entry (enter y or n)? ");
  while (get_line(buf, 1 + 1, 0) <= 0 || !(buf[0] == 'y' || buf[0] == 'n')) {
    printf("\nplease answer y or n: ");
  }
  if (buf[0] == 'y') {
    fprintf(output, "fix:\ty\n");
    check_io(output, oname, 0);
    printf("\nBe sure that the title and entry number that you give\n");
    printf("are the same of as the entry you are replacing\n");
  } else {
    fprintf(output, "fix:\tn\n");
    check_io(output, oname, 0);
  }
  printf("\nThe first character of your title should match [a-zA-Z0-9_=]\n");
  printf("The next 0 to %d characters should match [a-zA-Z0-9_=+-]\n\n",
         31 - 1);
  printf("It is suggested, but not required, that the title should\n");
  printf("incorporate your username; in the case of multiple authors,\n");
  printf("consider using parts of the usernames of the authors.\n\n");
  printf("enter your title: ");
  do {
    if ((ok_line = get_line(title, 31 + 1, 79 - 9)) <= 0) {
      printf("\ntitle is too long, please re-enter: ");
      continue;
    }
    if (!isascii((int)title[0]) ||
        !(isalnum((int)title[0]) || title[0] == '_' || title[0] == '=')) {
      printf("\ninvalid first character in the title\n\n");
      printf("enter your title: ");
      ok_line = 0;
    } else {
      for (p = (&title[1]); *p != '\0' && *p != '\n'; ++p) {
        if (!isascii((int)*p) || !(isalnum((int)*p) || *p == '_' || *p == '=' ||
                                   *p == '+' || *p == '-')) {
          printf("\ninvalid character in the title\n\n");
          printf("enter your title: ");
          ok_line = 0;
        }
      }
    }
  } while (ok_line <= 0);
  fprintf(output, "title:\t%s", title);
  check_io(output, oname, 0);
  printf("\nEach person may submit up to %d entries per year.\n\n", 8);
  printf("enter an entry number from 0 to %d inclusive: ", 8 - 1);
  do {
    fflush(stdout);
    ret = fscanf(stdin, "%d[\n]", &entry);
    check_io(stdin, "stdin", 0);
    do {
      skip = fgetc(stdin);
      check_io(stdin, "stdin", 0);
      if (skip != '\n') {
        entry = -1;
      }
    } while (skip != '\n');
    if (ret != 1 || entry < 0 || entry > 8 - 1) {
      printf("\nThe entry number must be between 0 and %d inclusive\n\n",
             8 - 1);
      printf("enter the entry number: ");
    }
  } while (ret != 1 || entry < 0 || entry > 8 - 1);
  fprintf(output, "entry:\t%d\n", entry);
  check_io(output, oname, 0);
  epoch_sec = time(NULL);
  fprintf(output, "date:\t%s", asctime(gmtime(&epoch_sec)));
  check_io(output, oname, 0);
  printf(
      "\nEnter the machine(s) and OS(s) under which your entry was tested.\n");
  output_till_dot(output, oname, "host:");
}


x86 assembly (clang, -O0):
<output_entry>:
push   %rbp
mov    %rsp,%rbp
sub    $0xd0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0xa4(%rbp)
movl   $0x0,-0xac(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xdfe(%rip),%rsi
mov    $0x0,%al
call   10a0 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
xor    %edx,%edx
call   10c0 <check_io@plt>
mov    -0x8(%rbp),%rdi
lea    0xdea(%rip),%rsi
mov    $0x7d4,%edx
mov    $0x0,%al
call   10a0 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
xor    %edx,%edx
call   10c0 <check_io@plt>
lea    0xdd2(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xdf0(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0xa0(%rbp),%rdi
mov    $0x2,%esi
xor    %edx,%edx
call   1030 <get_line@plt>
mov    %eax,%ecx
mov    $0x1,%al
cmp    $0x0,%ecx
mov    %al,-0xc1(%rbp)
jle    12b9 <output_entry+0xe9>
movsbl -0xa0(%rbp),%ecx
mov    $0x1,%al
cmp    $0x79,%ecx
mov    %al,-0xc2(%rbp)
je     12ab <output_entry+0xdb>
movsbl -0xa0(%rbp),%eax
cmp    $0x6e,%eax
sete   %al
mov    %al,-0xc2(%rbp)
mov    -0xc2(%rbp),%al
xor    $0xff,%al
mov    %al,-0xc1(%rbp)
mov    -0xc1(%rbp),%al
test   $0x1,%al
jne    12cc <output_entry+0xfc>
jmp    12df <output_entry+0x10f>
lea    0xd90(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    125a <output_entry+0x8a>
movsbl -0xa0(%rbp),%eax
cmp    $0x79,%eax
jne    1331 <output_entry+0x161>
mov    -0x8(%rbp),%rdi
lea    0xd81(%rip),%rsi
mov    $0x0,%al
call   10a0 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
xor    %edx,%edx
call   10c0 <check_io@plt>
lea    0xd6c(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xd96(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    1352 <output_entry+0x182>
mov    -0x8(%rbp),%rdi
lea    0xdaf(%rip),%rsi
mov    $0x0,%al
call   10a0 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
xor    %edx,%edx
call   10c0 <check_io@plt>
lea    0xd9a(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xdcb(%rip),%rdi
mov    $0x1e,%esi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xdf3(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xe1f(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xe4e(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xe78(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x40(%rbp),%rdi
mov    $0x20,%esi
mov    $0x46,%edx
call   1030 <get_line@plt>
mov    %eax,-0xac(%rbp)
cmp    $0x0,%eax
jg     13e0 <output_entry+0x210>
lea    0xe5b(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    1566 <output_entry+0x396>
movsbl -0x40(%rbp),%edi
call   10f0 <isascii@plt>
cmp    $0x0,%eax
je     141f <output_entry+0x24f>
movsbl -0x40(%rbp),%edi
call   1070 <isalnum@plt>
cmp    $0x0,%rax
jne    144a <output_entry+0x27a>
movsbl -0x40(%rbp),%eax
cmp    $0x5f,%eax
je     144a <output_entry+0x27a>
movsbl -0x40(%rbp),%eax
cmp    $0x3d,%eax
je     144a <output_entry+0x27a>
lea    0xe2f(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xde8(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0xac(%rbp)
jmp    1561 <output_entry+0x391>
lea    -0x40(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0xc0(%rbp)
mov    -0xc0(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0xc3(%rbp)
je     148a <output_entry+0x2ba>
mov    -0xc0(%rbp),%rax
movsbl (%rax),%eax
cmp    $0xa,%eax
setne  %al
mov    %al,-0xc3(%rbp)
mov    -0xc3(%rbp),%al
test   $0x1,%al
jne    149d <output_entry+0x2cd>
jmp    155c <output_entry+0x38c>
mov    -0xc0(%rbp),%rax
movsbl (%rax),%edi
call   10f0 <isascii@plt>
cmp    $0x0,%eax
je     151a <output_entry+0x34a>
mov    -0xc0(%rbp),%rax
movsbl (%rax),%edi
call   1070 <isalnum@plt>
cmp    $0x0,%rax
jne    1540 <output_entry+0x370>
mov    -0xc0(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x5f,%eax
je     1540 <output_entry+0x370>
mov    -0xc0(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x3d,%eax
je     1540 <output_entry+0x370>
mov    -0xc0(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2b,%eax
je     1540 <output_entry+0x370>
mov    -0xc0(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2d,%eax
je     1540 <output_entry+0x370>
lea    0xd5c(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xced(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0xac(%rbp)
jmp    1545 <output_entry+0x375>
mov    -0xc0(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0xc0(%rbp)
jmp    1459 <output_entry+0x289>
jmp    1561 <output_entry+0x391>
jmp    1566 <output_entry+0x396>
cmpl   $0x0,-0xac(%rbp)
jle    13ab <output_entry+0x1db>
mov    -0x8(%rbp),%rdi
lea    -0x40(%rbp),%rdx
lea    0xd1d(%rip),%rsi
mov    $0x0,%al
call   10a0 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
xor    %edx,%edx
call   10c0 <check_io@plt>
lea    0xd0a(%rip),%rdi
mov    $0x8,%esi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xd2c(%rip),%rdi
mov    $0x7,%esi
mov    $0x0,%al
call   1060 <printf@plt>
mov    0x2a13(%rip),%rax
mov    (%rax),%edi
call   10d0 <fflush@plt>
mov    0x2a15(%rip),%rax
mov    (%rax),%rdi
lea    0xd30(%rip),%rsi
lea    -0xa4(%rbp),%rdx
call   1080 <fscanf@plt>
mov    %eax,-0xa8(%rbp)
mov    0x29f2(%rip),%rax
mov    (%rax),%rdi
lea    0xd13(%rip),%rsi
xor    %edx,%edx
call   10c0 <check_io@plt>
mov    0x29da(%rip),%rax
mov    (%rax),%rdi
call   1090 <fgetc@plt>
mov    %al,-0xad(%rbp)
mov    0x29c5(%rip),%rax
mov    (%rax),%rdi
lea    0xce6(%rip),%rsi
xor    %edx,%edx
call   10c0 <check_io@plt>
movsbl -0xad(%rbp),%eax
cmp    $0xa,%eax
je     164e <output_entry+0x47e>
movl   $0xffffffff,-0xa4(%rbp)
ff ff ff
jmp    1653 <output_entry+0x483>
movsbl -0xad(%rbp),%eax
cmp    $0xa,%eax
jne    1607 <output_entry+0x437>
cmpl   $0x1,-0xa8(%rbp)
jne    168a <output_entry+0x4ba>
cmpl   $0x0,-0xa4(%rbp)
jl     168a <output_entry+0x4ba>
cmpl   $0x7,-0xa4(%rbp)
jle    16ab <output_entry+0x4db>
lea    0xc88(%rip),%rdi
mov    $0x7,%esi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xcac(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    16b0 <output_entry+0x4e0>
mov    $0x1,%al
cmpl   $0x1,-0xa8(%rbp)
mov    %al,-0xc4(%rbp)
jne    16ea <output_entry+0x51a>
mov    $0x1,%al
cmpl   $0x0,-0xa4(%rbp)
mov    %al,-0xc4(%rbp)
jl     16ea <output_entry+0x51a>
cmpl   $0x7,-0xa4(%rbp)
setg   %al
mov    %al,-0xc4(%rbp)
mov    -0xc4(%rbp),%al
test   $0x1,%al
jne    15be <output_entry+0x3ee>
mov    -0x8(%rbp),%rdi
mov    -0xa4(%rbp),%edx
lea    0xc60(%rip),%rsi
mov    $0x0,%al
call   10a0 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
xor    %edx,%edx
call   10c0 <check_io@plt>
xor    %eax,%eax
mov    %eax,%edi
call   10b0 <time@plt>
mov    %eax,-0xb4(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0xd0(%rbp)
lea    -0xb4(%rbp),%rdi
call   10e0 <gmtime@plt>
mov    %eax,%edi
call   1050 <asctime@plt>
mov    -0xd0(%rbp),%rdi
mov    %rax,%rdx
lea    0xc17(%rip),%rsi
mov    $0x0,%al
call   10a0 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
xor    %edx,%edx
call   10c0 <check_io@plt>
lea    0xc03(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    0xc31(%rip),%rdx
call   1040 <output_till_dot@plt>
add    $0xd0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<output_entry>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xa8,%rsp
mov    %rsi,%rbx
mov    %rdi,%rbp
movl   $0x0,0x4(%rsp)
lea    0xdfa(%rip),%rdi
mov    $0xc,%esi
mov    $0x1,%edx
mov    %rbp,%rcx
call   1100 <fwrite@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
xor    %edx,%edx
call   10d0 <check_io@plt>
lea    0xde1(%rip),%rsi
mov    %rbp,%rdi
mov    $0x7d4,%edx
xor    %eax,%eax
call   10b0 <fprintf@plt>
mov    %rbp,0x8(%rsp)
mov    %rbp,%rdi
mov    %rbx,0x10(%rsp)
mov    %rbx,%rsi
xor    %edx,%edx
call   10d0 <check_io@plt>
lea    0xdbe(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
lea    0xddc(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
lea    0x50(%rsp),%rbx
lea    0xde9(%rip),%rbp
jmp    128a <output_entry+0xaa>
nopl   0x0(%rax)
mov    %rbp,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    %rbx,%rdi
mov    $0x2,%esi
xor    %edx,%edx
call   1040 <get_line@plt>
test   %eax,%eax
jle    1280 <output_entry+0xa0>
movzbl 0x50(%rsp),%eax
cmp    $0x6e,%al
je     12f1 <output_entry+0x111>
cmp    $0x79,%al
jne    1280 <output_entry+0xa0>
lea    0xdca(%rip),%rdi
mov    $0x7,%esi
mov    $0x1,%edx
mov    0x8(%rsp),%rbx
mov    %rbx,%rcx
call   1100 <fwrite@plt>
mov    %rbx,%rdi
mov    0x10(%rsp),%rsi
xor    %edx,%edx
call   10d0 <check_io@plt>
lea    0x107a(%rip),%rdi
call   1030 <puts@plt>
lea    0x10a5(%rip),%rdi
call   1030 <puts@plt>
jmp    131e <output_entry+0x13e>
lea    0xd8b(%rip),%rdi
mov    $0x7,%esi
mov    $0x1,%edx
mov    0x8(%rsp),%rbx
mov    %rbx,%rcx
call   1100 <fwrite@plt>
mov    %rbx,%rdi
mov    0x10(%rsp),%rsi
xor    %edx,%edx
call   10d0 <check_io@plt>
lea    0xebe(%rip),%rdi
call   1030 <puts@plt>
lea    0xd5a(%rip),%rdi
mov    $0x1e,%esi
xor    %eax,%eax
call   1070 <printf@plt>
lea    0xedd(%rip),%rdi
call   1030 <puts@plt>
lea    0xf0a(%rip),%rdi
call   1030 <puts@plt>
lea    0xf3a(%rip),%rdi
call   1030 <puts@plt>
lea    0xd5e(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
lea    0x20(%rsp),%r12
lea    0xfb9(%rip),%rbp
movabs $0x10000000040005,%r13
jmp    13a7 <output_entry+0x1c7>
nopw   0x0(%rax,%rax,1)
lea    0xd42(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
test   %r14d,%r14d
jg     1463 <output_entry+0x283>
mov    %r12,%rdi
mov    $0x20,%esi
mov    $0x46,%edx
call   1040 <get_line@plt>
mov    %eax,%r14d
test   %eax,%eax
jle    1390 <output_entry+0x1b0>
movzbl 0x20(%rsp),%edi
test   %dil,%dil
js     13f0 <output_entry+0x210>
call   1080 <isalnum@plt>
test   %rax,%rax
je     13db <output_entry+0x1fb>
lea    0x21(%rsp),%r15
jmp    1429 <output_entry+0x249>
mov    0x20(%rsp),%al
lea    0x21(%rsp),%r15
cmp    $0x3d,%al
je     1429 <output_entry+0x249>
cmp    $0x5f,%al
je     1429 <output_entry+0x249>
nopl   0x0(%rax)
lea    0xed6(%rip),%rdi
call   1030 <puts@plt>
xor    %r14d,%r14d
mov    %rbx,%rdi
jmp    1397 <output_entry+0x1b7>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %rbp,%rdi
call   1030 <puts@plt>
xor    %r14d,%r14d
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
add    $0x1,%r15
movzbl (%r15),%edi
test   %edi,%edi
je     139e <output_entry+0x1be>
cmp    $0xa,%dil
je     139e <output_entry+0x1be>
test   %dil,%dil
js     1410 <output_entry+0x230>
call   1080 <isalnum@plt>
test   %rax,%rax
jne    1425 <output_entry+0x245>
movzbl (%r15),%eax
add    $0xd5,%al
cmp    $0x34,%al
ja     1410 <output_entry+0x230>
movzbl %al,%eax
bt     %rax,%r13
jb     1425 <output_entry+0x245>
jmp    1410 <output_entry+0x230>
lea    0xc95(%rip),%rsi
lea    0x20(%rsp),%rdx
mov    0x8(%rsp),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   10b0 <fprintf@plt>
mov    %rbx,%rdi
mov    0x10(%rsp),%rsi
xor    %edx,%edx
call   10d0 <check_io@plt>
lea    0xc75(%rip),%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1070 <printf@plt>
lea    0xc97(%rip),%rdi
mov    $0x7,%esi
xor    %eax,%eax
call   1070 <printf@plt>
mov    0x2b2e(%rip),%r14
lea    0x4(%rsp),%rbp
lea    0xcad(%rip),%r13
cs nopw 0x0(%rax,%rax,1)
mov    0x2b01(%rip),%rax
mov    (%rax),%edi
call   10e0 <fflush@plt>
mov    (%r14),%rdi
lea    0xc85(%rip),%rsi
mov    %rbp,%rdx
call   1090 <fscanf@plt>
mov    %eax,%r15d
mov    (%r14),%rdi
mov    %r13,%rsi
xor    %edx,%edx
call   10d0 <check_io@plt>
mov    (%r14),%rdi
call   10a0 <fgetc@plt>
mov    %eax,%r12d
mov    (%r14),%rdi
mov    %r13,%rsi
xor    %edx,%edx
call   10d0 <check_io@plt>
cmp    $0xa,%r12b
je     1544 <output_entry+0x364>
xchg   %ax,%ax
movl   $0xffffffff,0x4(%rsp)
ff
mov    (%r14),%rdi
call   10a0 <fgetc@plt>
mov    %eax,%ebx
mov    (%r14),%rdi
mov    %r13,%rsi
xor    %edx,%edx
call   10d0 <check_io@plt>
cmp    $0xa,%bl
jne    1520 <output_entry+0x340>
cmp    $0x1,%r15d
jne    1580 <output_entry+0x3a0>
mov    0x4(%rsp),%edx
test   %edx,%edx
js     1580 <output_entry+0x3a0>
cmp    $0x8,%edx
jge    1580 <output_entry+0x3a0>
cmp    $0x1,%r15d
jne    14d0 <output_entry+0x2f0>
test   %edx,%edx
js     14d0 <output_entry+0x2f0>
cmp    $0x7,%edx
jg     14d0 <output_entry+0x2f0>
jmp    15b0 <output_entry+0x3d0>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
lea    0xbf2(%rip),%rdi
mov    $0x7,%esi
xor    %eax,%eax
call   1070 <printf@plt>
lea    0xc16(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    0x4(%rsp),%edx
cmp    $0x1,%r15d
je     1561 <output_entry+0x381>
jmp    14d0 <output_entry+0x2f0>
lea    0xc12(%rip),%rsi
mov    0x8(%rsp),%rbp
mov    %rbp,%rdi
xor    %eax,%eax
call   10b0 <fprintf@plt>
mov    %rbp,%rdi
mov    0x10(%rsp),%rbx
mov    %rbx,%rsi
xor    %edx,%edx
call   10d0 <check_io@plt>
xor    %edi,%edi
call   10c0 <time@plt>
mov    %eax,0x1c(%rsp)
lea    0x1c(%rsp),%rdi
call   10f0 <gmtime@plt>
mov    %eax,%edi
call   1060 <asctime@plt>
lea    0xbd9(%rip),%rsi
mov    %rbp,%rdi
mov    %rax,%rdx
xor    %eax,%eax
call   10b0 <fprintf@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
xor    %edx,%edx
call   10d0 <check_io@plt>
lea    0xcd8(%rip),%rdi
call   1030 <puts@plt>
lea    0xbb5(%rip),%rdx
mov    %rbp,%rdi
mov    %rbx,%rsi
call   1050 <output_till_dot@plt>
add    $0xa8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [13 x i8] c"---entry---\0A\00"
@.str.1 = [10 x i8] c"rule:\09%d\0A\00"
@.str.2 = [44 x i8] c"Is this a fix, update or resubmittion to a \00"
@.str.3 = [32 x i8] c"previous entry (enter y or n)? \00"
@.str.4 = [24 x i8] c"\0Aplease answer y or n: \00"
@.str.5 = [8 x i8] c"fix:\09y\0A\00"
@.str.6 = [56 x i8] c"\0ABe sure that the title and entry number that you give\0A\00"
@.str.7 = [48 x i8] c"are the same of as the entry you are replacing\0A\00"
@.str.8 = [8 x i8] c"fix:\09n\0A\00"
@.str.9 = [63 x i8] c"\0AThe first character of your title should match [a-zA-Z0-9_=]\0A\00"
@.str.10 = [59 x i8] c"The next 0 to %d characters should match [a-zA-Z0-9_=+-]\0A\0A\00"
@.str.11 = [58 x i8] c"It is suggested, but not required, that the title should\0A\00"
@.str.12 = [61 x i8] c"incorporate your username; in the case of multiple authors,\0A\00"
@.str.13 = [56 x i8] c"consider using parts of the usernames of the authors.\0A\0A\00"
@.str.14 = [19 x i8] c"enter your title: \00"
@.str.15 = [38 x i8] c"\0Atitle is too long, please re-enter: \00"
@.str.16 = [40 x i8] c"\0Ainvalid first character in the title\0A\0A\00"
@.str.17 = [34 x i8] c"\0Ainvalid character in the title\0A\0A\00"
@.str.18 = [10 x i8] c"title:\09%s\00"
@.str.19 = [53 x i8] c"\0AEach person may submit up to %d entries per year.\0A\0A\00"
@.str.20 = [47 x i8] c"enter an entry number from 0 to %d inclusive: \00"
@stdout = global i32 0
@stdin = global i32* null
@.str.21 = [6 x i8] c"%d[\0A]\00"
@.str.22 = [6 x i8] c"stdin\00"
@.str.23 = [55 x i8] c"\0AThe entry number must be between 0 and %d inclusive\0A\0A\00"
@.str.24 = [25 x i8] c"enter the entry number: \00"
@.str.25 = [11 x i8] c"entry:\09%d\0A\00"
@.str.26 = [9 x i8] c"date:\09%s\00"
@.str.27 = [68 x i8] c"\0AEnter the machine(s) and OS(s) under which your entry was tested.\0A\00"
@.str.28 = [6 x i8] c"host:\00"
define void @output_entry(i32* %0, i8* %1) {
%3 = alloca i32*
%4 = alloca i8*
%5 = alloca [33 x i8]
%6 = alloca [81 x i8]
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i8
%11 = alloca i32
%12 = alloca i8*
store i32* %0, i32** %3
store i8* %1, i8** %4
store i32 0, i32* %7
store i32 0, i32* %9
%13 = load i32*, i32** %3
%14 = call i32 (i32*, i8*, ...) @fprintf(i32* %13, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%15 = load i32*, i32** %3
%16 = load i8*, i8** %4
%17 = call i32 @check_io(i32* %15, i8* %16, i32 0)
%18 = load i32*, i32** %3
%19 = call i32 (i32*, i8*, ...) @fprintf(i32* %18, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 2004)
%20 = load i32*, i32** %3
%21 = load i8*, i8** %4
%22 = call i32 @check_io(i32* %20, i8* %21, i32 0)
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.2, i64 0, i64 0))
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0))
br label %25
25: ; preds = %44, %2
%26 = getelementptr inbounds [81 x i8], [81 x i8]* %6, i64 0, i64 0
%27 = call i32 @get_line(i8* %26, i32 2, i32 0)
%28 = icmp sle i32 %27, 0
br i1 %28, label %42, label %29
29: ; preds = %25
%30 = getelementptr inbounds [81 x i8], [81 x i8]* %6, i64 0, i64 0
%31 = load i8, i8* %30
%32 = sext i8 %31 to i32
%33 = icmp eq i32 %32, 121
br i1 %33, label %39, label %34
34: ; preds = %29
%35 = getelementptr inbounds [81 x i8], [81 x i8]* %6, i64 0, i64 0
%36 = load i8, i8* %35
%37 = sext i8 %36 to i32
%38 = icmp eq i32 %37, 110
br label %39
39: ; preds = %34, %29
%40 = phi i1 [ true, %29 ], [ %38, %34 ]
%41 = xor i1 %40, true
br label %42
42: ; preds = %39, %25
%43 = phi i1 [ true, %25 ], [ %41, %39 ]
br i1 %43, label %44, label %46
44: ; preds = %42
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0))
br label %25
46: ; preds = %42
%47 = getelementptr inbounds [81 x i8], [81 x i8]* %6, i64 0, i64 0
%48 = load i8, i8* %47
%49 = sext i8 %48 to i32
%50 = icmp eq i32 %49, 121
br i1 %50, label %51, label %59
51: ; preds = %46
%52 = load i32*, i32** %3
%53 = call i32 (i32*, i8*, ...) @fprintf(i32* %52, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
%54 = load i32*, i32** %3
%55 = load i8*, i8** %4
%56 = call i32 @check_io(i32* %54, i8* %55, i32 0)
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.6, i64 0, i64 0))
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.7, i64 0, i64 0))
br label %65
59: ; preds = %46
%60 = load i32*, i32** %3
%61 = call i32 (i32*, i8*, ...) @fprintf(i32* %60, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0))
%62 = load i32*, i32** %3
%63 = load i8*, i8** %4
%64 = call i32 @check_io(i32* %62, i8* %63, i32 0)
br label %65
65: ; preds = %59, %51
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.9, i64 0, i64 0))
%67 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.10, i64 0, i64 0), i32 30)
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.11, i64 0, i64 0))
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.12, i64 0, i64 0))
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.13, i64 0, i64 0))
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.14, i64 0, i64 0))
br label %72
72: ; preds = %158, %65
%73 = getelementptr inbounds [33 x i8], [33 x i8]* %5, i64 0, i64 0
%74 = call i32 @get_line(i8* %73, i32 32, i32 70)
store i32 %74, i32* %9
%75 = icmp sle i32 %74, 0
br i1 %75, label %76, label %78
76: ; preds = %72
%77 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.15, i64 0, i64 0))
br label %158
78: ; preds = %72
%79 = getelementptr inbounds [33 x i8], [33 x i8]* %5, i64 0, i64 0
%80 = load i8, i8* %79
%81 = sext i8 %80 to i32
%82 = call i32 @isascii(i32 %81)
%83 = icmp ne i32 %82, 0
br i1 %83, label %84, label %100
84: ; preds = %78
%85 = getelementptr inbounds [33 x i8], [33 x i8]* %5, i64 0, i64 0
%86 = load i8, i8* %85
%87 = sext i8 %86 to i32
%88 = call i64 @isalnum(i32 %87)
%89 = icmp ne i64 %88, 0
br i1 %89, label %103, label %90
90: ; preds = %84
%91 = getelementptr inbounds [33 x i8], [33 x i8]* %5, i64 0, i64 0
%92 = load i8, i8* %91
%93 = sext i8 %92 to i32
%94 = icmp eq i32 %93, 95
br i1 %94, label %103, label %95
95: ; preds = %90
%96 = getelementptr inbounds [33 x i8], [33 x i8]* %5, i64 0, i64 0
%97 = load i8, i8* %96
%98 = sext i8 %97 to i32
%99 = icmp eq i32 %98, 61
br i1 %99, label %103, label %100
100: ; preds = %95, %78
%101 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.16, i64 0, i64 0))
%102 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.14, i64 0, i64 0))
store i32 0, i32* %9
br label %157
103: ; preds = %95, %90, %84
%104 = getelementptr inbounds [33 x i8], [33 x i8]* %5, i64 0, i64 1
store i8* %104, i8** %12
br label %105
105: ; preds = %153, %103
%106 = load i8*, i8** %12
%107 = load i8, i8* %106
%108 = sext i8 %107 to i32
%109 = icmp ne i32 %108, 0
br i1 %109, label %110, label %115
110: ; preds = %105
%111 = load i8*, i8** %12
%112 = load i8, i8* %111
%113 = sext i8 %112 to i32
%114 = icmp ne i32 %113, 10
br label %115
115: ; preds = %110, %105
%116 = phi i1 [ false, %105 ], [ %114, %110 ]
br i1 %116, label %117, label %156
117: ; preds = %115
%118 = load i8*, i8** %12
%119 = load i8, i8* %118
%120 = sext i8 %119 to i32
%121 = call i32 @isascii(i32 %120)
%122 = icmp ne i32 %121, 0
br i1 %122, label %123, label %149
123: ; preds = %117
%124 = load i8*, i8** %12
%125 = load i8, i8* %124
%126 = sext i8 %125 to i32
%127 = call i64 @isalnum(i32 %126)
%128 = icmp ne i64 %127, 0
br i1 %128, label %152, label %129
129: ; preds = %123
%130 = load i8*, i8** %12
%131 = load i8, i8* %130
%132 = sext i8 %131 to i32
%133 = icmp eq i32 %132, 95
br i1 %133, label %152, label %134
134: ; preds = %129
%135 = load i8*, i8** %12
%136 = load i8, i8* %135
%137 = sext i8 %136 to i32
%138 = icmp eq i32 %137, 61
br i1 %138, label %152, label %139
139: ; preds = %134
%140 = load i8*, i8** %12
%141 = load i8, i8* %140
%142 = sext i8 %141 to i32
%143 = icmp eq i32 %142, 43
br i1 %143, label %152, label %144
144: ; preds = %139
%145 = load i8*, i8** %12
%146 = load i8, i8* %145
%147 = sext i8 %146 to i32
%148 = icmp eq i32 %147, 45
br i1 %148, label %152, label %149
149: ; preds = %144, %117
%150 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.17, i64 0, i64 0))
%151 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.14, i64 0, i64 0))
store i32 0, i32* %9
br label %152
152: ; preds = %149, %144, %139, %134, %129, %123
br label %153
153: ; preds = %152
%154 = load i8*, i8** %12
%155 = getelementptr inbounds i8, i8* %154, i32 1
store i8* %155, i8** %12
br label %105
156: ; preds = %115
br label %157
157: ; preds = %156, %100
br label %158
158: ; preds = %157, %76
%159 = load i32, i32* %9
%160 = icmp sle i32 %159, 0
br i1 %160, label %72, label %161
161: ; preds = %158
%162 = load i32*, i32** %3
%163 = getelementptr inbounds [33 x i8], [33 x i8]* %5, i64 0, i64 0
%164 = call i32 (i32*, i8*, ...) @fprintf(i32* %162, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.18, i64 0, i64 0), i8* %163)
%165 = load i32*, i32** %3
%166 = load i8*, i8** %4
%167 = call i32 @check_io(i32* %165, i8* %166, i32 0)
%168 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.19, i64 0, i64 0), i32 8)
%169 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.20, i64 0, i64 0), i32 7)
br label %170
170: ; preds = %213, %161
%171 = load i32, i32* @stdout
%172 = call i32 @fflush(i32 %171)
%173 = load i32*, i32** @stdin
%174 = call i32 @fscanf(i32* %173, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.21, i64 0, i64 0), i32* %7)
store i32 %174, i32* %8
%175 = load i32*, i32** @stdin
%176 = call i32 @check_io(i32* %175, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.22, i64 0, i64 0), i32 0)
br label %177
177: ; preds = %187, %170
%178 = load i32*, i32** @stdin
%179 = call signext i8 @fgetc(i32* %178)
store i8 %179, i8* %10
%180 = load i32*, i32** @stdin
%181 = call i32 @check_io(i32* %180, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.22, i64 0, i64 0), i32 0)
%182 = load i8, i8* %10
%183 = sext i8 %182 to i32
%184 = icmp ne i32 %183, 10
br i1 %184, label %185, label %186
185: ; preds = %177
store i32 -1, i32* %7
br label %186
186: ; preds = %185, %177
br label %187
187: ; preds = %186
%188 = load i8, i8* %10
%189 = sext i8 %188 to i32
%190 = icmp ne i32 %189, 10
br i1 %190, label %177, label %191
191: ; preds = %187
%192 = load i32, i32* %8
%193 = icmp ne i32 %192, 1
br i1 %193, label %200, label %194
194: ; preds = %191
%195 = load i32, i32* %7
%196 = icmp slt i32 %195, 0
br i1 %196, label %200, label %197
197: ; preds = %194
%198 = load i32, i32* %7
%199 = icmp sgt i32 %198, 7
br i1 %199, label %200, label %203
200: ; preds = %197, %194, %191
%201 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.23, i64 0, i64 0), i32 7)
%202 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.24, i64 0, i64 0))
br label %203
203: ; preds = %200, %197
br label %204
204: ; preds = %203
%205 = load i32, i32* %8
%206 = icmp ne i32 %205, 1
br i1 %206, label %213, label %207
207: ; preds = %204
%208 = load i32, i32* %7
%209 = icmp slt i32 %208, 0
br i1 %209, label %213, label %210
210: ; preds = %207
%211 = load i32, i32* %7
%212 = icmp sgt i32 %211, 7
br label %213
213: ; preds = %210, %207, %204
%214 = phi i1 [ true, %207 ], [ true, %204 ], [ %212, %210 ]
br i1 %214, label %170, label %215
215: ; preds = %213
%216 = load i32*, i32** %3
%217 = load i32, i32* %7
%218 = call i32 (i32*, i8*, ...) @fprintf(i32* %216, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.25, i64 0, i64 0), i32 %217)
%219 = load i32*, i32** %3
%220 = load i8*, i8** %4
%221 = call i32 @check_io(i32* %219, i8* %220, i32 0)
%222 = call i32 @time(i32* null)
store i32 %222, i32* %11
%223 = load i32*, i32** %3
%224 = call i32 @gmtime(i32* %11)
%225 = call i8* @asctime(i32 %224)
%226 = call i32 (i32*, i8*, ...) @fprintf(i32* %223, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.26, i64 0, i64 0), i8* %225)
%227 = load i32*, i32** %3
%228 = load i8*, i8** %4
%229 = call i32 @check_io(i32* %227, i8* %228, i32 0)
%230 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.27, i64 0, i64 0))
%231 = load i32*, i32** %3
%232 = load i8*, i8** %4
%233 = call i32 @output_till_dot(i32* %231, i8* %232, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.28, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [13 x i8] c"---entry---\0A\00"
@.str.1 = [10 x i8] c"rule:\09%d\0A\00"
@.str.2 = [44 x i8] c"Is this a fix, update or resubmittion to a \00"
@.str.3 = [32 x i8] c"previous entry (enter y or n)? \00"
@.str.4 = [24 x i8] c"\0Aplease answer y or n: \00"
@.str.5 = [8 x i8] c"fix:\09y\0A\00"
@.str.8 = [8 x i8] c"fix:\09n\0A\00"
@.str.10 = [59 x i8] c"The next 0 to %d characters should match [a-zA-Z0-9_=+-]\0A\0A\00"
@.str.14 = [19 x i8] c"enter your title: \00"
@.str.15 = [38 x i8] c"\0Atitle is too long, please re-enter: \00"
@.str.18 = [10 x i8] c"title:\09%s\00"
@.str.19 = [53 x i8] c"\0AEach person may submit up to %d entries per year.\0A\0A\00"
@.str.20 = [47 x i8] c"enter an entry number from 0 to %d inclusive: \00"
@stdout = global i32 0
@stdin = global i32* null
@.str.21 = [6 x i8] c"%d[\0A]\00"
@.str.22 = [6 x i8] c"stdin\00"
@.str.23 = [55 x i8] c"\0AThe entry number must be between 0 and %d inclusive\0A\0A\00"
@.str.24 = [25 x i8] c"enter the entry number: \00"
@.str.25 = [11 x i8] c"entry:\09%d\0A\00"
@.str.26 = [9 x i8] c"date:\09%s\00"
@.str.28 = [6 x i8] c"host:\00"
@str = [62 x i8] c"\0AThe first character of your title should match [a-zA-Z0-9_=]\00"
@str.29 = [57 x i8] c"It is suggested, but not required, that the title should\00"
@str.30 = [60 x i8] c"incorporate your username; in the case of multiple authors,\00"
@str.31 = [55 x i8] c"consider using parts of the usernames of the authors.\0A\00"
@str.32 = [39 x i8] c"\0Ainvalid first character in the title\0A\00"
@str.33 = [67 x i8] c"\0AEnter the machine(s) and OS(s) under which your entry was tested.\00"
@str.34 = [33 x i8] c"\0Ainvalid character in the title\0A\00"
@str.35 = [55 x i8] c"\0ABe sure that the title and entry number that you give\00"
@str.36 = [47 x i8] c"are the same of as the entry you are replacing\00"
define void @output_entry(i32* %0, i8* %1) {
%3 = alloca [33 x i8]
%4 = alloca [81 x i8]
%5 = alloca i32
%6 = alloca i32
%7 = getelementptr inbounds [33 x i8], [33 x i8]* %3, i64 0, i64 0
%8 = getelementptr inbounds [81 x i8], [81 x i8]* %4, i64 0, i64 0
%9 = bitcast i32* %5 to i8*
store i32 0, i32* %5
%10 = bitcast i32* %6 to i8*
%11 = tail call i64 @fwrite(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i64 12, i64 1, i32* %0)
%12 = tail call i32 @check_io(i32* %0, i8* %1, i32 0)
%13 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 2004)
%14 = tail call i32 @check_io(i32* %0, i8* %1, i32 0)
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str.2, i64 0, i64 0))
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0))
br label %17
17: ; preds = %22, %2
%18 = call i32 @get_line(i8* %8, i32 2, i32 0)
%19 = icmp slt i32 %18, 1
br i1 %19, label %22, label %20
20: ; preds = %17
%21 = load i8, i8* %8
switch i8 %21, label %22 [
i8 121, label %24
i8 110, label %29
]
22: ; preds = %20, %17
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0))
br label %17
24: ; preds = %20
%25 = call i64 @fwrite(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i64 7, i64 1, i32* %0)
%26 = call i32 @check_io(i32* %0, i8* %1, i32 0)
%27 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.35, i64 0, i64 0))
%28 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.36, i64 0, i64 0))
br label %32
29: ; preds = %20
%30 = call i64 @fwrite(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0), i64 7, i64 1, i32* %0)
%31 = call i32 @check_io(i32* %0, i8* %1, i32 0)
br label %32
32: ; preds = %29, %24
%33 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str, i64 0, i64 0))
%34 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @.str.10, i64 0, i64 0), i32 30)
%35 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.29, i64 0, i64 0))
%36 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.30, i64 0, i64 0))
%37 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.31, i64 0, i64 0))
%38 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.14, i64 0, i64 0))
%39 = getelementptr inbounds [33 x i8], [33 x i8]* %3, i64 0, i64 1
br label %40
40: ; preds = %78, %32
%41 = call i32 @get_line(i8* %7, i32 32, i32 70)
%42 = icmp slt i32 %41, 1
br i1 %42, label %74, label %43
43: ; preds = %40
%44 = load i8, i8* %7
%45 = icmp slt i8 %44, 0
br i1 %45, label %54, label %46
46: ; preds = %43
%47 = zext i8 %44 to i32
%48 = call i64 @isalnum(i32 %47)
%49 = freeze i64 %48
%50 = icmp eq i64 %49, 0
br i1 %50, label %52, label %51
51: ; preds = %52, %52, %46
br label %56
52: ; preds = %46
%53 = load i8, i8* %7
switch i8 %53, label %54 [
i8 95, label %51
i8 61, label %51
]
54: ; preds = %52, %43
%55 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.32, i64 0, i64 0))
br label %74
56: ; preds = %51, %71
%57 = phi i32 [ %72, %71 ], [ %41, %51 ]
%58 = phi i8* [ %73, %71 ], [ %39, %51 ]
%59 = load i8, i8* %58
switch i8 %59, label %60 [
i8 0, label %78
i8 10, label %78
]
60: ; preds = %56
%61 = icmp slt i8 %59, 0
br i1 %61, label %68, label %62
62: ; preds = %60
%63 = zext i8 %59 to i32
%64 = call i64 @isalnum(i32 %63)
%65 = icmp eq i64 %64, 0
br i1 %65, label %66, label %71
66: ; preds = %62
%67 = load i8, i8* %58
switch i8 %67, label %68 [
i8 95, label %71
i8 61, label %71
i8 43, label %71
i8 45, label %71
]
68: ; preds = %66, %60
%69 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.34, i64 0, i64 0))
%70 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.14, i64 0, i64 0))
br label %71
71: ; preds = %66, %66, %66, %66, %62, %68
%72 = phi i32 [ %57, %62 ], [ %57, %66 ], [ 0, %68 ], [ %57, %66 ], [ %57, %66 ], [ %57, %66 ]
%73 = getelementptr inbounds i8, i8* %58, i64 1
br label %56
74: ; preds = %40, %54
%75 = phi i8* [ getelementptr inbounds ([19 x i8], [19 x i8]* @.str.14, i64 0, i64 0), %54 ], [ getelementptr inbounds ([38 x i8], [38 x i8]* @.str.15, i64 0, i64 0), %40 ]
%76 = phi i32 [ 0, %54 ], [ %41, %40 ]
%77 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %75)
br label %78
78: ; preds = %56, %56, %74
%79 = phi i32 [ %76, %74 ], [ %57, %56 ], [ %57, %56 ]
%80 = icmp slt i32 %79, 1
br i1 %80, label %40, label %81
81: ; preds = %78
%82 = call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.18, i64 0, i64 0), i8* %7)
%83 = call i32 @check_io(i32* %0, i8* %1, i32 0)
%84 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @.str.19, i64 0, i64 0), i32 8)
%85 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str.20, i64 0, i64 0), i32 7)
br label %86
86: ; preds = %115, %81
%87 = load i32, i32* @stdout
%88 = call i32 @fflush(i32 %87)
%89 = load i32*, i32** @stdin
%90 = call i32 @fscanf(i32* %89, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.21, i64 0, i64 0), i32* %5)
%91 = load i32*, i32** @stdin
%92 = call i32 @check_io(i32* %91, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.22, i64 0, i64 0), i32 0)
%93 = load i32*, i32** @stdin
%94 = call signext i8 @fgetc(i32* %93)
%95 = load i32*, i32** @stdin
%96 = call i32 @check_io(i32* %95, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.22, i64 0, i64 0), i32 0)
%97 = icmp eq i8 %94, 10
br i1 %97, label %104, label %98
98: ; preds = %86, %98
store i32 -1, i32* %5
%99 = load i32*, i32** @stdin
%100 = call signext i8 @fgetc(i32* %99)
%101 = load i32*, i32** @stdin
%102 = call i32 @check_io(i32* %101, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.22, i64 0, i64 0), i32 0)
%103 = icmp eq i8 %100, 10
br i1 %103, label %104, label %98
104: ; preds = %98, %86
%105 = icmp ne i32 %90, 1
%106 = load i32, i32* %5
%107 = icmp slt i32 %106, 0
%108 = select i1 %105, i1 true, i1 %107
%109 = icmp sgt i32 %106, 7
%110 = select i1 %108, i1 true, i1 %109
br i1 %110, label %111, label %115
111: ; preds = %104
%112 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @.str.23, i64 0, i64 0), i32 7)
%113 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.24, i64 0, i64 0))
%114 = load i32, i32* %5
br label %115
115: ; preds = %111, %104
%116 = phi i32 [ %114, %111 ], [ %106, %104 ]
%117 = icmp slt i32 %116, 0
%118 = select i1 %105, i1 true, i1 %117
%119 = icmp sgt i32 %116, 7
%120 = select i1 %118, i1 true, i1 %119
br i1 %120, label %86, label %121
121: ; preds = %115
%122 = call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.25, i64 0, i64 0), i32 %116)
%123 = call i32 @check_io(i32* %0, i8* %1, i32 0)
%124 = call i32 @time(i32* null)
store i32 %124, i32* %6
%125 = call i32 @gmtime(i32* %6)
%126 = call i8* @asctime(i32 %125)
%127 = call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.26, i64 0, i64 0), i8* %126)
%128 = call i32 @check_io(i32* %0, i8* %1, i32 0)
%129 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str.33, i64 0, i64 0))
%130 = call i32 @output_till_dot(i32* %0, i8* %1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.28, i64 0, i64 0))
ret void
}