#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 */
struct node {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ insert(struct node **, int);
int /*<<< orphan*/ printer(struct node *);
int /*<<< orphan*/ removedup(struct node **);
int main(void) {
  struct node *head = NULL;
  insert(&head, 1);
  insert(&head, 1);
  insert(&head, 1);
  insert(&head, 1);
  insert(&head, 1);
  insert(&head, 1);
  insert(&head, 1);
  insert(&head, 1);
  insert(&head, 1);
  insert(&head, 1);
  insert(&head, 1);
  insert(&head, 2);
  insert(&head, 3);
  insert(&head, 4);
  insert(&head, 5);
  insert(&head, 6);
  insert(&head, 7);
  insert(&head, 7);
  printer(head);
  removedup(&head);
  printer(head);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movq   $0x0,-0x10(%rbp)
lea    -0x10(%rbp),%rdi
mov    $0x1,%esi
call   1040 <insert@plt>
lea    -0x10(%rbp),%rdi
mov    $0x1,%esi
call   1040 <insert@plt>
lea    -0x10(%rbp),%rdi
mov    $0x1,%esi
call   1040 <insert@plt>
lea    -0x10(%rbp),%rdi
mov    $0x1,%esi
call   1040 <insert@plt>
lea    -0x10(%rbp),%rdi
mov    $0x1,%esi
call   1040 <insert@plt>
lea    -0x10(%rbp),%rdi
mov    $0x1,%esi
call   1040 <insert@plt>
lea    -0x10(%rbp),%rdi
mov    $0x1,%esi
call   1040 <insert@plt>
lea    -0x10(%rbp),%rdi
mov    $0x1,%esi
call   1040 <insert@plt>
lea    -0x10(%rbp),%rdi
mov    $0x1,%esi
call   1040 <insert@plt>
lea    -0x10(%rbp),%rdi
mov    $0x1,%esi
call   1040 <insert@plt>
lea    -0x10(%rbp),%rdi
mov    $0x1,%esi
call   1040 <insert@plt>
lea    -0x10(%rbp),%rdi
mov    $0x2,%esi
call   1040 <insert@plt>
lea    -0x10(%rbp),%rdi
mov    $0x3,%esi
call   1040 <insert@plt>
lea    -0x10(%rbp),%rdi
mov    $0x4,%esi
call   1040 <insert@plt>
lea    -0x10(%rbp),%rdi
mov    $0x5,%esi
call   1040 <insert@plt>
lea    -0x10(%rbp),%rdi
mov    $0x6,%esi
call   1040 <insert@plt>
lea    -0x10(%rbp),%rdi
mov    $0x7,%esi
call   1040 <insert@plt>
lea    -0x10(%rbp),%rdi
mov    $0x7,%esi
call   1040 <insert@plt>
mov    -0x10(%rbp),%rdi
call   1050 <printer@plt>
lea    -0x10(%rbp),%rdi
call   1030 <removedup@plt>
mov    -0x10(%rbp),%rdi
call   1050 <printer@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
movq   $0x0,0x8(%rsp)
lea    0x8(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x1,%esi
call   1040 <insert@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
call   1040 <insert@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
call   1040 <insert@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
call   1040 <insert@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
call   1040 <insert@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
call   1040 <insert@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
call   1040 <insert@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
call   1040 <insert@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
call   1040 <insert@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
call   1040 <insert@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
call   1040 <insert@plt>
mov    %rbx,%rdi
mov    $0x2,%esi
call   1040 <insert@plt>
mov    %rbx,%rdi
mov    $0x3,%esi
call   1040 <insert@plt>
mov    %rbx,%rdi
mov    $0x4,%esi
call   1040 <insert@plt>
mov    %rbx,%rdi
mov    $0x5,%esi
call   1040 <insert@plt>
mov    %rbx,%rdi
mov    $0x6,%esi
call   1040 <insert@plt>
mov    %rbx,%rdi
mov    $0x7,%esi
call   1040 <insert@plt>
mov    %rbx,%rdi
mov    $0x7,%esi
call   1040 <insert@plt>
mov    0x8(%rsp),%rdi
call   1050 <printer@plt>
mov    %rbx,%rdi
call   1030 <removedup@plt>
mov    0x8(%rsp),%rdi
call   1050 <printer@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
%struct.node = type { i32 }
define i32 @main() {
%1 = alloca i32
%2 = alloca %struct.node*
store i32 0, i32* %1
store %struct.node* null, %struct.node** %2
%3 = call i32 @insert(%struct.node** %2, i32 1)
%4 = call i32 @insert(%struct.node** %2, i32 1)
%5 = call i32 @insert(%struct.node** %2, i32 1)
%6 = call i32 @insert(%struct.node** %2, i32 1)
%7 = call i32 @insert(%struct.node** %2, i32 1)
%8 = call i32 @insert(%struct.node** %2, i32 1)
%9 = call i32 @insert(%struct.node** %2, i32 1)
%10 = call i32 @insert(%struct.node** %2, i32 1)
%11 = call i32 @insert(%struct.node** %2, i32 1)
%12 = call i32 @insert(%struct.node** %2, i32 1)
%13 = call i32 @insert(%struct.node** %2, i32 1)
%14 = call i32 @insert(%struct.node** %2, i32 2)
%15 = call i32 @insert(%struct.node** %2, i32 3)
%16 = call i32 @insert(%struct.node** %2, i32 4)
%17 = call i32 @insert(%struct.node** %2, i32 5)
%18 = call i32 @insert(%struct.node** %2, i32 6)
%19 = call i32 @insert(%struct.node** %2, i32 7)
%20 = call i32 @insert(%struct.node** %2, i32 7)
%21 = load %struct.node*, %struct.node** %2
%22 = call i32 @printer(%struct.node* %21)
%23 = call i32 @removedup(%struct.node** %2)
%24 = load %struct.node*, %struct.node** %2
%25 = call i32 @printer(%struct.node* %24)
ret i32 0
}

LLVM IR (-O2):
%struct.node = type { i32 }
define i32 @main() {
%1 = alloca %struct.node*
%2 = bitcast %struct.node** %1 to i8*
store %struct.node* null, %struct.node** %1
%3 = call i32 @insert(%struct.node** %1, i32 1)
%4 = call i32 @insert(%struct.node** %1, i32 1)
%5 = call i32 @insert(%struct.node** %1, i32 1)
%6 = call i32 @insert(%struct.node** %1, i32 1)
%7 = call i32 @insert(%struct.node** %1, i32 1)
%8 = call i32 @insert(%struct.node** %1, i32 1)
%9 = call i32 @insert(%struct.node** %1, i32 1)
%10 = call i32 @insert(%struct.node** %1, i32 1)
%11 = call i32 @insert(%struct.node** %1, i32 1)
%12 = call i32 @insert(%struct.node** %1, i32 1)
%13 = call i32 @insert(%struct.node** %1, i32 1)
%14 = call i32 @insert(%struct.node** %1, i32 2)
%15 = call i32 @insert(%struct.node** %1, i32 3)
%16 = call i32 @insert(%struct.node** %1, i32 4)
%17 = call i32 @insert(%struct.node** %1, i32 5)
%18 = call i32 @insert(%struct.node** %1, i32 6)
%19 = call i32 @insert(%struct.node** %1, i32 7)
%20 = call i32 @insert(%struct.node** %1, i32 7)
%21 = load %struct.node*, %struct.node** %1
%22 = call i32 @printer(%struct.node* %21)
%23 = call i32 @removedup(%struct.node** %1)
%24 = load %struct.node*, %struct.node** %1
%25 = call i32 @printer(%struct.node* %24)
ret i32 0
}