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

/* Variables and functions */
int /*<<< orphan*/ cub(int);
int /*<<< orphan*/ cuf(int);
int /*<<< orphan*/ cup(int, int);
int /*<<< orphan*/ decdhl(int);
int /*<<< orphan*/ decdwl();
int /*<<< orphan*/ decstbm(int, int);
int /*<<< orphan*/ decswl();
int /*<<< orphan*/ ed(int);
int /*<<< orphan*/ el(int);
int /*<<< orphan*/ holdit();
int /*<<< orphan*/ hts();
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ println(char *);
int /*<<< orphan*/ ri();
int /*<<< orphan*/ rm(char *);
int /*<<< orphan*/ scs(int /*<<< orphan*/, char);
int /*<<< orphan*/ sgr(char *);
int /*<<< orphan*/ sm(char *);
int /*<<< orphan*/ tbc(int);
tst_doublesize() {
  int col, i, w, w1;
  for (w = 0; w <= 1; w++) {
    w1 = 13 * w;
    ed(2);
    cup(1, 1);
    if (w) {
      sm("?3");
      printf("132 column mode");
    } else {
      rm("?3");
      printf(" 80 column mode");
    }
    cup(5, 3 + 2 * w1);
    printf("v------- left margin");
    cup(7, 3 + 2 * w1);
    printf("This is a normal-sized line");
    decdhl(0);
    decdhl(1);
    decdwl();
    decswl();
    cup(9, 2 + w1);
    printf("This is a Double-width line");
    decswl();
    decdhl(0);
    decdhl(1);
    decdwl();
    cup(11, 2 + w1);
    decdwl();
    decswl();
    decdhl(1);
    decdhl(0);
    printf("This is a Double-width-and-height line");
    cup(12, 2 + w1);
    decdwl();
    decswl();
    decdhl(0);
    decdhl(1);
    printf("This is a Double-width-and-height line");
    cup(14, 2 + w1);
    decdwl();
    decswl();
    decdhl(1);
    decdhl(0);
    el(2);
    printf("This is another such line");
    cup(15, 2 + w1);
    decdwl();
    decswl();
    decdhl(0);
    decdhl(1);
    printf("This is another such line");
    cup(17, 3 + 2 * w1);
    printf("^------- left margin");
    cup(21, 1);
    printf("This is not a double-width line");
    for (i = 0; i <= 1; i++) {
      cup(21, 6);
      if (i) {
        printf("**is**");
        decdwl();
      } else {
        printf("is not");
        decswl();
      }
      cup(23, 1);
      holdit();
    }
  }
  cup(1, 1);
  tbc(3);
  for (col = 1; col <= 132; col += 8) {
    cuf(8);
    hts();
  }
  rm("?3");
  ed(2);
  scs(0, '0');
  cup(8, 1);
  decdhl(0);
  printf("lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk");
  cup(9, 1);
  decdhl(1);
  printf("lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk");
  cup(10, 1);
  decdhl(0);
  printf("x%c%c%c%c%cx", 9, 9, 9, 9, 9);
  cup(11, 1);
  decdhl(1);
  printf("x%c%c%c%c%cx", 9, 9, 9, 9, 9);
  cup(12, 1);
  decdhl(0);
  printf("x%c%c%c%c%cx", 9, 9, 9, 9, 9);
  cup(13, 1);
  decdhl(1);
  printf("x%c%c%c%c%cx", 9, 9, 9, 9, 9);
  cup(14, 1);
  decdhl(0);
  printf("x                                      x");
  cup(15, 1);
  decdhl(1);
  printf("x                                      x");
  cup(16, 1);
  decdhl(0);
  printf("mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj");
  cup(17, 1);
  decdhl(1);
  printf("mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj");
  scs(0, 'B');
  sgr("1;5");
  cup(12, 3);
  printf("* The mad programmer strikes again * ");
  cup(13, 3);
  printf("%c", 9);
  cub(6);
  printf("* The mad programmer strikes again *");
  sgr("0");
  cup(22, 1);
  println("Another test pattern...  a frame with blinking bold text,");
  printf("all in double-height double-width size. ");
  holdit();
  decstbm(8, 24);
  cup(8, 1);
  for (i = 1; i <= 12; i++)
    ri();
  decstbm(0, 0);
  cup(1, 1);
  printf("%s", "Exactly half of the box should remain. ");
  holdit();
}


