#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*/ llist_add(int *);
int /*<<< orphan*/ llist_add_on_place(int *, int *);
int /*<<< orphan*/ llist_clear();
int llist_excist();
int llist_nrItems();
int /*<<< orphan*/ llist_remove(int);
int /*<<< orphan*/ llist_show();
int /*<<< orphan*/ printf(char *, ...);
int main() {
  int a = 42;
  int b = 1337;
  int c = 214;
  int d = 1234;
  int e = 5005;
  int f = 69;
  int place = 3;
  printf("---------------\n|** Excist ***|\n---------------\n");
  printf("%d\n", llist_excist());
  printf("---------------\n|*** Begin ***|\n---------------\n");
  llist_add(&a);
  llist_add(&b);
  llist_add(&c);
  llist_add(&d);
  llist_add(&e);
  printf("---------------\n|** Excist ***|\n---------------\n");
  printf("%d\n", llist_excist());
  printf("---------------\n|*No of items*|\n---------------\n");
  printf("%d\n", llist_nrItems());
  printf("---------------\n|**Print func*|\n---------------\n");
  llist_show();
  printf("---------------\n|*Add on place|\n---------------\n");
  llist_add_on_place(&place, &f);
  printf("---------------\n|**Print func*|\n---------------\n");
  llist_show();
  printf("---------------\n|**Delet func*|\n---------------\n");
  llist_remove(42);
  llist_show();
  printf("---------------\n|** Excist ***|\n---------------\n");
  printf("%d\n", llist_excist());
  printf("---------------\n|**Clear func*|\n---------------\n");
  llist_clear();
  printf("---------------\n|** Excist ***|\n---------------\n");
  printf("%d\n", llist_excist());
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x2a,-0x8(%rbp)
movl   $0x539,-0xc(%rbp)
movl   $0xd6,-0x10(%rbp)
movl   $0x4d2,-0x14(%rbp)
movl   $0x138d,-0x18(%rbp)
movl   $0x45,-0x1c(%rbp)
movl   $0x3,-0x20(%rbp)
lea    0xe39(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   1060 <llist_excist@plt>
mov    %eax,%esi
lea    0xe53(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xe49(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x8(%rbp),%rdi
call   1090 <llist_add@plt>
lea    -0xc(%rbp),%rdi
call   1090 <llist_add@plt>
lea    -0x10(%rbp),%rdi
call   1090 <llist_add@plt>
lea    -0x14(%rbp),%rdi
call   1090 <llist_add@plt>
lea    -0x18(%rbp),%rdi
call   1090 <llist_add@plt>
lea    0xdd9(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   1060 <llist_excist@plt>
mov    %eax,%esi
lea    0xdf3(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xe1a(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   1040 <llist_nrItems@plt>
mov    %eax,%esi
lea    0xdce(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xe26(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   10a0 <llist_show@plt>
lea    0xe42(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x20(%rbp),%rdi
lea    -0x1c(%rbp),%rsi
call   1080 <llist_add_on_place@plt>
lea    0xdf6(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   10a0 <llist_show@plt>
lea    0xe43(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x2a,%edi
call   1070 <llist_remove@plt>
mov    $0x0,%al
call   10a0 <llist_show@plt>
lea    0xd2b(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   1060 <llist_excist@plt>
mov    %eax,%esi
lea    0xd45(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xe30(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   1030 <llist_clear@plt>
lea    0xcf1(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   1060 <llist_excist@plt>
mov    %eax,%esi
lea    0xd0b(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x20,%rsp
movl   $0x2a,0x1c(%rsp)
movl   $0x539,0x18(%rsp)
movl   $0xd6,0x14(%rsp)
movl   $0x4d2,0x10(%rsp)
movl   $0x138d,0xc(%rsp)
movl   $0x45,0x8(%rsp)
movl   $0x3,0x4(%rsp)
lea    0xf4c(%rip),%r14
mov    %r14,%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1070 <llist_excist@plt>
lea    0xe12(%rip),%r15
mov    %r15,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xe03(%rip),%rdi
call   1040 <puts@plt>
lea    0x1c(%rsp),%rdi
call   10a0 <llist_add@plt>
lea    0x18(%rsp),%rdi
call   10a0 <llist_add@plt>
lea    0x14(%rsp),%rdi
call   10a0 <llist_add@plt>
lea    0x10(%rsp),%rdi
call   10a0 <llist_add@plt>
lea    0xc(%rsp),%rdi
call   10a0 <llist_add@plt>
mov    %r14,%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1070 <llist_excist@plt>
mov    %r15,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xdda(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1050 <llist_nrItems@plt>
mov    %r15,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xe1b(%rip),%rbx
mov    %rbx,%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   10b0 <llist_show@plt>
lea    0xdd5(%rip),%rdi
call   1040 <puts@plt>
lea    0x4(%rsp),%rdi
lea    0x8(%rsp),%rsi
call   1090 <llist_add_on_place@plt>
mov    %rbx,%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   10b0 <llist_show@plt>
lea    0xe0b(%rip),%rdi
call   1040 <puts@plt>
mov    $0x2a,%edi
call   1080 <llist_remove@plt>
xor    %eax,%eax
call   10b0 <llist_show@plt>
mov    %r14,%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1070 <llist_excist@plt>
mov    %r15,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xe03(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1030 <llist_clear@plt>
mov    %r14,%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1070 <llist_excist@plt>
mov    %r15,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [49 x i8] c"---------------\0A|** Excist ***|\0A---------------\0A\00"
@.str.1 = [4 x i8] c"%d\0A\00"
@.str.2 = [49 x i8] c"---------------\0A|*** Begin ***|\0A---------------\0A\00"
@.str.3 = [49 x i8] c"---------------\0A|*No of items*|\0A---------------\0A\00"
@.str.4 = [49 x i8] c"---------------\0A|**Print func*|\0A---------------\0A\00"
@.str.5 = [49 x i8] c"---------------\0A|*Add on place|\0A---------------\0A\00"
@.str.6 = [49 x i8] c"---------------\0A|**Delet func*|\0A---------------\0A\00"
@.str.7 = [49 x i8] c"---------------\0A|**Clear func*|\0A---------------\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 0, i32* %1
store i32 42, i32* %2
store i32 1337, i32* %3
store i32 214, i32* %4
store i32 1234, i32* %5
store i32 5005, i32* %6
store i32 69, i32* %7
store i32 3, i32* %8
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0))
%10 = call i32 (...) @llist_excist()
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %10)
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.2, i64 0, i64 0))
%13 = call i32 @llist_add(i32* %2)
%14 = call i32 @llist_add(i32* %3)
%15 = call i32 @llist_add(i32* %4)
%16 = call i32 @llist_add(i32* %5)
%17 = call i32 @llist_add(i32* %6)
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0))
%19 = call i32 (...) @llist_excist()
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %19)
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.3, i64 0, i64 0))
%22 = call i32 (...) @llist_nrItems()
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %22)
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.4, i64 0, i64 0))
%25 = call i32 (...) @llist_show()
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.5, i64 0, i64 0))
%27 = call i32 @llist_add_on_place(i32* %8, i32* %7)
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.4, i64 0, i64 0))
%29 = call i32 (...) @llist_show()
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.6, i64 0, i64 0))
%31 = call i32 @llist_remove(i32 42)
%32 = call i32 (...) @llist_show()
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0))
%34 = call i32 (...) @llist_excist()
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %34)
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.7, i64 0, i64 0))
%37 = call i32 (...) @llist_clear()
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0))
%39 = call i32 (...) @llist_excist()
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %39)
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [4 x i8] c"%d\0A\00"
@str.8 = [48 x i8] c"---------------\0A|*** Begin ***|\0A---------------\00"
@str.10 = [48 x i8] c"---------------\0A|*No of items*|\0A---------------\00"
@str.12 = [48 x i8] c"---------------\0A|*Add on place|\0A---------------\00"
@str.13 = [48 x i8] c"---------------\0A|**Print func*|\0A---------------\00"
@str.14 = [48 x i8] c"---------------\0A|**Delet func*|\0A---------------\00"
@str.16 = [48 x i8] c"---------------\0A|**Clear func*|\0A---------------\00"
@str.17 = [48 x i8] c"---------------\0A|** Excist ***|\0A---------------\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = bitcast i32* %1 to i8*
store i32 42, i32* %1
%9 = bitcast i32* %2 to i8*
store i32 1337, i32* %2
%10 = bitcast i32* %3 to i8*
store i32 214, i32* %3
%11 = bitcast i32* %4 to i8*
store i32 1234, i32* %4
%12 = bitcast i32* %5 to i8*
store i32 5005, i32* %5
%13 = bitcast i32* %6 to i8*
store i32 69, i32* %6
%14 = bitcast i32* %7 to i8*
store i32 3, i32* %7
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.17, i64 0, i64 0))
%16 = tail call i32 (...) @llist_excist()
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %16)
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.8, i64 0, i64 0))
%19 = call i32 @llist_add(i32* %1)
%20 = call i32 @llist_add(i32* %2)
%21 = call i32 @llist_add(i32* %3)
%22 = call i32 @llist_add(i32* %4)
%23 = call i32 @llist_add(i32* %5)
%24 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.17, i64 0, i64 0))
%25 = call i32 (...) @llist_excist()
%26 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %25)
%27 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.10, i64 0, i64 0))
%28 = call i32 (...) @llist_nrItems()
%29 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %28)
%30 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.13, i64 0, i64 0))
%31 = call i32 (...) @llist_show()
%32 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.12, i64 0, i64 0))
%33 = call i32 @llist_add_on_place(i32* %7, i32* %6)
%34 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.13, i64 0, i64 0))
%35 = call i32 (...) @llist_show()
%36 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.14, i64 0, i64 0))
%37 = call i32 @llist_remove(i32 42)
%38 = call i32 (...) @llist_show()
%39 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.17, i64 0, i64 0))
%40 = call i32 (...) @llist_excist()
%41 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %40)
%42 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.16, i64 0, i64 0))
%43 = call i32 (...) @llist_clear()
%44 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.17, i64 0, i64 0))
%45 = call i32 (...) @llist_excist()
%46 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %45)
ret i32 0
}