#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 dequeue_head();
int dequeue_tail();
int /*<<< orphan*/ enqueue_head(int);
int /*<<< orphan*/ enqueue_tail(int);
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ reverse_list();
int main(int argc, char **argv) {
  int i;
  for (i = 0; i < (20); i++) {
    printf("enqueue tail: %d\n", i);
    enqueue_tail(i);
  }
  for (i = 0; i < (20); i++) {
    printf("dequeue tail: %d\n", dequeue_tail());
  }
  for (i = 0; i < (20); i++) {
    printf("enqueue head: %d\n", i);
    enqueue_head(i);
  }
  for (i = 0; i < (20); i++) {
    printf("dequeue head: %d\n", dequeue_head());
  }
  for (i = 0; i < 10; i++) {
    printf("enqueue head: %d\n", i);
    enqueue_head(i);
  }
  for (i = 10; i < (20); i++) {
    printf("enqueue tail: %d\n", i);
    enqueue_tail(i);
  }
  for (i = 0; i < (20); i++) {
    printf("dequeue tail: %d\n", dequeue_tail());
  }
  for (i = 0; i < (20); i++) {
    printf("enqueue tail: %d\n", i);
    enqueue_head(i);
  }
  reverse_list();
  for (i = 0; i < (20); i++) {
    printf("dequeue tail: %d\n", dequeue_tail());
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x14,-0x14(%rbp)
jge    11ac <main+0x4c>
mov    -0x14(%rbp),%esi
lea    0xe6f(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%edi
call   1060 <enqueue_tail@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    117d <main+0x1d>
movl   $0x0,-0x14(%rbp)
cmpl   $0x14,-0x14(%rbp)
jge    11e0 <main+0x80>
mov    $0x0,%al
call   1070 <dequeue_tail@plt>
mov    %eax,%esi
lea    0xe45(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11b3 <main+0x53>
movl   $0x0,-0x14(%rbp)
cmpl   $0x14,-0x14(%rbp)
jge    1216 <main+0xb6>
mov    -0x14(%rbp),%esi
lea    0xe29(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%edi
call   1040 <enqueue_head@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11e7 <main+0x87>
movl   $0x0,-0x14(%rbp)
cmpl   $0x14,-0x14(%rbp)
jge    124a <main+0xea>
mov    $0x0,%al
call   1080 <dequeue_head@plt>
mov    %eax,%esi
lea    0xdff(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    121d <main+0xbd>
movl   $0x0,-0x14(%rbp)
cmpl   $0xa,-0x14(%rbp)
jge    1280 <main+0x120>
mov    -0x14(%rbp),%esi
lea    0xdbf(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%edi
call   1040 <enqueue_head@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1251 <main+0xf1>
movl   $0xa,-0x14(%rbp)
cmpl   $0x14,-0x14(%rbp)
jge    12b6 <main+0x156>
mov    -0x14(%rbp),%esi
lea    0xd65(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%edi
call   1060 <enqueue_tail@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1287 <main+0x127>
movl   $0x0,-0x14(%rbp)
cmpl   $0x14,-0x14(%rbp)
jge    12ea <main+0x18a>
mov    $0x0,%al
call   1070 <dequeue_tail@plt>
mov    %eax,%esi
lea    0xd3b(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    12bd <main+0x15d>
movl   $0x0,-0x14(%rbp)
cmpl   $0x14,-0x14(%rbp)
jge    1320 <main+0x1c0>
mov    -0x14(%rbp),%esi
lea    0xcfb(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%edi
call   1040 <enqueue_head@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    12f1 <main+0x191>
mov    $0x0,%al
call   1050 <reverse_list@plt>
movl   $0x0,-0x14(%rbp)
cmpl   $0x14,-0x14(%rbp)
jge    135b <main+0x1fb>
mov    $0x0,%al
call   1070 <dequeue_tail@plt>
mov    %eax,%esi
lea    0xcca(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    132e <main+0x1ce>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
lea    0xe91(%rip),%r14
mov    %r14,%rdi
xor    %esi,%esi
call   1030 <printf@plt>
xor    %edi,%edi
call   1060 <enqueue_tail@plt>
mov    %r14,%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1060 <enqueue_tail@plt>
mov    %r14,%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
mov    $0x2,%edi
call   1060 <enqueue_tail@plt>
mov    %r14,%rdi
mov    $0x3,%esi
call   1030 <printf@plt>
mov    $0x3,%edi
call   1060 <enqueue_tail@plt>
mov    %r14,%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
mov    $0x4,%edi
call   1060 <enqueue_tail@plt>
mov    %r14,%rdi
mov    $0x5,%esi
call   1030 <printf@plt>
mov    $0x5,%edi
call   1060 <enqueue_tail@plt>
mov    %r14,%rdi
mov    $0x6,%esi
call   1030 <printf@plt>
mov    $0x6,%edi
call   1060 <enqueue_tail@plt>
mov    %r14,%rdi
mov    $0x7,%esi
call   1030 <printf@plt>
mov    $0x7,%edi
call   1060 <enqueue_tail@plt>
mov    %r14,%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
mov    $0x8,%edi
call   1060 <enqueue_tail@plt>
mov    %r14,%rdi
mov    $0x9,%esi
call   1030 <printf@plt>
mov    $0x9,%edi
call   1060 <enqueue_tail@plt>
mov    %r14,%rdi
mov    $0xa,%esi
call   1030 <printf@plt>
mov    $0xa,%edi
call   1060 <enqueue_tail@plt>
mov    %r14,%rdi
mov    $0xb,%esi
call   1030 <printf@plt>
mov    $0xb,%edi
call   1060 <enqueue_tail@plt>
mov    %r14,%rdi
mov    $0xc,%esi
call   1030 <printf@plt>
mov    $0xc,%edi
call   1060 <enqueue_tail@plt>
mov    %r14,%rdi
mov    $0xd,%esi
call   1030 <printf@plt>
mov    $0xd,%edi
call   1060 <enqueue_tail@plt>
mov    %r14,%rdi
mov    $0xe,%esi
call   1030 <printf@plt>
mov    $0xe,%edi
call   1060 <enqueue_tail@plt>
mov    %r14,%rdi
mov    $0xf,%esi
call   1030 <printf@plt>
mov    $0xf,%edi
call   1060 <enqueue_tail@plt>
mov    %r14,%rdi
mov    $0x10,%esi
call   1030 <printf@plt>
mov    $0x10,%edi
call   1060 <enqueue_tail@plt>
mov    %r14,%rdi
mov    $0x11,%esi
call   1030 <printf@plt>
mov    $0x11,%edi
call   1060 <enqueue_tail@plt>
mov    %r14,%rdi
mov    $0x12,%esi
call   1030 <printf@plt>
mov    $0x12,%edi
call   1060 <enqueue_tail@plt>
mov    %r14,%rdi
mov    $0x13,%esi
call   1030 <printf@plt>
mov    $0x13,%edi
call   1060 <enqueue_tail@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
lea    0xccf(%rip),%r15
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
lea    0xb8d(%rip),%r12
mov    %r12,%rdi
xor    %esi,%esi
call   1030 <printf@plt>
xor    %edi,%edi
call   1040 <enqueue_head@plt>
mov    %r12,%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <enqueue_head@plt>
mov    %r12,%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
mov    $0x2,%edi
call   1040 <enqueue_head@plt>
mov    %r12,%rdi
mov    $0x3,%esi
call   1030 <printf@plt>
mov    $0x3,%edi
call   1040 <enqueue_head@plt>
mov    %r12,%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
mov    $0x4,%edi
call   1040 <enqueue_head@plt>
mov    %r12,%rdi
mov    $0x5,%esi
call   1030 <printf@plt>
mov    $0x5,%edi
call   1040 <enqueue_head@plt>
mov    %r12,%rdi
mov    $0x6,%esi
call   1030 <printf@plt>
mov    $0x6,%edi
call   1040 <enqueue_head@plt>
mov    %r12,%rdi
mov    $0x7,%esi
call   1030 <printf@plt>
mov    $0x7,%edi
call   1040 <enqueue_head@plt>
mov    %r12,%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
mov    $0x8,%edi
call   1040 <enqueue_head@plt>
mov    %r12,%rdi
mov    $0x9,%esi
call   1030 <printf@plt>
mov    $0x9,%edi
call   1040 <enqueue_head@plt>
mov    %r12,%rdi
mov    $0xa,%esi
call   1030 <printf@plt>
mov    $0xa,%edi
call   1040 <enqueue_head@plt>
mov    %r12,%rdi
mov    $0xb,%esi
call   1030 <printf@plt>
mov    $0xb,%edi
call   1040 <enqueue_head@plt>
mov    %r12,%rdi
mov    $0xc,%esi
call   1030 <printf@plt>
mov    $0xc,%edi
call   1040 <enqueue_head@plt>
mov    %r12,%rdi
mov    $0xd,%esi
call   1030 <printf@plt>
mov    $0xd,%edi
call   1040 <enqueue_head@plt>
mov    %r12,%rdi
mov    $0xe,%esi
call   1030 <printf@plt>
mov    $0xe,%edi
call   1040 <enqueue_head@plt>
mov    %r12,%rdi
mov    $0xf,%esi
call   1030 <printf@plt>
mov    $0xf,%edi
call   1040 <enqueue_head@plt>
mov    %r12,%rdi
mov    $0x10,%esi
call   1030 <printf@plt>
mov    $0x10,%edi
call   1040 <enqueue_head@plt>
mov    %r12,%rdi
mov    $0x11,%esi
call   1030 <printf@plt>
mov    $0x11,%edi
call   1040 <enqueue_head@plt>
mov    %r12,%rdi
mov    $0x12,%esi
call   1030 <printf@plt>
mov    $0x12,%edi
call   1040 <enqueue_head@plt>
mov    %r12,%rdi
mov    $0x13,%esi
call   1030 <printf@plt>
mov    $0x13,%edi
call   1040 <enqueue_head@plt>
xor    %eax,%eax
call   1080 <dequeue_head@plt>
lea    0x9cb(%rip),%rbx
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1080 <dequeue_head@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1080 <dequeue_head@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1080 <dequeue_head@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1080 <dequeue_head@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1080 <dequeue_head@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1080 <dequeue_head@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1080 <dequeue_head@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1080 <dequeue_head@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1080 <dequeue_head@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1080 <dequeue_head@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1080 <dequeue_head@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1080 <dequeue_head@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1080 <dequeue_head@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1080 <dequeue_head@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1080 <dequeue_head@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1080 <dequeue_head@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1080 <dequeue_head@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1080 <dequeue_head@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1080 <dequeue_head@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
mov    %r12,%rdi
xor    %esi,%esi
call   1030 <printf@plt>
xor    %edi,%edi
call   1040 <enqueue_head@plt>
mov    %r12,%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <enqueue_head@plt>
mov    %r12,%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
mov    $0x2,%edi
call   1040 <enqueue_head@plt>
mov    %r12,%rdi
mov    $0x3,%esi
call   1030 <printf@plt>
mov    $0x3,%edi
call   1040 <enqueue_head@plt>
mov    %r12,%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
mov    $0x4,%edi
call   1040 <enqueue_head@plt>
mov    %r12,%rdi
mov    $0x5,%esi
call   1030 <printf@plt>
mov    $0x5,%edi
call   1040 <enqueue_head@plt>
mov    %r12,%rdi
mov    $0x6,%esi
call   1030 <printf@plt>
mov    $0x6,%edi
call   1040 <enqueue_head@plt>
mov    %r12,%rdi
mov    $0x7,%esi
call   1030 <printf@plt>
mov    $0x7,%edi
call   1040 <enqueue_head@plt>
mov    %r12,%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
mov    $0x8,%edi
call   1040 <enqueue_head@plt>
mov    %r12,%rdi
mov    $0x9,%esi
call   1030 <printf@plt>
mov    $0x9,%edi
call   1040 <enqueue_head@plt>
mov    %r14,%rdi
mov    $0xa,%esi
call   1030 <printf@plt>
mov    $0xa,%edi
call   1060 <enqueue_tail@plt>
mov    %r14,%rdi
mov    $0xb,%esi
call   1030 <printf@plt>
mov    $0xb,%edi
call   1060 <enqueue_tail@plt>
mov    %r14,%rdi
mov    $0xc,%esi
call   1030 <printf@plt>
mov    $0xc,%edi
call   1060 <enqueue_tail@plt>
mov    %r14,%rdi
mov    $0xd,%esi
call   1030 <printf@plt>
mov    $0xd,%edi
call   1060 <enqueue_tail@plt>
mov    %r14,%rdi
mov    $0xe,%esi
call   1030 <printf@plt>
mov    $0xe,%edi
call   1060 <enqueue_tail@plt>
mov    %r14,%rdi
mov    $0xf,%esi
call   1030 <printf@plt>
mov    $0xf,%edi
call   1060 <enqueue_tail@plt>
mov    %r14,%rdi
mov    $0x10,%esi
call   1030 <printf@plt>
mov    $0x10,%edi
call   1060 <enqueue_tail@plt>
mov    %r14,%rdi
mov    $0x11,%esi
call   1030 <printf@plt>
mov    $0x11,%edi
call   1060 <enqueue_tail@plt>
mov    %r14,%rdi
mov    $0x12,%esi
call   1030 <printf@plt>
mov    $0x12,%edi
call   1060 <enqueue_tail@plt>
mov    %r14,%rdi
mov    $0x13,%esi
call   1030 <printf@plt>
mov    $0x13,%edi
call   1060 <enqueue_tail@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
mov    %r14,%rdi
xor    %esi,%esi
call   1030 <printf@plt>
xor    %edi,%edi
call   1040 <enqueue_head@plt>
mov    %r14,%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <enqueue_head@plt>
mov    %r14,%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
mov    $0x2,%edi
call   1040 <enqueue_head@plt>
mov    %r14,%rdi
mov    $0x3,%esi
call   1030 <printf@plt>
mov    $0x3,%edi
call   1040 <enqueue_head@plt>
mov    %r14,%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
mov    $0x4,%edi
call   1040 <enqueue_head@plt>
mov    %r14,%rdi
mov    $0x5,%esi
call   1030 <printf@plt>
mov    $0x5,%edi
call   1040 <enqueue_head@plt>
mov    %r14,%rdi
mov    $0x6,%esi
call   1030 <printf@plt>
mov    $0x6,%edi
call   1040 <enqueue_head@plt>
mov    %r14,%rdi
mov    $0x7,%esi
call   1030 <printf@plt>
mov    $0x7,%edi
call   1040 <enqueue_head@plt>
mov    %r14,%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
mov    $0x8,%edi
call   1040 <enqueue_head@plt>
mov    %r14,%rdi
mov    $0x9,%esi
call   1030 <printf@plt>
mov    $0x9,%edi
call   1040 <enqueue_head@plt>
mov    %r14,%rdi
mov    $0xa,%esi
call   1030 <printf@plt>
mov    $0xa,%edi
call   1040 <enqueue_head@plt>
mov    %r14,%rdi
mov    $0xb,%esi
call   1030 <printf@plt>
mov    $0xb,%edi
call   1040 <enqueue_head@plt>
mov    %r14,%rdi
mov    $0xc,%esi
call   1030 <printf@plt>
mov    $0xc,%edi
call   1040 <enqueue_head@plt>
mov    %r14,%rdi
mov    $0xd,%esi
call   1030 <printf@plt>
mov    $0xd,%edi
call   1040 <enqueue_head@plt>
mov    %r14,%rdi
mov    $0xe,%esi
call   1030 <printf@plt>
mov    $0xe,%edi
call   1040 <enqueue_head@plt>
mov    %r14,%rdi
mov    $0xf,%esi
call   1030 <printf@plt>
mov    $0xf,%edi
call   1040 <enqueue_head@plt>
mov    %r14,%rdi
mov    $0x10,%esi
call   1030 <printf@plt>
mov    $0x10,%edi
call   1040 <enqueue_head@plt>
mov    %r14,%rdi
mov    $0x11,%esi
call   1030 <printf@plt>
mov    $0x11,%edi
call   1040 <enqueue_head@plt>
mov    %r14,%rdi
mov    $0x12,%esi
call   1030 <printf@plt>
mov    $0x12,%edi
call   1040 <enqueue_head@plt>
mov    %r14,%rdi
mov    $0x13,%esi
call   1030 <printf@plt>
mov    $0x13,%edi
call   1040 <enqueue_head@plt>
xor    %eax,%eax
call   1050 <reverse_list@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1070 <dequeue_tail@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [18 x i8] c"enqueue tail: %d\0A\00"
@.str.1 = [18 x i8] c"dequeue tail: %d\0A\00"
@.str.2 = [18 x i8] c"enqueue head: %d\0A\00"
@.str.3 = [18 x i8] c"dequeue head: %d\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
br label %7
7: ; preds = %15, %2
%8 = load i32, i32* %6
%9 = icmp slt i32 %8, 20
br i1 %9, label %10, label %18
10: ; preds = %7
%11 = load i32, i32* %6
%12 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 %11)
%13 = load i32, i32* %6
%14 = call i32 @enqueue_tail(i32 %13)
br label %15
15: ; preds = %10
%16 = load i32, i32* %6
%17 = add nsw i32 %16, 1
store i32 %17, i32* %6
br label %7
18: ; preds = %7
store i32 0, i32* %6
br label %19
19: ; preds = %25, %18
%20 = load i32, i32* %6
%21 = icmp slt i32 %20, 20
br i1 %21, label %22, label %28
22: ; preds = %19
%23 = call i32 (...) @dequeue_tail()
%24 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %23)
br label %25
25: ; preds = %22
%26 = load i32, i32* %6
%27 = add nsw i32 %26, 1
store i32 %27, i32* %6
br label %19
28: ; preds = %19
store i32 0, i32* %6
br label %29
29: ; preds = %37, %28
%30 = load i32, i32* %6
%31 = icmp slt i32 %30, 20
br i1 %31, label %32, label %40
32: ; preds = %29
%33 = load i32, i32* %6
%34 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 %33)
%35 = load i32, i32* %6
%36 = call i32 @enqueue_head(i32 %35)
br label %37
37: ; preds = %32
%38 = load i32, i32* %6
%39 = add nsw i32 %38, 1
store i32 %39, i32* %6
br label %29
40: ; preds = %29
store i32 0, i32* %6
br label %41
41: ; preds = %47, %40
%42 = load i32, i32* %6
%43 = icmp slt i32 %42, 20
br i1 %43, label %44, label %50
44: ; preds = %41
%45 = call i32 (...) @dequeue_head()
%46 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i32 %45)
br label %47
47: ; preds = %44
%48 = load i32, i32* %6
%49 = add nsw i32 %48, 1
store i32 %49, i32* %6
br label %41
50: ; preds = %41
store i32 0, i32* %6
br label %51
51: ; preds = %59, %50
%52 = load i32, i32* %6
%53 = icmp slt i32 %52, 10
br i1 %53, label %54, label %62
54: ; preds = %51
%55 = load i32, i32* %6
%56 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 %55)
%57 = load i32, i32* %6
%58 = call i32 @enqueue_head(i32 %57)
br label %59
59: ; preds = %54
%60 = load i32, i32* %6
%61 = add nsw i32 %60, 1
store i32 %61, i32* %6
br label %51
62: ; preds = %51
store i32 10, i32* %6
br label %63
63: ; preds = %71, %62
%64 = load i32, i32* %6
%65 = icmp slt i32 %64, 20
br i1 %65, label %66, label %74
66: ; preds = %63
%67 = load i32, i32* %6
%68 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 %67)
%69 = load i32, i32* %6
%70 = call i32 @enqueue_tail(i32 %69)
br label %71
71: ; preds = %66
%72 = load i32, i32* %6
%73 = add nsw i32 %72, 1
store i32 %73, i32* %6
br label %63
74: ; preds = %63
store i32 0, i32* %6
br label %75
75: ; preds = %81, %74
%76 = load i32, i32* %6
%77 = icmp slt i32 %76, 20
br i1 %77, label %78, label %84
78: ; preds = %75
%79 = call i32 (...) @dequeue_tail()
%80 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %79)
br label %81
81: ; preds = %78
%82 = load i32, i32* %6
%83 = add nsw i32 %82, 1
store i32 %83, i32* %6
br label %75
84: ; preds = %75
store i32 0, i32* %6
br label %85
85: ; preds = %93, %84
%86 = load i32, i32* %6
%87 = icmp slt i32 %86, 20
br i1 %87, label %88, label %96
88: ; preds = %85
%89 = load i32, i32* %6
%90 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 %89)
%91 = load i32, i32* %6
%92 = call i32 @enqueue_head(i32 %91)
br label %93
93: ; preds = %88
%94 = load i32, i32* %6
%95 = add nsw i32 %94, 1
store i32 %95, i32* %6
br label %85
96: ; preds = %85
%97 = call i32 (...) @reverse_list()
store i32 0, i32* %6
br label %98
98: ; preds = %104, %96
%99 = load i32, i32* %6
%100 = icmp slt i32 %99, 20
br i1 %100, label %101, label %107
101: ; preds = %98
%102 = call i32 (...) @dequeue_tail()
%103 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %102)
br label %104
104: ; preds = %101
%105 = load i32, i32* %6
%106 = add nsw i32 %105, 1
store i32 %106, i32* %6
br label %98
107: ; preds = %98
ret i32 0
}

LLVM IR (-O2):
@.str = [18 x i8] c"enqueue tail: %d\0A\00"
@.str.1 = [18 x i8] c"dequeue tail: %d\0A\00"
@.str.2 = [18 x i8] c"enqueue head: %d\0A\00"
@.str.3 = [18 x i8] c"dequeue head: %d\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 0)
%4 = tail call i32 @enqueue_tail(i32 0)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 1)
%6 = tail call i32 @enqueue_tail(i32 1)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 2)
%8 = tail call i32 @enqueue_tail(i32 2)
%9 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 3)
%10 = tail call i32 @enqueue_tail(i32 3)
%11 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 4)
%12 = tail call i32 @enqueue_tail(i32 4)
%13 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 5)
%14 = tail call i32 @enqueue_tail(i32 5)
%15 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 6)
%16 = tail call i32 @enqueue_tail(i32 6)
%17 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 7)
%18 = tail call i32 @enqueue_tail(i32 7)
%19 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 8)
%20 = tail call i32 @enqueue_tail(i32 8)
%21 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 9)
%22 = tail call i32 @enqueue_tail(i32 9)
%23 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 10)
%24 = tail call i32 @enqueue_tail(i32 10)
%25 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 11)
%26 = tail call i32 @enqueue_tail(i32 11)
%27 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 12)
%28 = tail call i32 @enqueue_tail(i32 12)
%29 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 13)
%30 = tail call i32 @enqueue_tail(i32 13)
%31 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 14)
%32 = tail call i32 @enqueue_tail(i32 14)
%33 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 15)
%34 = tail call i32 @enqueue_tail(i32 15)
%35 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 16)
%36 = tail call i32 @enqueue_tail(i32 16)
%37 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 17)
%38 = tail call i32 @enqueue_tail(i32 17)
%39 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 18)
%40 = tail call i32 @enqueue_tail(i32 18)
%41 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 19)
%42 = tail call i32 @enqueue_tail(i32 19)
%43 = tail call i32 (...) @dequeue_tail()
%44 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %43)
%45 = tail call i32 (...) @dequeue_tail()
%46 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %45)
%47 = tail call i32 (...) @dequeue_tail()
%48 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %47)
%49 = tail call i32 (...) @dequeue_tail()
%50 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %49)
%51 = tail call i32 (...) @dequeue_tail()
%52 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %51)
%53 = tail call i32 (...) @dequeue_tail()
%54 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %53)
%55 = tail call i32 (...) @dequeue_tail()
%56 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %55)
%57 = tail call i32 (...) @dequeue_tail()
%58 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %57)
%59 = tail call i32 (...) @dequeue_tail()
%60 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %59)
%61 = tail call i32 (...) @dequeue_tail()
%62 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %61)
%63 = tail call i32 (...) @dequeue_tail()
%64 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %63)
%65 = tail call i32 (...) @dequeue_tail()
%66 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %65)
%67 = tail call i32 (...) @dequeue_tail()
%68 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %67)
%69 = tail call i32 (...) @dequeue_tail()
%70 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %69)
%71 = tail call i32 (...) @dequeue_tail()
%72 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %71)
%73 = tail call i32 (...) @dequeue_tail()
%74 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %73)
%75 = tail call i32 (...) @dequeue_tail()
%76 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %75)
%77 = tail call i32 (...) @dequeue_tail()
%78 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %77)
%79 = tail call i32 (...) @dequeue_tail()
%80 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %79)
%81 = tail call i32 (...) @dequeue_tail()
%82 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %81)
%83 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 0)
%84 = tail call i32 @enqueue_head(i32 0)
%85 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 1)
%86 = tail call i32 @enqueue_head(i32 1)
%87 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 2)
%88 = tail call i32 @enqueue_head(i32 2)
%89 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 3)
%90 = tail call i32 @enqueue_head(i32 3)
%91 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 4)
%92 = tail call i32 @enqueue_head(i32 4)
%93 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 5)
%94 = tail call i32 @enqueue_head(i32 5)
%95 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 6)
%96 = tail call i32 @enqueue_head(i32 6)
%97 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 7)
%98 = tail call i32 @enqueue_head(i32 7)
%99 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 8)
%100 = tail call i32 @enqueue_head(i32 8)
%101 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 9)
%102 = tail call i32 @enqueue_head(i32 9)
%103 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 10)
%104 = tail call i32 @enqueue_head(i32 10)
%105 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 11)
%106 = tail call i32 @enqueue_head(i32 11)
%107 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 12)
%108 = tail call i32 @enqueue_head(i32 12)
%109 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 13)
%110 = tail call i32 @enqueue_head(i32 13)
%111 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 14)
%112 = tail call i32 @enqueue_head(i32 14)
%113 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 15)
%114 = tail call i32 @enqueue_head(i32 15)
%115 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 16)
%116 = tail call i32 @enqueue_head(i32 16)
%117 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 17)
%118 = tail call i32 @enqueue_head(i32 17)
%119 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 18)
%120 = tail call i32 @enqueue_head(i32 18)
%121 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 19)
%122 = tail call i32 @enqueue_head(i32 19)
%123 = tail call i32 (...) @dequeue_head()
%124 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i32 %123)
%125 = tail call i32 (...) @dequeue_head()
%126 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i32 %125)
%127 = tail call i32 (...) @dequeue_head()
%128 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i32 %127)
%129 = tail call i32 (...) @dequeue_head()
%130 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i32 %129)
%131 = tail call i32 (...) @dequeue_head()
%132 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i32 %131)
%133 = tail call i32 (...) @dequeue_head()
%134 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i32 %133)
%135 = tail call i32 (...) @dequeue_head()
%136 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i32 %135)
%137 = tail call i32 (...) @dequeue_head()
%138 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i32 %137)
%139 = tail call i32 (...) @dequeue_head()
%140 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i32 %139)
%141 = tail call i32 (...) @dequeue_head()
%142 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i32 %141)
%143 = tail call i32 (...) @dequeue_head()
%144 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i32 %143)
%145 = tail call i32 (...) @dequeue_head()
%146 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i32 %145)
%147 = tail call i32 (...) @dequeue_head()
%148 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i32 %147)
%149 = tail call i32 (...) @dequeue_head()
%150 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i32 %149)
%151 = tail call i32 (...) @dequeue_head()
%152 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i32 %151)
%153 = tail call i32 (...) @dequeue_head()
%154 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i32 %153)
%155 = tail call i32 (...) @dequeue_head()
%156 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i32 %155)
%157 = tail call i32 (...) @dequeue_head()
%158 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i32 %157)
%159 = tail call i32 (...) @dequeue_head()
%160 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i32 %159)
%161 = tail call i32 (...) @dequeue_head()
%162 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i32 %161)
%163 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 0)
%164 = tail call i32 @enqueue_head(i32 0)
%165 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 1)
%166 = tail call i32 @enqueue_head(i32 1)
%167 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 2)
%168 = tail call i32 @enqueue_head(i32 2)
%169 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 3)
%170 = tail call i32 @enqueue_head(i32 3)
%171 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 4)
%172 = tail call i32 @enqueue_head(i32 4)
%173 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 5)
%174 = tail call i32 @enqueue_head(i32 5)
%175 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 6)
%176 = tail call i32 @enqueue_head(i32 6)
%177 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 7)
%178 = tail call i32 @enqueue_head(i32 7)
%179 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 8)
%180 = tail call i32 @enqueue_head(i32 8)
%181 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 9)
%182 = tail call i32 @enqueue_head(i32 9)
%183 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 10)
%184 = tail call i32 @enqueue_tail(i32 10)
%185 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 11)
%186 = tail call i32 @enqueue_tail(i32 11)
%187 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 12)
%188 = tail call i32 @enqueue_tail(i32 12)
%189 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 13)
%190 = tail call i32 @enqueue_tail(i32 13)
%191 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 14)
%192 = tail call i32 @enqueue_tail(i32 14)
%193 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 15)
%194 = tail call i32 @enqueue_tail(i32 15)
%195 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 16)
%196 = tail call i32 @enqueue_tail(i32 16)
%197 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 17)
%198 = tail call i32 @enqueue_tail(i32 17)
%199 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 18)
%200 = tail call i32 @enqueue_tail(i32 18)
%201 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 19)
%202 = tail call i32 @enqueue_tail(i32 19)
%203 = tail call i32 (...) @dequeue_tail()
%204 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %203)
%205 = tail call i32 (...) @dequeue_tail()
%206 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %205)
%207 = tail call i32 (...) @dequeue_tail()
%208 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %207)
%209 = tail call i32 (...) @dequeue_tail()
%210 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %209)
%211 = tail call i32 (...) @dequeue_tail()
%212 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %211)
%213 = tail call i32 (...) @dequeue_tail()
%214 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %213)
%215 = tail call i32 (...) @dequeue_tail()
%216 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %215)
%217 = tail call i32 (...) @dequeue_tail()
%218 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %217)
%219 = tail call i32 (...) @dequeue_tail()
%220 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %219)
%221 = tail call i32 (...) @dequeue_tail()
%222 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %221)
%223 = tail call i32 (...) @dequeue_tail()
%224 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %223)
%225 = tail call i32 (...) @dequeue_tail()
%226 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %225)
%227 = tail call i32 (...) @dequeue_tail()
%228 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %227)
%229 = tail call i32 (...) @dequeue_tail()
%230 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %229)
%231 = tail call i32 (...) @dequeue_tail()
%232 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %231)
%233 = tail call i32 (...) @dequeue_tail()
%234 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %233)
%235 = tail call i32 (...) @dequeue_tail()
%236 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %235)
%237 = tail call i32 (...) @dequeue_tail()
%238 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %237)
%239 = tail call i32 (...) @dequeue_tail()
%240 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %239)
%241 = tail call i32 (...) @dequeue_tail()
%242 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %241)
%243 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 0)
%244 = tail call i32 @enqueue_head(i32 0)
%245 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 1)
%246 = tail call i32 @enqueue_head(i32 1)
%247 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 2)
%248 = tail call i32 @enqueue_head(i32 2)
%249 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 3)
%250 = tail call i32 @enqueue_head(i32 3)
%251 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 4)
%252 = tail call i32 @enqueue_head(i32 4)
%253 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 5)
%254 = tail call i32 @enqueue_head(i32 5)
%255 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 6)
%256 = tail call i32 @enqueue_head(i32 6)
%257 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 7)
%258 = tail call i32 @enqueue_head(i32 7)
%259 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 8)
%260 = tail call i32 @enqueue_head(i32 8)
%261 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 9)
%262 = tail call i32 @enqueue_head(i32 9)
%263 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 10)
%264 = tail call i32 @enqueue_head(i32 10)
%265 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 11)
%266 = tail call i32 @enqueue_head(i32 11)
%267 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 12)
%268 = tail call i32 @enqueue_head(i32 12)
%269 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 13)
%270 = tail call i32 @enqueue_head(i32 13)
%271 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 14)
%272 = tail call i32 @enqueue_head(i32 14)
%273 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 15)
%274 = tail call i32 @enqueue_head(i32 15)
%275 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 16)
%276 = tail call i32 @enqueue_head(i32 16)
%277 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 17)
%278 = tail call i32 @enqueue_head(i32 17)
%279 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 18)
%280 = tail call i32 @enqueue_head(i32 18)
%281 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 19)
%282 = tail call i32 @enqueue_head(i32 19)
%283 = tail call i32 (...) @reverse_list()
%284 = tail call i32 (...) @dequeue_tail()
%285 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %284)
%286 = tail call i32 (...) @dequeue_tail()
%287 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %286)
%288 = tail call i32 (...) @dequeue_tail()
%289 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %288)
%290 = tail call i32 (...) @dequeue_tail()
%291 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %290)
%292 = tail call i32 (...) @dequeue_tail()
%293 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %292)
%294 = tail call i32 (...) @dequeue_tail()
%295 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %294)
%296 = tail call i32 (...) @dequeue_tail()
%297 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %296)
%298 = tail call i32 (...) @dequeue_tail()
%299 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %298)
%300 = tail call i32 (...) @dequeue_tail()
%301 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %300)
%302 = tail call i32 (...) @dequeue_tail()
%303 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %302)
%304 = tail call i32 (...) @dequeue_tail()
%305 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %304)
%306 = tail call i32 (...) @dequeue_tail()
%307 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %306)
%308 = tail call i32 (...) @dequeue_tail()
%309 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %308)
%310 = tail call i32 (...) @dequeue_tail()
%311 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %310)
%312 = tail call i32 (...) @dequeue_tail()
%313 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %312)
%314 = tail call i32 (...) @dequeue_tail()
%315 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %314)
%316 = tail call i32 (...) @dequeue_tail()
%317 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %316)
%318 = tail call i32 (...) @dequeue_tail()
%319 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %318)
%320 = tail call i32 (...) @dequeue_tail()
%321 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %320)
%322 = tail call i32 (...) @dequeue_tail()
%323 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %322)
ret i32 0
}