x86 assembly (clang, -O0):
<tst_doublesize>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x10(%rbp)
cmpl   $0x1,-0x10(%rbp)
jg     1513 <tst_doublesize+0x2e3>
imul   $0xd,-0x10(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    $0x2,%edi
call   10c0 <ed@plt>
mov    $0x1,%esi
mov    %esi,%edi
call   1080 <cup@plt>
cmpl   $0x0,-0x10(%rbp)
je     128f <tst_doublesize+0x5f>
lea    0xd89(%rip),%rdi
call   10e0 <sm@plt>
lea    0xd80(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    12a9 <tst_doublesize+0x79>
lea    0xd6a(%rip),%rdi
call   1030 <rm@plt>
lea    0xd71(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x14(%rbp),%esi
shl    $0x1,%esi
add    $0x3,%esi
mov    $0x5,%edi
call   1080 <cup@plt>
lea    0xd60(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x14(%rbp),%esi
shl    $0x1,%esi
add    $0x3,%esi
mov    $0x7,%edi
call   1080 <cup@plt>
lea    0xd54(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
xor    %edi,%edi
call   1130 <decdhl@plt>
mov    $0x1,%edi
call   1130 <decdhl@plt>
mov    $0x0,%al
call   1060 <decdwl@plt>
mov    $0x0,%al
call   10b0 <decswl@plt>
mov    -0x14(%rbp),%esi
add    $0x2,%esi
mov    $0x9,%edi
call   1080 <cup@plt>
lea    0xd33(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   10b0 <decswl@plt>
xor    %edi,%edi
call   1130 <decdhl@plt>
mov    $0x1,%edi
call   1130 <decdhl@plt>
mov    $0x0,%al
call   1060 <decdwl@plt>
mov    -0x14(%rbp),%esi
add    $0x2,%esi
mov    $0xb,%edi
call   1080 <cup@plt>
mov    $0x0,%al
call   1060 <decdwl@plt>
mov    $0x0,%al
call   10b0 <decswl@plt>
mov    $0x1,%edi
call   1130 <decdhl@plt>
xor    %edi,%edi
call   1130 <decdhl@plt>
lea    0xcf3(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x14(%rbp),%esi
add    $0x2,%esi
mov    $0xc,%edi
call   1080 <cup@plt>
mov    $0x0,%al
call   1060 <decdwl@plt>
mov    $0x0,%al
call   10b0 <decswl@plt>
xor    %edi,%edi
call   1130 <decdhl@plt>
mov    $0x1,%edi
call   1130 <decdhl@plt>
lea    0xcb6(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x14(%rbp),%esi
add    $0x2,%esi
mov    $0xe,%edi
call   1080 <cup@plt>
mov    $0x0,%al
call   1060 <decdwl@plt>
mov    $0x0,%al
call   10b0 <decswl@plt>
mov    $0x1,%edi
call   1130 <decdhl@plt>
xor    %edi,%edi
call   1130 <decdhl@plt>
mov    $0x2,%edi
call   10a0 <el@plt>
lea    0xc96(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x14(%rbp),%esi
add    $0x2,%esi
mov    $0xf,%edi
call   1080 <cup@plt>
mov    $0x0,%al
call   1060 <decdwl@plt>
mov    $0x0,%al
call   10b0 <decswl@plt>
xor    %edi,%edi
call   1130 <decdhl@plt>
mov    $0x1,%edi
call   1130 <decdhl@plt>
lea    0xc59(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x14(%rbp),%esi
shl    $0x1,%esi
add    $0x3,%esi
mov    $0x11,%edi
call   1080 <cup@plt>
lea    0xc52(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x15,%edi
mov    $0x1,%esi
call   1080 <cup@plt>
lea    0xc4a(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0xc(%rbp)
cmpl   $0x1,-0xc(%rbp)
jg     1500 <tst_doublesize+0x2d0>
mov    $0x15,%edi
mov    $0x6,%esi
call   1080 <cup@plt>
cmpl   $0x0,-0xc(%rbp)
je     14c7 <tst_doublesize+0x297>
lea    0xc32(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   1060 <decdwl@plt>
jmp    14dc <tst_doublesize+0x2ac>
lea    0xc1f(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   10b0 <decswl@plt>
mov    $0x17,%edi
mov    $0x1,%esi
call   1080 <cup@plt>
mov    $0x0,%al
call   1140 <holdit@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    148a <tst_doublesize+0x25a>
jmp    1505 <tst_doublesize+0x2d5>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    123f <tst_doublesize+0xf>
mov    $0x1,%esi
mov    %esi,%edi
call   1080 <cup@plt>
mov    $0x3,%edi
call   1150 <tbc@plt>
movl   $0x1,-0x8(%rbp)
cmpl   $0x84,-0x8(%rbp)
jg     155c <tst_doublesize+0x32c>
mov    $0x8,%edi
call   10f0 <cuf@plt>
mov    $0x0,%al
call   1120 <hts@plt>
mov    -0x8(%rbp),%eax
add    $0x8,%eax
mov    %eax,-0x8(%rbp)
jmp    1530 <tst_doublesize+0x300>
lea    0xa9d(%rip),%rdi
call   1030 <rm@plt>
mov    $0x2,%edi
call   10c0 <ed@plt>
xor    %edi,%edi
mov    $0x30,%esi
call   1110 <scs@plt>
mov    $0x8,%edi
mov    $0x1,%esi
call   1080 <cup@plt>
xor    %edi,%edi
call   1130 <decdhl@plt>
lea    0xb59(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x9,%edi
mov    $0x1,%esi
call   1080 <cup@plt>
mov    $0x1,%edi
call   1130 <decdhl@plt>
lea    0xb32(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0xa,%edi
mov    $0x1,%esi
call   1080 <cup@plt>
xor    %edi,%edi
call   1130 <decdhl@plt>
lea    0xb37(%rip),%rdi
mov    $0x9,%r9d
mov    %r9d,%esi
mov    %r9d,%edx
mov    %r9d,%ecx
mov    %r9d,%r8d
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0xb,%edi
mov    $0x1,%esi
call   1080 <cup@plt>
mov    $0x1,%edi
call   1130 <decdhl@plt>
lea    0xafe(%rip),%rdi
mov    $0x9,%r9d
mov    %r9d,%esi
mov    %r9d,%edx
mov    %r9d,%ecx
mov    %r9d,%r8d
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0xc,%edi
mov    $0x1,%esi
call   1080 <cup@plt>
xor    %edi,%edi
call   1130 <decdhl@plt>
lea    0xac8(%rip),%rdi
mov    $0x9,%r9d
mov    %r9d,%esi
mov    %r9d,%edx
mov    %r9d,%ecx
mov    %r9d,%r8d
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0xd,%edi
mov    $0x1,%esi
call   1080 <cup@plt>
mov    $0x1,%edi
call   1130 <decdhl@plt>
lea    0xa8f(%rip),%rdi
mov    $0x9,%r9d
mov    %r9d,%esi
mov    %r9d,%edx
mov    %r9d,%ecx
mov    %r9d,%r8d
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0xe,%edi
mov    $0x1,%esi
call   1080 <cup@plt>
xor    %edi,%edi
call   1130 <decdhl@plt>
lea    0xa66(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0xf,%edi
mov    $0x1,%esi
call   1080 <cup@plt>
mov    $0x1,%edi
call   1130 <decdhl@plt>
lea    0xa3f(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x10,%edi
mov    $0x1,%esi
call   1080 <cup@plt>
xor    %edi,%edi
call   1130 <decdhl@plt>
lea    0xa44(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x11,%edi
mov    $0x1,%esi
call   1080 <cup@plt>
mov    $0x1,%edi
call   1130 <decdhl@plt>
lea    0xa1d(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
xor    %edi,%edi
mov    $0x42,%esi
call   1110 <scs@plt>
lea    0xa2c(%rip),%rdi
call   1100 <sgr@plt>
mov    $0xc,%edi
mov    $0x3,%esi
call   1080 <cup@plt>
lea    0xa15(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0xd,%edi
mov    $0x3,%esi
call   1080 <cup@plt>
lea    0xa1e(%rip),%rdi
mov    $0x9,%esi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x6,%edi
call   1090 <cub@plt>
lea    0xa04(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xa1b(%rip),%rdi
call   1100 <sgr@plt>
mov    $0x16,%edi
mov    $0x1,%esi
call   1080 <cup@plt>
lea    0xa02(%rip),%rdi
call   1070 <println@plt>
lea    0xa30(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   1140 <holdit@plt>
mov    $0x8,%edi
mov    $0x18,%esi
call   10d0 <decstbm@plt>
mov    $0x8,%edi
mov    $0x1,%esi
call   1080 <cup@plt>
movl   $0x1,-0xc(%rbp)
cmpl   $0xc,-0xc(%rbp)
jg     182c <tst_doublesize+0x5fc>
mov    $0x0,%al
call   1040 <ri@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    180d <tst_doublesize+0x5dd>
xor    %esi,%esi
mov    %esi,%edi
call   10d0 <decstbm@plt>
mov    $0x1,%esi
mov    %esi,%edi
call   1080 <cup@plt>
lea    0x9eb(%rip),%rdi
lea    0x9e7(%rip),%rsi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   1140 <holdit@plt>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<tst_doublesize>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
xor    %r13d,%r13d
mov    $0x1,%r12b
lea    0xe18(%rip),%rbx
lea    0xe38(%rip),%rbp
jmp    14c6 <tst_doublesize+0x286>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
call   1040 <rm@plt>
lea    0xd97(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0x0(%r13,%r13,4),%eax
lea    (%rax,%rax,4),%eax
lea    (%rax,%r13,1),%r15d
add    $0x3,%r15d
mov    $0x5,%edi
mov    %r15d,%esi
call   1090 <cup@plt>
lea    0xd7c(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x7,%edi
mov    %r15d,%esi
call   1090 <cup@plt>
lea    0xd76(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
xor    %edi,%edi
call   1140 <decdhl@plt>
mov    $0x1,%r13d
mov    $0x1,%edi
call   1140 <decdhl@plt>
xor    %eax,%eax
call   1070 <decdwl@plt>
xor    %eax,%eax
call   10c0 <decswl@plt>
add    $0x2,%r14d
mov    $0x9,%edi
mov    %r14d,%esi
call   1090 <cup@plt>
lea    0xd4e(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
xor    %eax,%eax
call   10c0 <decswl@plt>
xor    %edi,%edi
call   1140 <decdhl@plt>
mov    $0x1,%edi
call   1140 <decdhl@plt>
xor    %eax,%eax
call   1070 <decdwl@plt>
mov    $0xb,%edi
mov    %r14d,%esi
call   1090 <cup@plt>
xor    %eax,%eax
call   1070 <decdwl@plt>
xor    %eax,%eax
call   10c0 <decswl@plt>
mov    $0x1,%edi
call   1140 <decdhl@plt>
xor    %edi,%edi
call   1140 <decdhl@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xc,%edi
mov    %r14d,%esi
call   1090 <cup@plt>
xor    %eax,%eax
call   1070 <decdwl@plt>
xor    %eax,%eax
call   10c0 <decswl@plt>
xor    %edi,%edi
call   1140 <decdhl@plt>
mov    $0x1,%edi
call   1140 <decdhl@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xe,%edi
mov    %r14d,%esi
call   1090 <cup@plt>
xor    %eax,%eax
call   1070 <decdwl@plt>
xor    %eax,%eax
call   10c0 <decswl@plt>
mov    $0x1,%edi
call   1140 <decdhl@plt>
xor    %edi,%edi
call   1140 <decdhl@plt>
mov    $0x2,%edi
call   10b0 <el@plt>
mov    %rbp,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xf,%edi
mov    %r14d,%esi
call   1090 <cup@plt>
xor    %eax,%eax
call   1070 <decdwl@plt>
xor    %eax,%eax
call   10c0 <decswl@plt>
xor    %edi,%edi
call   1140 <decdhl@plt>
mov    $0x1,%edi
call   1140 <decdhl@plt>
mov    %rbp,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x11,%edi
mov    %r15d,%esi
call   1090 <cup@plt>
lea    0xc8f(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x15,%edi
mov    $0x1,%esi
call   1090 <cup@plt>
lea    0xc87(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x15,%edi
mov    $0x6,%esi
call   1090 <cup@plt>
lea    0xc91(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
xor    %eax,%eax
call   10c0 <decswl@plt>
mov    $0x17,%edi
mov    $0x1,%esi
call   1090 <cup@plt>
xor    %eax,%eax
call   1150 <holdit@plt>
mov    $0x15,%edi
mov    $0x6,%esi
call   1090 <cup@plt>
lea    0xc50(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
xor    %eax,%eax
call   1070 <decdwl@plt>
mov    $0x17,%edi
mov    $0x1,%esi
call   1090 <cup@plt>
xor    %eax,%eax
call   1150 <holdit@plt>
test   $0x1,%r12b
mov    $0x0,%r12d
je     150b <tst_doublesize+0x2cb>
lea    0x0(%r13,%r13,2),%eax
lea    0x0(%r13,%rax,4),%r14d
mov    $0x2,%edi
call   10d0 <ed@plt>
mov    $0x1,%edi
mov    $0x1,%esi
call   1090 <cup@plt>
lea    0xb10(%rip),%rdi
test   $0x1,%r12b
jne    1270 <tst_doublesize+0x30>
call   10f0 <sm@plt>
lea    0xafd(%rip),%rdi
jmp    127c <tst_doublesize+0x3c>
mov    $0x1,%edi
mov    $0x1,%esi
call   1090 <cup@plt>
mov    $0x3,%edi
call   1160 <tbc@plt>
mov    $0x8,%edi
call   1100 <cuf@plt>
xor    %eax,%eax
call   1130 <hts@plt>
mov    $0x8,%edi
call   1100 <cuf@plt>
xor    %eax,%eax
call   1130 <hts@plt>
mov    $0x8,%edi
call   1100 <cuf@plt>
xor    %eax,%eax
call   1130 <hts@plt>
mov    $0x8,%edi
call   1100 <cuf@plt>
xor    %eax,%eax
call   1130 <hts@plt>
mov    $0x8,%edi
call   1100 <cuf@plt>
xor    %eax,%eax
call   1130 <hts@plt>
mov    $0x8,%edi
call   1100 <cuf@plt>
xor    %eax,%eax
call   1130 <hts@plt>
mov    $0x8,%edi
call   1100 <cuf@plt>
xor    %eax,%eax
call   1130 <hts@plt>
mov    $0x8,%edi
call   1100 <cuf@plt>
xor    %eax,%eax
call   1130 <hts@plt>
mov    $0x8,%edi
call   1100 <cuf@plt>
xor    %eax,%eax
call   1130 <hts@plt>
mov    $0x8,%edi
call   1100 <cuf@plt>
xor    %eax,%eax
call   1130 <hts@plt>
mov    $0x8,%edi
call   1100 <cuf@plt>
xor    %eax,%eax
call   1130 <hts@plt>
mov    $0x8,%edi
call   1100 <cuf@plt>
xor    %eax,%eax
call   1130 <hts@plt>
mov    $0x8,%edi
call   1100 <cuf@plt>
xor    %eax,%eax
call   1130 <hts@plt>
mov    $0x8,%edi
call   1100 <cuf@plt>
xor    %eax,%eax
call   1130 <hts@plt>
mov    $0x8,%edi
call   1100 <cuf@plt>
xor    %eax,%eax
call   1130 <hts@plt>
mov    $0x8,%edi
call   1100 <cuf@plt>
xor    %eax,%eax
call   1130 <hts@plt>
mov    $0x8,%edi
call   1100 <cuf@plt>
xor    %eax,%eax
call   1130 <hts@plt>
lea    0x9b4(%rip),%rdi
call   1040 <rm@plt>
mov    $0x2,%edi
call   10d0 <ed@plt>
xor    %edi,%edi
mov    $0x30,%esi
call   1120 <scs@plt>
mov    $0x8,%edi
mov    $0x1,%esi
call   1090 <cup@plt>
xor    %edi,%edi
call   1140 <decdhl@plt>
lea    0xa70(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x9,%edi
mov    $0x1,%esi
call   1090 <cup@plt>
mov    $0x1,%edi
call   1140 <decdhl@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xa,%edi
mov    $0x1,%esi
call   1090 <cup@plt>
xor    %edi,%edi
call   1140 <decdhl@plt>
lea    0xa4f(%rip),%rbx
mov    %rbx,%rdi
mov    $0x9,%esi
mov    $0x9,%edx
mov    $0x9,%ecx
mov    $0x9,%r8d
mov    $0x9,%r9d
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xb,%edi
mov    $0x1,%esi
call   1090 <cup@plt>
mov    $0x1,%edi
call   1140 <decdhl@plt>
mov    %rbx,%rdi
mov    $0x9,%esi
mov    $0x9,%edx
mov    $0x9,%ecx
mov    $0x9,%r8d
mov    $0x9,%r9d
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xc,%edi
mov    $0x1,%esi
call   1090 <cup@plt>
xor    %edi,%edi
call   1140 <decdhl@plt>
mov    %rbx,%rdi
mov    $0x9,%esi
mov    $0x9,%edx
mov    $0x9,%ecx
mov    $0x9,%r8d
mov    $0x9,%r9d
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xd,%edi
mov    $0x1,%esi
call   1090 <cup@plt>
mov    $0x1,%edi
call   1140 <decdhl@plt>
mov    %rbx,%rdi
mov    $0x9,%esi
mov    $0x9,%edx
mov    $0x9,%ecx
mov    $0x9,%r8d
mov    $0x9,%r9d
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xe,%edi
mov    $0x1,%esi
call   1090 <cup@plt>
xor    %edi,%edi
call   1140 <decdhl@plt>
lea    0x963(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xf,%edi
mov    $0x1,%esi
call   1090 <cup@plt>
mov    $0x1,%edi
call   1140 <decdhl@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x10,%edi
mov    $0x1,%esi
call   1090 <cup@plt>
xor    %edi,%edi
call   1140 <decdhl@plt>
lea    0x942(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x11,%edi
mov    $0x1,%esi
call   1090 <cup@plt>
mov    $0x1,%edi
call   1140 <decdhl@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
xor    %edi,%edi
mov    $0x42,%esi
call   1120 <scs@plt>
lea    0x92b(%rip),%rdi
call   1110 <sgr@plt>
mov    $0xc,%edi
mov    $0x3,%esi
call   1090 <cup@plt>
lea    0x914(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xd,%edi
mov    $0x3,%esi
call   1090 <cup@plt>
mov    $0x9,%edi
call   1030 <putchar@plt>
mov    $0x6,%edi
call   10a0 <cub@plt>
lea    0x909(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0x920(%rip),%rdi
call   1110 <sgr@plt>
mov    $0x16,%edi
mov    $0x1,%esi
call   1090 <cup@plt>
lea    0x907(%rip),%rdi
call   1080 <println@plt>
lea    0x935(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
xor    %eax,%eax
call   1150 <holdit@plt>
mov    $0x8,%edi
mov    $0x18,%esi
call   10e0 <decstbm@plt>
mov    $0x8,%edi
mov    $0x1,%esi
call   1090 <cup@plt>
xor    %eax,%eax
call   1050 <ri@plt>
xor    %eax,%eax
call   1050 <ri@plt>
xor    %eax,%eax
call   1050 <ri@plt>
xor    %eax,%eax
call   1050 <ri@plt>
xor    %eax,%eax
call   1050 <ri@plt>
xor    %eax,%eax
call   1050 <ri@plt>
xor    %eax,%eax
call   1050 <ri@plt>
xor    %eax,%eax
call   1050 <ri@plt>
xor    %eax,%eax
call   1050 <ri@plt>
xor    %eax,%eax
call   1050 <ri@plt>
xor    %eax,%eax
call   1050 <ri@plt>
xor    %eax,%eax
call   1050 <ri@plt>
xor    %edi,%edi
xor    %esi,%esi
call   10e0 <decstbm@plt>
mov    $0x1,%edi
mov    $0x1,%esi
call   1090 <cup@plt>
lea    0x8bf(%rip),%rdi
lea    0x8bb(%rip),%rsi
xor    %eax,%eax
call   1060 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1150 <holdit@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"?3\00"
@.str.1 = [16 x i8] c"132 column mode\00"
@.str.2 = [16 x i8] c" 80 column mode\00"
@.str.3 = [21 x i8] c"v------- left margin\00"
@.str.4 = [28 x i8] c"This is a normal-sized line\00"
@.str.5 = [28 x i8] c"This is a Double-width line\00"
@.str.6 = [39 x i8] c"This is a Double-width-and-height line\00"
@.str.7 = [26 x i8] c"This is another such line\00"
@.str.8 = [21 x i8] c"^------- left margin\00"
@.str.9 = [32 x i8] c"This is not a double-width line\00"
@.str.10 = [7 x i8] c"**is**\00"
@.str.11 = [7 x i8] c"is not\00"
@.str.12 = [41 x i8] c"lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk\00"
@.str.13 = [13 x i8] c"x%c%c%c%c%cx\00"
@.str.14 = [41 x i8] c"x x\00"
@.str.15 = [41 x i8] c"mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj\00"
@.str.16 = [4 x i8] c"1;5\00"
@.str.17 = [38 x i8] c"* The mad programmer strikes again * \00"
@.str.18 = [3 x i8] c"%c\00"
@.str.19 = [37 x i8] c"* The mad programmer strikes again *\00"
@.str.20 = [2 x i8] c"0\00"
@.str.21 = [58 x i8] c"Another test pattern... a frame with blinking bold text,\00"
@.str.22 = [41 x i8] c"all in double-height double-width size. \00"
@.str.23 = [3 x i8] c"%s\00"
@.str.24 = [40 x i8] c"Exactly half of the box should remain. \00"
define i32 @tst_doublesize() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 0, i32* %4
br label %6
6: ; preds = %105, %0
%7 = load i32, i32* %4
%8 = icmp sle i32 %7, 1
br i1 %8, label %9, label %108
9: ; preds = %6
%10 = load i32, i32* %4
%11 = mul nsw i32 13, %10
store i32 %11, i32* %5
%12 = call i32 @ed(i32 2)
%13 = call i32 @cup(i32 1, i32 1)
%14 = load i32, i32* %4
%15 = icmp ne i32 %14, 0
br i1 %15, label %16, label %19
16: ; preds = %9
%17 = call i32 @sm(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
br label %22
19: ; preds = %9
%20 = call i32 @rm(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
br label %22
22: ; preds = %19, %16
%23 = load i32, i32* %5
%24 = mul nsw i32 2, %23
%25 = add nsw i32 3, %24
%26 = call i32 @cup(i32 5, i32 %25)
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0))
%28 = load i32, i32* %5
%29 = mul nsw i32 2, %28
%30 = add nsw i32 3, %29
%31 = call i32 @cup(i32 7, i32 %30)
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.4, i64 0, i64 0))
%33 = call i32 @decdhl(i32 0)
%34 = call i32 @decdhl(i32 1)
%35 = call i32 (...) @decdwl()
%36 = call i32 (...) @decswl()
%37 = load i32, i32* %5
%38 = add nsw i32 2, %37
%39 = call i32 @cup(i32 9, i32 %38)
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0))
%41 = call i32 (...) @decswl()
%42 = call i32 @decdhl(i32 0)
%43 = call i32 @decdhl(i32 1)
%44 = call i32 (...) @decdwl()
%45 = load i32, i32* %5
%46 = add nsw i32 2, %45
%47 = call i32 @cup(i32 11, i32 %46)
%48 = call i32 (...) @decdwl()
%49 = call i32 (...) @decswl()
%50 = call i32 @decdhl(i32 1)
%51 = call i32 @decdhl(i32 0)
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.6, i64 0, i64 0))
%53 = load i32, i32* %5
%54 = add nsw i32 2, %53
%55 = call i32 @cup(i32 12, i32 %54)
%56 = call i32 (...) @decdwl()
%57 = call i32 (...) @decswl()
%58 = call i32 @decdhl(i32 0)
%59 = call i32 @decdhl(i32 1)
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.6, i64 0, i64 0))
%61 = load i32, i32* %5
%62 = add nsw i32 2, %61
%63 = call i32 @cup(i32 14, i32 %62)
%64 = call i32 (...) @decdwl()
%65 = call i32 (...) @decswl()
%66 = call i32 @decdhl(i32 1)
%67 = call i32 @decdhl(i32 0)
%68 = call i32 @el(i32 2)
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.7, i64 0, i64 0))
%70 = load i32, i32* %5
%71 = add nsw i32 2, %70
%72 = call i32 @cup(i32 15, i32 %71)
%73 = call i32 (...) @decdwl()
%74 = call i32 (...) @decswl()
%75 = call i32 @decdhl(i32 0)
%76 = call i32 @decdhl(i32 1)
%77 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.7, i64 0, i64 0))
%78 = load i32, i32* %5
%79 = mul nsw i32 2, %78
%80 = add nsw i32 3, %79
%81 = call i32 @cup(i32 17, i32 %80)
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.8, i64 0, i64 0))
%83 = call i32 @cup(i32 21, i32 1)
%84 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.9, i64 0, i64 0))
store i32 0, i32* %3
br label %85
85: ; preds = %101, %22
%86 = load i32, i32* %3
%87 = icmp sle i32 %86, 1
br i1 %87, label %88, label %104
88: ; preds = %85
%89 = call i32 @cup(i32 21, i32 6)
%90 = load i32, i32* %3
%91 = icmp ne i32 %90, 0
br i1 %91, label %92, label %95
92: ; preds = %88
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0))
%94 = call i32 (...) @decdwl()
br label %98
95: ; preds = %88
%96 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0))
%97 = call i32 (...) @decswl()
br label %98
98: ; preds = %95, %92
%99 = call i32 @cup(i32 23, i32 1)
%100 = call i32 (...) @holdit()
br label %101
101: ; preds = %98
%102 = load i32, i32* %3
%103 = add nsw i32 %102, 1
store i32 %103, i32* %3
br label %85
104: ; preds = %85
br label %105
105: ; preds = %104
%106 = load i32, i32* %4
%107 = add nsw i32 %106, 1
store i32 %107, i32* %4
br label %6
108: ; preds = %6
%109 = call i32 @cup(i32 1, i32 1)
%110 = call i32 @tbc(i32 3)
store i32 1, i32* %2
br label %111
111: ; preds = %117, %108
%112 = load i32, i32* %2
%113 = icmp sle i32 %112, 132
br i1 %113, label %114, label %120
114: ; preds = %111
%115 = call i32 @cuf(i32 8)
%116 = call i32 (...) @hts()
br label %117
117: ; preds = %114
%118 = load i32, i32* %2
%119 = add nsw i32 %118, 8
store i32 %119, i32* %2
br label %111
120: ; preds = %111
%121 = call i32 @rm(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%122 = call i32 @ed(i32 2)
%123 = call i32 @scs(i32 0, i8 signext 48)
%124 = call i32 @cup(i32 8, i32 1)
%125 = call i32 @decdhl(i32 0)
%126 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.12, i64 0, i64 0))
%127 = call i32 @cup(i32 9, i32 1)
%128 = call i32 @decdhl(i32 1)
%129 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.12, i64 0, i64 0))
%130 = call i32 @cup(i32 10, i32 1)
%131 = call i32 @decdhl(i32 0)
%132 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.13, i64 0, i64 0), i32 9, i32 9, i32 9, i32 9, i32 9)
%133 = call i32 @cup(i32 11, i32 1)
%134 = call i32 @decdhl(i32 1)
%135 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.13, i64 0, i64 0), i32 9, i32 9, i32 9, i32 9, i32 9)
%136 = call i32 @cup(i32 12, i32 1)
%137 = call i32 @decdhl(i32 0)
%138 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.13, i64 0, i64 0), i32 9, i32 9, i32 9, i32 9, i32 9)
%139 = call i32 @cup(i32 13, i32 1)
%140 = call i32 @decdhl(i32 1)
%141 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.13, i64 0, i64 0), i32 9, i32 9, i32 9, i32 9, i32 9)
%142 = call i32 @cup(i32 14, i32 1)
%143 = call i32 @decdhl(i32 0)
%144 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.14, i64 0, i64 0))
%145 = call i32 @cup(i32 15, i32 1)
%146 = call i32 @decdhl(i32 1)
%147 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.14, i64 0, i64 0))
%148 = call i32 @cup(i32 16, i32 1)
%149 = call i32 @decdhl(i32 0)
%150 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.15, i64 0, i64 0))
%151 = call i32 @cup(i32 17, i32 1)
%152 = call i32 @decdhl(i32 1)
%153 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.15, i64 0, i64 0))
%154 = call i32 @scs(i32 0, i8 signext 66)
%155 = call i32 @sgr(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i64 0, i64 0))
%156 = call i32 @cup(i32 12, i32 3)
%157 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.17, i64 0, i64 0))
%158 = call i32 @cup(i32 13, i32 3)
%159 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i32 9)
%160 = call i32 @cub(i32 6)
%161 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.19, i64 0, i64 0))
%162 = call i32 @sgr(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.20, i64 0, i64 0))
%163 = call i32 @cup(i32 22, i32 1)
%164 = call i32 @println(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.21, i64 0, i64 0))
%165 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.22, i64 0, i64 0))
%166 = call i32 (...) @holdit()
%167 = call i32 @decstbm(i32 8, i32 24)
%168 = call i32 @cup(i32 8, i32 1)
store i32 1, i32* %3
br label %169
169: ; preds = %174, %120
%170 = load i32, i32* %3
%171 = icmp sle i32 %170, 12
br i1 %171, label %172, label %177
172: ; preds = %169
%173 = call i32 (...) @ri()
br label %174
174: ; preds = %172
%175 = load i32, i32* %3
%176 = add nsw i32 %175, 1
store i32 %176, i32* %3
br label %169
177: ; preds = %169
%178 = call i32 @decstbm(i32 0, i32 0)
%179 = call i32 @cup(i32 1, i32 1)
%180 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.23, i64 0, i64 0), i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.24, i64 0, i64 0))
%181 = call i32 (...) @holdit()
%182 = load i32, i32* %1
ret i32 %182
}

