#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", 1998);
  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\n");
  printf("case of multiple authors, consider using parts of the usernames\n");
  printf("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    $0x7ce,%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    0xe34(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xe67(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xe6b(%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     13ee <output_entry+0x21e>
lea    0xe4e(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    1574 <output_entry+0x3a4>
movsbl -0x40(%rbp),%edi
call   10f0 <isascii@plt>
cmp    $0x0,%eax
je     142d <output_entry+0x25d>
movsbl -0x40(%rbp),%edi
call   1070 <isalnum@plt>
cmp    $0x0,%rax
jne    1458 <output_entry+0x288>
movsbl -0x40(%rbp),%eax
cmp    $0x5f,%eax
je     1458 <output_entry+0x288>
movsbl -0x40(%rbp),%eax
cmp    $0x3d,%eax
je     1458 <output_entry+0x288>
lea    0xe22(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xddb(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0xac(%rbp)
jmp    156f <output_entry+0x39f>
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     1498 <output_entry+0x2c8>
mov    -0xc0(%rbp),%rax
movsbl (%rax),%eax
cmp    $0xa,%eax
setne  %al
mov    %al,-0xc3(%rbp)
mov    -0xc3(%rbp),%al
test   $0x1,%al
jne    14ab <output_entry+0x2db>
jmp    156a <output_entry+0x39a>
mov    -0xc0(%rbp),%rax
movsbl (%rax),%edi
call   10f0 <isascii@plt>
cmp    $0x0,%eax
je     1528 <output_entry+0x358>
mov    -0xc0(%rbp),%rax
movsbl (%rax),%edi
call   1070 <isalnum@plt>
cmp    $0x0,%rax
jne    154e <output_entry+0x37e>
mov    -0xc0(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x5f,%eax
je     154e <output_entry+0x37e>
mov    -0xc0(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x3d,%eax
je     154e <output_entry+0x37e>
mov    -0xc0(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2b,%eax
je     154e <output_entry+0x37e>
mov    -0xc0(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2d,%eax
je     154e <output_entry+0x37e>
lea    0xd4f(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xce0(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0xac(%rbp)
jmp    1553 <output_entry+0x383>
mov    -0xc0(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0xc0(%rbp)
jmp    1467 <output_entry+0x297>
jmp    156f <output_entry+0x39f>
jmp    1574 <output_entry+0x3a4>
cmpl   $0x0,-0xac(%rbp)
jle    13b9 <output_entry+0x1e9>
mov    -0x8(%rbp),%rdi
lea    -0x40(%rbp),%rdx
lea    0xd10(%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    0xcfd(%rip),%rdi
mov    $0x8,%esi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xd1f(%rip),%rdi
mov    $0x7,%esi
mov    $0x0,%al
call   1060 <printf@plt>
mov    0x2a05(%rip),%rax
mov    (%rax),%edi
call   10d0 <fflush@plt>
mov    0x2a07(%rip),%rax
mov    (%rax),%rdi
lea    0xd23(%rip),%rsi
lea    -0xa4(%rbp),%rdx
call   1080 <fscanf@plt>
mov    %eax,-0xa8(%rbp)
mov    0x29e4(%rip),%rax
mov    (%rax),%rdi
lea    0xd06(%rip),%rsi
xor    %edx,%edx
call   10c0 <check_io@plt>
mov    0x29cc(%rip),%rax
mov    (%rax),%rdi
call   1090 <fgetc@plt>
mov    %al,-0xad(%rbp)
mov    0x29b7(%rip),%rax
mov    (%rax),%rdi
lea    0xcd9(%rip),%rsi
xor    %edx,%edx
call   10c0 <check_io@plt>
movsbl -0xad(%rbp),%eax
cmp    $0xa,%eax
je     165c <output_entry+0x48c>
movl   $0xffffffff,-0xa4(%rbp)
ff ff ff
jmp    1661 <output_entry+0x491>
movsbl -0xad(%rbp),%eax
cmp    $0xa,%eax
jne    1615 <output_entry+0x445>
cmpl   $0x1,-0xa8(%rbp)
jne    1698 <output_entry+0x4c8>
cmpl   $0x0,-0xa4(%rbp)
jl     1698 <output_entry+0x4c8>
cmpl   $0x7,-0xa4(%rbp)
jle    16b9 <output_entry+0x4e9>
lea    0xc7b(%rip),%rdi
mov    $0x7,%esi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xc9f(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    16be <output_entry+0x4ee>
mov    $0x1,%al
cmpl   $0x1,-0xa8(%rbp)
mov    %al,-0xc4(%rbp)
jne    16f8 <output_entry+0x528>
mov    $0x1,%al
cmpl   $0x0,-0xa4(%rbp)
mov    %al,-0xc4(%rbp)
jl     16f8 <output_entry+0x528>
cmpl   $0x7,-0xa4(%rbp)
setg   %al
mov    %al,-0xc4(%rbp)
mov    -0xc4(%rbp),%al
test   $0x1,%al
jne    15cc <output_entry+0x3fc>
mov    -0x8(%rbp),%rdi
mov    -0xa4(%rbp),%edx
lea    0xc53(%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    0xc0a(%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    0xbf6(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    0xc24(%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    $0x7ce,%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    0xf20(%rip),%rdi
call   1030 <puts@plt>
lea    0xf54(%rip),%rdi
call   1030 <puts@plt>
lea    0xd52(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
lea    0x20(%rsp),%r12
lea    0xfad(%rip),%rbp
movabs $0x10000000040005,%r13
jmp    13b7 <output_entry+0x1d7>
cs nopw 0x0(%rax,%rax,1)
lea    0xd32(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
test   %r14d,%r14d
jg     1473 <output_entry+0x293>
mov    %r12,%rdi
mov    $0x20,%esi
mov    $0x46,%edx
call   1040 <get_line@plt>
mov    %eax,%r14d
test   %eax,%eax
jle    13a0 <output_entry+0x1c0>
movzbl 0x20(%rsp),%edi
test   %dil,%dil
js     1400 <output_entry+0x220>
call   1080 <isalnum@plt>
test   %rax,%rax
je     13eb <output_entry+0x20b>
lea    0x21(%rsp),%r15
jmp    1439 <output_entry+0x259>
mov    0x20(%rsp),%al
lea    0x21(%rsp),%r15
cmp    $0x3d,%al
je     1439 <output_entry+0x259>
cmp    $0x5f,%al
je     1439 <output_entry+0x259>
nopl   0x0(%rax)
lea    0xec6(%rip),%rdi
call   1030 <puts@plt>
xor    %r14d,%r14d
mov    %rbx,%rdi
jmp    13a7 <output_entry+0x1c7>
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     13ae <output_entry+0x1ce>
cmp    $0xa,%dil
je     13ae <output_entry+0x1ce>
test   %dil,%dil
js     1420 <output_entry+0x240>
call   1080 <isalnum@plt>
test   %rax,%rax
jne    1435 <output_entry+0x255>
movzbl (%r15),%eax
add    $0xd5,%al
cmp    $0x34,%al
ja     1420 <output_entry+0x240>
movzbl %al,%eax
bt     %rax,%r13
jb     1435 <output_entry+0x255>
jmp    1420 <output_entry+0x240>
lea    0xc85(%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    0xc65(%rip),%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1070 <printf@plt>
lea    0xc87(%rip),%rdi
mov    $0x7,%esi
xor    %eax,%eax
call   1070 <printf@plt>
mov    0x2b1e(%rip),%r14
lea    0x4(%rsp),%rbp
lea    0xc9d(%rip),%r13
cs nopw 0x0(%rax,%rax,1)
mov    0x2af1(%rip),%rax
mov    (%rax),%edi
call   10e0 <fflush@plt>
mov    (%r14),%rdi
lea    0xc75(%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     1554 <output_entry+0x374>
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    1530 <output_entry+0x350>
cmp    $0x1,%r15d
jne    1590 <output_entry+0x3b0>
mov    0x4(%rsp),%edx
test   %edx,%edx
js     1590 <output_entry+0x3b0>
cmp    $0x8,%edx
jge    1590 <output_entry+0x3b0>
cmp    $0x1,%r15d
jne    14e0 <output_entry+0x300>
test   %edx,%edx
js     14e0 <output_entry+0x300>
cmp    $0x7,%edx
jg     14e0 <output_entry+0x300>
jmp    15c0 <output_entry+0x3e0>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
lea    0xbe2(%rip),%rdi
mov    $0x7,%esi
xor    %eax,%eax
call   1070 <printf@plt>
lea    0xc06(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    0x4(%rsp),%edx
cmp    $0x1,%r15d
je     1571 <output_entry+0x391>
jmp    14e0 <output_entry+0x300>
lea    0xc02(%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    0xbc9(%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    0xcc8(%rip),%rdi
call   1030 <puts@plt>
lea    0xba5(%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 = [35 x i8] c"incorporate your username; in the\0A\00"
@.str.13 = [65 x i8] c"case of multiple authors, consider using parts of the usernames\0A\00"
@.str.14 = [18 x i8] c"of the authors.\0A\0A\00"
@.str.15 = [19 x i8] c"enter your title: \00"
@.str.16 = [38 x i8] c"\0Atitle is too long, please re-enter: \00"
@.str.17 = [40 x i8] c"\0Ainvalid first character in the title\0A\0A\00"
@.str.18 = [34 x i8] c"\0Ainvalid character in the title\0A\0A\00"
@.str.19 = [10 x i8] c"title:\09%s\00"
@.str.20 = [53 x i8] c"\0AEach person may submit up to %d entries per year.\0A\0A\00"
@.str.21 = [47 x i8] c"enter an entry number from 0 to %d inclusive: \00"
@stdout = global i32 0
@stdin = global i32* null
@.str.22 = [6 x i8] c"%d[\0A]\00"
@.str.23 = [6 x i8] c"stdin\00"
@.str.24 = [55 x i8] c"\0AThe entry number must be between 0 and %d inclusive\0A\0A\00"
@.str.25 = [25 x i8] c"enter the entry number: \00"
@.str.26 = [11 x i8] c"entry:\09%d\0A\00"
@.str.27 = [9 x i8] c"date:\09%s\00"
@.str.28 = [68 x i8] c"\0AEnter the machine(s) and OS(s) under which your entry was tested.\0A\00"
@.str.29 = [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 1998)
%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 ([35 x i8], [35 x i8]* @.str.12, i64 0, i64 0))
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.13, i64 0, i64 0))
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.14, i64 0, i64 0))
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.15, i64 0, i64 0))
br label %73
73: ; preds = %159, %65
%74 = getelementptr inbounds [33 x i8], [33 x i8]* %5, i64 0, i64 0
%75 = call i32 @get_line(i8* %74, i32 32, i32 70)
store i32 %75, i32* %9
%76 = icmp sle i32 %75, 0
br i1 %76, label %77, label %79
77: ; preds = %73
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.16, i64 0, i64 0))
br label %159
79: ; preds = %73
%80 = getelementptr inbounds [33 x i8], [33 x i8]* %5, i64 0, i64 0
%81 = load i8, i8* %80
%82 = sext i8 %81 to i32
%83 = call i32 @isascii(i32 %82)
%84 = icmp ne i32 %83, 0
br i1 %84, label %85, label %101
85: ; preds = %79
%86 = getelementptr inbounds [33 x i8], [33 x i8]* %5, i64 0, i64 0
%87 = load i8, i8* %86
%88 = sext i8 %87 to i32
%89 = call i64 @isalnum(i32 %88)
%90 = icmp ne i64 %89, 0
br i1 %90, label %104, label %91
91: ; preds = %85
%92 = getelementptr inbounds [33 x i8], [33 x i8]* %5, i64 0, i64 0
%93 = load i8, i8* %92
%94 = sext i8 %93 to i32
%95 = icmp eq i32 %94, 95
br i1 %95, label %104, label %96
96: ; preds = %91
%97 = getelementptr inbounds [33 x i8], [33 x i8]* %5, i64 0, i64 0
%98 = load i8, i8* %97
%99 = sext i8 %98 to i32
%100 = icmp eq i32 %99, 61
br i1 %100, label %104, label %101
101: ; preds = %96, %79
%102 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.17, i64 0, i64 0))
%103 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.15, i64 0, i64 0))
store i32 0, i32* %9
br label %158
104: ; preds = %96, %91, %85
%105 = getelementptr inbounds [33 x i8], [33 x i8]* %5, i64 0, i64 1
store i8* %105, i8** %12
br label %106
106: ; preds = %154, %104
%107 = load i8*, i8** %12
%108 = load i8, i8* %107
%109 = sext i8 %108 to i32
%110 = icmp ne i32 %109, 0
br i1 %110, label %111, label %116
111: ; preds = %106
%112 = load i8*, i8** %12
%113 = load i8, i8* %112
%114 = sext i8 %113 to i32
%115 = icmp ne i32 %114, 10
br label %116
116: ; preds = %111, %106
%117 = phi i1 [ false, %106 ], [ %115, %111 ]
br i1 %117, label %118, label %157
118: ; preds = %116
%119 = load i8*, i8** %12
%120 = load i8, i8* %119
%121 = sext i8 %120 to i32
%122 = call i32 @isascii(i32 %121)
%123 = icmp ne i32 %122, 0
br i1 %123, label %124, label %150
124: ; preds = %118
%125 = load i8*, i8** %12
%126 = load i8, i8* %125
%127 = sext i8 %126 to i32
%128 = call i64 @isalnum(i32 %127)
%129 = icmp ne i64 %128, 0
br i1 %129, label %153, label %130
130: ; preds = %124
%131 = load i8*, i8** %12
%132 = load i8, i8* %131
%133 = sext i8 %132 to i32
%134 = icmp eq i32 %133, 95
br i1 %134, label %153, label %135
135: ; preds = %130
%136 = load i8*, i8** %12
%137 = load i8, i8* %136
%138 = sext i8 %137 to i32
%139 = icmp eq i32 %138, 61
br i1 %139, label %153, label %140
140: ; preds = %135
%141 = load i8*, i8** %12
%142 = load i8, i8* %141
%143 = sext i8 %142 to i32
%144 = icmp eq i32 %143, 43
br i1 %144, label %153, label %145
145: ; preds = %140
%146 = load i8*, i8** %12
%147 = load i8, i8* %146
%148 = sext i8 %147 to i32
%149 = icmp eq i32 %148, 45
br i1 %149, label %153, label %150
150: ; preds = %145, %118
%151 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.18, i64 0, i64 0))
%152 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.15, i64 0, i64 0))
store i32 0, i32* %9
br label %153
153: ; preds = %150, %145, %140, %135, %130, %124
br label %154
154: ; preds = %153
%155 = load i8*, i8** %12
%156 = getelementptr inbounds i8, i8* %155, i32 1
store i8* %156, i8** %12
br label %106
157: ; preds = %116
br label %158
158: ; preds = %157, %101
br label %159
159: ; preds = %158, %77
%160 = load i32, i32* %9
%161 = icmp sle i32 %160, 0
br i1 %161, label %73, label %162
162: ; preds = %159
%163 = load i32*, i32** %3
%164 = getelementptr inbounds [33 x i8], [33 x i8]* %5, i64 0, i64 0
%165 = call i32 (i32*, i8*, ...) @fprintf(i32* %163, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.19, i64 0, i64 0), i8* %164)
%166 = load i32*, i32** %3
%167 = load i8*, i8** %4
%168 = call i32 @check_io(i32* %166, i8* %167, i32 0)
%169 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.20, i64 0, i64 0), i32 8)
%170 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.21, i64 0, i64 0), i32 7)
br label %171
171: ; preds = %214, %162
%172 = load i32, i32* @stdout
%173 = call i32 @fflush(i32 %172)
%174 = load i32*, i32** @stdin
%175 = call i32 @fscanf(i32* %174, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.22, i64 0, i64 0), i32* %7)
store i32 %175, i32* %8
%176 = load i32*, i32** @stdin
%177 = call i32 @check_io(i32* %176, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.23, i64 0, i64 0), i32 0)
br label %178
178: ; preds = %188, %171
%179 = load i32*, i32** @stdin
%180 = call signext i8 @fgetc(i32* %179)
store i8 %180, i8* %10
%181 = load i32*, i32** @stdin
%182 = call i32 @check_io(i32* %181, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.23, i64 0, i64 0), i32 0)
%183 = load i8, i8* %10
%184 = sext i8 %183 to i32
%185 = icmp ne i32 %184, 10
br i1 %185, label %186, label %187
186: ; preds = %178
store i32 -1, i32* %7
br label %187
187: ; preds = %186, %178
br label %188
188: ; preds = %187
%189 = load i8, i8* %10
%190 = sext i8 %189 to i32
%191 = icmp ne i32 %190, 10
br i1 %191, label %178, label %192
192: ; preds = %188
%193 = load i32, i32* %8
%194 = icmp ne i32 %193, 1
br i1 %194, label %201, label %195
195: ; preds = %192
%196 = load i32, i32* %7
%197 = icmp slt i32 %196, 0
br i1 %197, label %201, label %198
198: ; preds = %195
%199 = load i32, i32* %7
%200 = icmp sgt i32 %199, 7
br i1 %200, label %201, label %204
201: ; preds = %198, %195, %192
%202 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.24, i64 0, i64 0), i32 7)
%203 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.25, i64 0, i64 0))
br label %204
204: ; preds = %201, %198
br label %205
205: ; preds = %204
%206 = load i32, i32* %8
%207 = icmp ne i32 %206, 1
br i1 %207, label %214, label %208
208: ; preds = %205
%209 = load i32, i32* %7
%210 = icmp slt i32 %209, 0
br i1 %210, label %214, label %211
211: ; preds = %208
%212 = load i32, i32* %7
%213 = icmp sgt i32 %212, 7
br label %214
214: ; preds = %211, %208, %205
%215 = phi i1 [ true, %208 ], [ true, %205 ], [ %213, %211 ]
br i1 %215, label %171, label %216
216: ; preds = %214
%217 = load i32*, i32** %3
%218 = load i32, i32* %7
%219 = call i32 (i32*, i8*, ...) @fprintf(i32* %217, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.26, i64 0, i64 0), i32 %218)
%220 = load i32*, i32** %3
%221 = load i8*, i8** %4
%222 = call i32 @check_io(i32* %220, i8* %221, i32 0)
%223 = call i32 @time(i32* null)
store i32 %223, i32* %11
%224 = load i32*, i32** %3
%225 = call i32 @gmtime(i32* %11)
%226 = call i8* @asctime(i32 %225)
%227 = call i32 (i32*, i8*, ...) @fprintf(i32* %224, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.27, i64 0, i64 0), i8* %226)
%228 = load i32*, i32** %3
%229 = load i8*, i8** %4
%230 = call i32 @check_io(i32* %228, i8* %229, i32 0)
%231 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.28, i64 0, i64 0))
%232 = load i32*, i32** %3
%233 = load i8*, i8** %4
%234 = call i32 @output_till_dot(i32* %232, i8* %233, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.29, 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.15 = [19 x i8] c"enter your title: \00"
@.str.16 = [38 x i8] c"\0Atitle is too long, please re-enter: \00"
@.str.19 = [10 x i8] c"title:\09%s\00"
@.str.20 = [53 x i8] c"\0AEach person may submit up to %d entries per year.\0A\0A\00"
@.str.21 = [47 x i8] c"enter an entry number from 0 to %d inclusive: \00"
@stdout = global i32 0
@stdin = global i32* null
@.str.22 = [6 x i8] c"%d[\0A]\00"
@.str.23 = [6 x i8] c"stdin\00"
@.str.24 = [55 x i8] c"\0AThe entry number must be between 0 and %d inclusive\0A\0A\00"
@.str.25 = [25 x i8] c"enter the entry number: \00"
@.str.26 = [11 x i8] c"entry:\09%d\0A\00"
@.str.27 = [9 x i8] c"date:\09%s\00"
@.str.29 = [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.30 = [57 x i8] c"It is suggested, but not required, that the title should\00"
@str.31 = [34 x i8] c"incorporate your username; in the\00"
@str.32 = [64 x i8] c"case of multiple authors, consider using parts of the usernames\00"
@str.33 = [17 x i8] c"of the authors.\0A\00"
@str.34 = [39 x i8] c"\0Ainvalid first character in the title\0A\00"
@str.35 = [67 x i8] c"\0AEnter the machine(s) and OS(s) under which your entry was tested.\00"
@str.36 = [33 x i8] c"\0Ainvalid character in the title\0A\00"
@str.37 = [55 x i8] c"\0ABe sure that the title and entry number that you give\00"
@str.38 = [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 1998)
%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.37, i64 0, i64 0))
%28 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.38, 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.30, i64 0, i64 0))
%36 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.31, i64 0, i64 0))
%37 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.32, i64 0, i64 0))
%38 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.33, i64 0, i64 0))
%39 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.15, i64 0, i64 0))
%40 = getelementptr inbounds [33 x i8], [33 x i8]* %3, i64 0, i64 1
br label %41
41: ; preds = %79, %32
%42 = call i32 @get_line(i8* %7, i32 32, i32 70)
%43 = icmp slt i32 %42, 1
br i1 %43, label %75, label %44
44: ; preds = %41
%45 = load i8, i8* %7
%46 = icmp slt i8 %45, 0
br i1 %46, label %55, label %47
47: ; preds = %44
%48 = zext i8 %45 to i32
%49 = call i64 @isalnum(i32 %48)
%50 = freeze i64 %49
%51 = icmp eq i64 %50, 0
br i1 %51, label %53, label %52
52: ; preds = %53, %53, %47
br label %57
53: ; preds = %47
%54 = load i8, i8* %7
switch i8 %54, label %55 [
i8 95, label %52
i8 61, label %52
]
55: ; preds = %53, %44
%56 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.34, i64 0, i64 0))
br label %75
57: ; preds = %52, %72
%58 = phi i32 [ %73, %72 ], [ %42, %52 ]
%59 = phi i8* [ %74, %72 ], [ %40, %52 ]
%60 = load i8, i8* %59
switch i8 %60, label %61 [
i8 0, label %79
i8 10, label %79
]
61: ; preds = %57
%62 = icmp slt i8 %60, 0
br i1 %62, label %69, label %63
63: ; preds = %61
%64 = zext i8 %60 to i32
%65 = call i64 @isalnum(i32 %64)
%66 = icmp eq i64 %65, 0
br i1 %66, label %67, label %72
67: ; preds = %63
%68 = load i8, i8* %59
switch i8 %68, label %69 [
i8 95, label %72
i8 61, label %72
i8 43, label %72
i8 45, label %72
]
69: ; preds = %67, %61
%70 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.36, i64 0, i64 0))
%71 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.15, i64 0, i64 0))
br label %72
72: ; preds = %67, %67, %67, %67, %63, %69
%73 = phi i32 [ %58, %63 ], [ %58, %67 ], [ 0, %69 ], [ %58, %67 ], [ %58, %67 ], [ %58, %67 ]
%74 = getelementptr inbounds i8, i8* %59, i64 1
br label %57
75: ; preds = %41, %55
%76 = phi i8* [ getelementptr inbounds ([19 x i8], [19 x i8]* @.str.15, i64 0, i64 0), %55 ], [ getelementptr inbounds ([38 x i8], [38 x i8]* @.str.16, i64 0, i64 0), %41 ]
%77 = phi i32 [ 0, %55 ], [ %42, %41 ]
%78 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %76)
br label %79
79: ; preds = %57, %57, %75
%80 = phi i32 [ %77, %75 ], [ %58, %57 ], [ %58, %57 ]
%81 = icmp slt i32 %80, 1
br i1 %81, label %41, label %82
82: ; preds = %79
%83 = call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.19, i64 0, i64 0), i8* %7)
%84 = call i32 @check_io(i32* %0, i8* %1, i32 0)
%85 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @.str.20, i64 0, i64 0), i32 8)
%86 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str.21, i64 0, i64 0), i32 7)
br label %87
87: ; preds = %116, %82
%88 = load i32, i32* @stdout
%89 = call i32 @fflush(i32 %88)
%90 = load i32*, i32** @stdin
%91 = call i32 @fscanf(i32* %90, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.22, i64 0, i64 0), i32* %5)
%92 = load i32*, i32** @stdin
%93 = call i32 @check_io(i32* %92, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.23, i64 0, i64 0), i32 0)
%94 = load i32*, i32** @stdin
%95 = call signext i8 @fgetc(i32* %94)
%96 = load i32*, i32** @stdin
%97 = call i32 @check_io(i32* %96, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.23, i64 0, i64 0), i32 0)
%98 = icmp eq i8 %95, 10
br i1 %98, label %105, label %99
99: ; preds = %87, %99
store i32 -1, i32* %5
%100 = load i32*, i32** @stdin
%101 = call signext i8 @fgetc(i32* %100)
%102 = load i32*, i32** @stdin
%103 = call i32 @check_io(i32* %102, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.23, i64 0, i64 0), i32 0)
%104 = icmp eq i8 %101, 10
br i1 %104, label %105, label %99
105: ; preds = %99, %87
%106 = icmp ne i32 %91, 1
%107 = load i32, i32* %5
%108 = icmp slt i32 %107, 0
%109 = select i1 %106, i1 true, i1 %108
%110 = icmp sgt i32 %107, 7
%111 = select i1 %109, i1 true, i1 %110
br i1 %111, label %112, label %116
112: ; preds = %105
%113 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @.str.24, i64 0, i64 0), i32 7)
%114 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.25, i64 0, i64 0))
%115 = load i32, i32* %5
br label %116
116: ; preds = %112, %105
%117 = phi i32 [ %115, %112 ], [ %107, %105 ]
%118 = icmp slt i32 %117, 0
%119 = select i1 %106, i1 true, i1 %118
%120 = icmp sgt i32 %117, 7
%121 = select i1 %119, i1 true, i1 %120
br i1 %121, label %87, label %122
122: ; preds = %116
%123 = call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.26, i64 0, i64 0), i32 %117)
%124 = call i32 @check_io(i32* %0, i8* %1, i32 0)
%125 = call i32 @time(i32* null)
store i32 %125, i32* %6
%126 = call i32 @gmtime(i32* %6)
%127 = call i8* @asctime(i32 %126)
%128 = call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.27, i64 0, i64 0), i8* %127)
%129 = call i32 @check_io(i32* %0, i8* %1, i32 0)
%130 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str.35, i64 0, i64 0))
%131 = call i32 @output_till_dot(i32* %0, i8* %1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.29, i64 0, i64 0))
ret void
}