#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*/ delete (int);
int /*<<< orphan*/ insert_after(int, int);
int /*<<< orphan*/ insert_before(int, int);
int /*<<< orphan*/ insert_end(int);
int /*<<< orphan*/ insert_first(int);
int /*<<< orphan*/ print();
int /*<<< orphan*/ print_r();
void main() {
  print();
  print_r();
  insert_first(3);
  print();
  print_r();
  insert_first(1);
  print();
  print_r();
  insert_after(1, 2);
  print();
  print_r();
  insert_after(3, 5);
  print();
  print_r();
  insert_before(5, 4);
  print();
  print_r();
  insert_end(6);
  print();
  print_r();
  delete (1);
  print();
  print_r();
  delete (6);
  print();
  print_r();
  delete (4);
  print();
  print_r();
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1050 <print@plt>
mov    $0x0,%al
call   1060 <print_r@plt>
mov    $0x3,%edi
call   1080 <insert_first@plt>
mov    $0x0,%al
call   1050 <print@plt>
mov    $0x0,%al
call   1060 <print_r@plt>
mov    $0x1,%edi
call   1080 <insert_first@plt>
mov    $0x0,%al
call   1050 <print@plt>
mov    $0x0,%al
call   1060 <print_r@plt>
mov    $0x1,%edi
mov    $0x2,%esi
call   1090 <insert_after@plt>
mov    $0x0,%al
call   1050 <print@plt>
mov    $0x0,%al
call   1060 <print_r@plt>
mov    $0x3,%edi
mov    $0x5,%esi
call   1090 <insert_after@plt>
mov    $0x0,%al
call   1050 <print@plt>
mov    $0x0,%al
call   1060 <print_r@plt>
mov    $0x5,%edi
mov    $0x4,%esi
call   1040 <insert_before@plt>
mov    $0x0,%al
call   1050 <print@plt>
mov    $0x0,%al
call   1060 <print_r@plt>
mov    $0x6,%edi
call   1030 <insert_end@plt>
mov    $0x0,%al
call   1050 <print@plt>
mov    $0x0,%al
call   1060 <print_r@plt>
mov    $0x1,%edi
call   1070 <delete@plt>
mov    $0x0,%al
call   1050 <print@plt>
mov    $0x0,%al
call   1060 <print_r@plt>
mov    $0x6,%edi
call   1070 <delete@plt>
mov    $0x0,%al
call   1050 <print@plt>
mov    $0x0,%al
call   1060 <print_r@plt>
mov    $0x4,%edi
call   1070 <delete@plt>
mov    $0x0,%al
call   1050 <print@plt>
mov    $0x0,%al
call   1060 <print_r@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1050 <print@plt>
xor    %eax,%eax
call   1060 <print_r@plt>
mov    $0x3,%edi
call   1080 <insert_first@plt>
xor    %eax,%eax
call   1050 <print@plt>
xor    %eax,%eax
call   1060 <print_r@plt>
mov    $0x1,%edi
call   1080 <insert_first@plt>
xor    %eax,%eax
call   1050 <print@plt>
xor    %eax,%eax
call   1060 <print_r@plt>
mov    $0x1,%edi
mov    $0x2,%esi
call   1090 <insert_after@plt>
xor    %eax,%eax
call   1050 <print@plt>
xor    %eax,%eax
call   1060 <print_r@plt>
mov    $0x3,%edi
mov    $0x5,%esi
call   1090 <insert_after@plt>
xor    %eax,%eax
call   1050 <print@plt>
xor    %eax,%eax
call   1060 <print_r@plt>
mov    $0x5,%edi
mov    $0x4,%esi
call   1040 <insert_before@plt>
xor    %eax,%eax
call   1050 <print@plt>
xor    %eax,%eax
call   1060 <print_r@plt>
mov    $0x6,%edi
call   1030 <insert_end@plt>
xor    %eax,%eax
call   1050 <print@plt>
xor    %eax,%eax
call   1060 <print_r@plt>
mov    $0x1,%edi
call   1070 <delete@plt>
xor    %eax,%eax
call   1050 <print@plt>
xor    %eax,%eax
call   1060 <print_r@plt>
mov    $0x6,%edi
call   1070 <delete@plt>
xor    %eax,%eax
call   1050 <print@plt>
xor    %eax,%eax
call   1060 <print_r@plt>
mov    $0x4,%edi
call   1070 <delete@plt>
xor    %eax,%eax
call   1050 <print@plt>
xor    %eax,%eax
pop    %rcx
jmp    1060 <print_r@plt>

LLVM IR (-O0):
define void @main() {
%1 = call i32 (...) @print()
%2 = call i32 (...) @print_r()
%3 = call i32 @insert_first(i32 3)
%4 = call i32 (...) @print()
%5 = call i32 (...) @print_r()
%6 = call i32 @insert_first(i32 1)
%7 = call i32 (...) @print()
%8 = call i32 (...) @print_r()
%9 = call i32 @insert_after(i32 1, i32 2)
%10 = call i32 (...) @print()
%11 = call i32 (...) @print_r()
%12 = call i32 @insert_after(i32 3, i32 5)
%13 = call i32 (...) @print()
%14 = call i32 (...) @print_r()
%15 = call i32 @insert_before(i32 5, i32 4)
%16 = call i32 (...) @print()
%17 = call i32 (...) @print_r()
%18 = call i32 @insert_end(i32 6)
%19 = call i32 (...) @print()
%20 = call i32 (...) @print_r()
%21 = call i32 @delete(i32 1)
%22 = call i32 (...) @print()
%23 = call i32 (...) @print_r()
%24 = call i32 @delete(i32 6)
%25 = call i32 (...) @print()
%26 = call i32 (...) @print_r()
%27 = call i32 @delete(i32 4)
%28 = call i32 (...) @print()
%29 = call i32 (...) @print_r()
ret void
}

LLVM IR (-O2):
define void @main() {
%1 = tail call i32 (...) @print()
%2 = tail call i32 (...) @print_r()
%3 = tail call i32 @insert_first(i32 3)
%4 = tail call i32 (...) @print()
%5 = tail call i32 (...) @print_r()
%6 = tail call i32 @insert_first(i32 1)
%7 = tail call i32 (...) @print()
%8 = tail call i32 (...) @print_r()
%9 = tail call i32 @insert_after(i32 1, i32 2)
%10 = tail call i32 (...) @print()
%11 = tail call i32 (...) @print_r()
%12 = tail call i32 @insert_after(i32 3, i32 5)
%13 = tail call i32 (...) @print()
%14 = tail call i32 (...) @print_r()
%15 = tail call i32 @insert_before(i32 5, i32 4)
%16 = tail call i32 (...) @print()
%17 = tail call i32 (...) @print_r()
%18 = tail call i32 @insert_end(i32 6)
%19 = tail call i32 (...) @print()
%20 = tail call i32 (...) @print_r()
%21 = tail call i32 @delete(i32 1)
%22 = tail call i32 (...) @print()
%23 = tail call i32 (...) @print_r()
%24 = tail call i32 @delete(i32 6)
%25 = tail call i32 (...) @print()
%26 = tail call i32 (...) @print_r()
%27 = tail call i32 @delete(i32 4)
%28 = tail call i32 (...) @print()
%29 = tail call i32 (...) @print_r()
ret void
}