LLVM IR (-O2):
@.str = [3 x i8] c"?3\00"
@.str.1 = [16 x i8] c"132 column mode\00"
@.str.2 = [16 x i8] c" 80 column mode\00"
@.str.3 = [21 x i8] c"v------- left margin\00"
@.str.4 = [28 x i8] c"This is a normal-sized line\00"
@.str.5 = [28 x i8] c"This is a Double-width line\00"
@.str.6 = [39 x i8] c"This is a Double-width-and-height line\00"
@.str.7 = [26 x i8] c"This is another such line\00"
@.str.8 = [21 x i8] c"^------- left margin\00"
@.str.9 = [32 x i8] c"This is not a double-width line\00"
@.str.10 = [7 x i8] c"**is**\00"
@.str.11 = [7 x i8] c"is not\00"
@.str.12 = [41 x i8] c"lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk\00"
@.str.13 = [13 x i8] c"x%c%c%c%c%cx\00"
@.str.14 = [41 x i8] c"x x\00"
@.str.15 = [41 x i8] c"mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj\00"
@.str.16 = [4 x i8] c"1;5\00"
@.str.17 = [38 x i8] c"* The mad programmer strikes again * \00"
@.str.19 = [37 x i8] c"* The mad programmer strikes again *\00"
@.str.20 = [2 x i8] c"0\00"
@.str.21 = [58 x i8] c"Another test pattern... a frame with blinking bold text,\00"
@.str.22 = [41 x i8] c"all in double-height double-width size. \00"
@.str.23 = [3 x i8] c"%s\00"
@.str.24 = [40 x i8] c"Exactly half of the box should remain. \00"
define i32 @tst_doublesize() {
br label %1
1: ; preds = %0, %11
%2 = phi i1 [ true, %0 ], [ false, %11 ]
%3 = phi i32 [ 0, %0 ], [ 1, %11 ]
%4 = mul nuw nsw i32 %3, 13
%5 = tail call i32 @ed(i32 2)
%6 = tail call i32 @cup(i32 1, i32 1)
br i1 %2, label %9, label %7
7: ; preds = %1
%8 = tail call i32 @sm(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
br label %11
9: ; preds = %1
%10 = tail call i32 @rm(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
br label %11
11: ; preds = %9, %7
%12 = phi i8* [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), %9 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), %7 ]
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %12)
%14 = mul nuw nsw i32 %3, 26
%15 = add nuw nsw i32 %14, 3
%16 = tail call i32 @cup(i32 5, i32 %15)
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0))
%18 = tail call i32 @cup(i32 7, i32 %15)
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.4, i64 0, i64 0))
%20 = tail call i32 @decdhl(i32 0)
%21 = tail call i32 @decdhl(i32 1)
%22 = tail call i32 (...) @decdwl()
%23 = tail call i32 (...) @decswl()
%24 = add nuw nsw i32 %4, 2
%25 = tail call i32 @cup(i32 9, i32 %24)
%26 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0))
%27 = tail call i32 (...) @decswl()
%28 = tail call i32 @decdhl(i32 0)
%29 = tail call i32 @decdhl(i32 1)
%30 = tail call i32 (...) @decdwl()
%31 = tail call i32 @cup(i32 11, i32 %24)
%32 = tail call i32 (...) @decdwl()
%33 = tail call i32 (...) @decswl()
%34 = tail call i32 @decdhl(i32 1)
%35 = tail call i32 @decdhl(i32 0)
%36 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.6, i64 0, i64 0))
%37 = tail call i32 @cup(i32 12, i32 %24)
%38 = tail call i32 (...) @decdwl()
%39 = tail call i32 (...) @decswl()
%40 = tail call i32 @decdhl(i32 0)
%41 = tail call i32 @decdhl(i32 1)
%42 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.6, i64 0, i64 0))
%43 = tail call i32 @cup(i32 14, i32 %24)
%44 = tail call i32 (...) @decdwl()
%45 = tail call i32 (...) @decswl()
%46 = tail call i32 @decdhl(i32 1)
%47 = tail call i32 @decdhl(i32 0)
%48 = tail call i32 @el(i32 2)
%49 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.7, i64 0, i64 0))
%50 = tail call i32 @cup(i32 15, i32 %24)
%51 = tail call i32 (...) @decdwl()
%52 = tail call i32 (...) @decswl()
%53 = tail call i32 @decdhl(i32 0)
%54 = tail call i32 @decdhl(i32 1)
%55 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.7, i64 0, i64 0))
%56 = tail call i32 @cup(i32 17, i32 %15)
%57 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.8, i64 0, i64 0))
%58 = tail call i32 @cup(i32 21, i32 1)
%59 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.9, i64 0, i64 0))
%60 = tail call i32 @cup(i32 21, i32 6)
%61 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0))
%62 = tail call i32 (...) @decswl()
%63 = tail call i32 @cup(i32 23, i32 1)
%64 = tail call i32 (...) @holdit()
%65 = tail call i32 @cup(i32 21, i32 6)
%66 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0))
%67 = tail call i32 (...) @decdwl()
%68 = tail call i32 @cup(i32 23, i32 1)
%69 = tail call i32 (...) @holdit()
br i1 %2, label %1, label %70
70: ; preds = %11
%71 = tail call i32 @cup(i32 1, i32 1)
%72 = tail call i32 @tbc(i32 3)
%73 = tail call i32 @cuf(i32 8)
%74 = tail call i32 (...) @hts()
%75 = tail call i32 @cuf(i32 8)
%76 = tail call i32 (...) @hts()
%77 = tail call i32 @cuf(i32 8)
%78 = tail call i32 (...) @hts()
%79 = tail call i32 @cuf(i32 8)
%80 = tail call i32 (...) @hts()
%81 = tail call i32 @cuf(i32 8)
%82 = tail call i32 (...) @hts()
%83 = tail call i32 @cuf(i32 8)
%84 = tail call i32 (...) @hts()
%85 = tail call i32 @cuf(i32 8)
%86 = tail call i32 (...) @hts()
%87 = tail call i32 @cuf(i32 8)
%88 = tail call i32 (...) @hts()
%89 = tail call i32 @cuf(i32 8)
%90 = tail call i32 (...) @hts()
%91 = tail call i32 @cuf(i32 8)
%92 = tail call i32 (...) @hts()
%93 = tail call i32 @cuf(i32 8)
%94 = tail call i32 (...) @hts()
%95 = tail call i32 @cuf(i32 8)
%96 = tail call i32 (...) @hts()
%97 = tail call i32 @cuf(i32 8)
%98 = tail call i32 (...) @hts()
%99 = tail call i32 @cuf(i32 8)
%100 = tail call i32 (...) @hts()
%101 = tail call i32 @cuf(i32 8)
%102 = tail call i32 (...) @hts()
%103 = tail call i32 @cuf(i32 8)
%104 = tail call i32 (...) @hts()
%105 = tail call i32 @cuf(i32 8)
%106 = tail call i32 (...) @hts()
%107 = tail call i32 @rm(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%108 = tail call i32 @ed(i32 2)
%109 = tail call i32 @scs(i32 0, i8 signext 48)
%110 = tail call i32 @cup(i32 8, i32 1)
%111 = tail call i32 @decdhl(i32 0)
%112 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.12, i64 0, i64 0))
%113 = tail call i32 @cup(i32 9, i32 1)
%114 = tail call i32 @decdhl(i32 1)
%115 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.12, i64 0, i64 0))
%116 = tail call i32 @cup(i32 10, i32 1)
%117 = tail call i32 @decdhl(i32 0)
%118 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.13, i64 0, i64 0), i32 9, i32 9, i32 9, i32 9, i32 9)
%119 = tail call i32 @cup(i32 11, i32 1)
%120 = tail call i32 @decdhl(i32 1)
%121 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.13, i64 0, i64 0), i32 9, i32 9, i32 9, i32 9, i32 9)
%122 = tail call i32 @cup(i32 12, i32 1)
%123 = tail call i32 @decdhl(i32 0)
%124 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.13, i64 0, i64 0), i32 9, i32 9, i32 9, i32 9, i32 9)
%125 = tail call i32 @cup(i32 13, i32 1)
%126 = tail call i32 @decdhl(i32 1)
%127 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.13, i64 0, i64 0), i32 9, i32 9, i32 9, i32 9, i32 9)
%128 = tail call i32 @cup(i32 14, i32 1)
%129 = tail call i32 @decdhl(i32 0)
%130 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.14, i64 0, i64 0))
%131 = tail call i32 @cup(i32 15, i32 1)
%132 = tail call i32 @decdhl(i32 1)
%133 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.14, i64 0, i64 0))
%134 = tail call i32 @cup(i32 16, i32 1)
%135 = tail call i32 @decdhl(i32 0)
%136 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.15, i64 0, i64 0))
%137 = tail call i32 @cup(i32 17, i32 1)
%138 = tail call i32 @decdhl(i32 1)
%139 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.15, i64 0, i64 0))
%140 = tail call i32 @scs(i32 0, i8 signext 66)
%141 = tail call i32 @sgr(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i64 0, i64 0))
%142 = tail call i32 @cup(i32 12, i32 3)
%143 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.17, i64 0, i64 0))
%144 = tail call i32 @cup(i32 13, i32 3)
%145 = tail call i32 @putchar(i32 9)
%146 = tail call i32 @cub(i32 6)
%147 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.19, i64 0, i64 0))
%148 = tail call i32 @sgr(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.20, i64 0, i64 0))
%149 = tail call i32 @cup(i32 22, i32 1)
%150 = tail call i32 @println(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.21, i64 0, i64 0))
%151 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.22, i64 0, i64 0))
%152 = tail call i32 (...) @holdit()
%153 = tail call i32 @decstbm(i32 8, i32 24)
%154 = tail call i32 @cup(i32 8, i32 1)
%155 = tail call i32 (...) @ri()
%156 = tail call i32 (...) @ri()
%157 = tail call i32 (...) @ri()
%158 = tail call i32 (...) @ri()
%159 = tail call i32 (...) @ri()
%160 = tail call i32 (...) @ri()
%161 = tail call i32 (...) @ri()
%162 = tail call i32 (...) @ri()
%163 = tail call i32 (...) @ri()
%164 = tail call i32 (...) @ri()
%165 = tail call i32 (...) @ri()
%166 = tail call i32 (...) @ri()
%167 = tail call i32 @decstbm(i32 0, i32 0)
%168 = tail call i32 @cup(i32 1, i32 1)
%169 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.23, i64 0, i64 0), i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.24, i64 0, i64 0))
%170 = tail call i32 (...) @holdit()
ret i32 undef
}