#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 list {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ assert(int /*<<< orphan*/);
int /*<<< orphan*/ free(int *);
int /*<<< orphan*/ list_append_list(struct list *, struct list *);
struct list *list_create();
int /*<<< orphan*/ list_destroy(struct list *);
int /*<<< orphan*/ list_pop(struct list *);
int /*<<< orphan*/ list_purge(struct list *);
int /*<<< orphan*/ list_push(struct list *, int *);
int /*<<< orphan*/ list_shift(struct list *);
int list_size(struct list *);
int /*<<< orphan*/ list_unshift(struct list *, int *);
scalar_t__ malloc(int);
int /*<<< orphan*/ print_list(struct list *);
int /*<<< orphan*/ printf(char *, int);
void test_list(void) {
  struct list *l = list_create();
  struct list *l2 = list_create();
  int *array = (int *)malloc(sizeof(int) * 100);
  int i;
  assert(array != NULL);
  for (i = 0; i < 100; i++)
    array[i] = i * 2;
  printf("Size: %u\n", list_size(l));
  list_push(l, array);
  list_push(l, array + 1);
  list_push(l, array + 2);
  list_unshift(l, array + 3);
  list_unshift(l, array + 4);
  list_unshift(l, array + 5);
  for (i = 0; i < 100; i++)
    list_push(l2, array + i);
  printf("Size l1: %u\n", list_size(l));
  print_list(l);
  printf("Size l2: %u\n", list_size(l2));
  print_list(l2);
  list_append_list(l, l2);
  printf("Size l1: %u\n", list_size(l));
  print_list(l);
  (void)list_pop(l);
  (void)list_shift(l);
  print_list(l);
  printf("Size: %u\n", list_size(l));
  list_purge(l);
  printf("Size: %u\n", list_size(l));
  list_destroy(l);
  list_destroy(l2);
  free(array);
}


x86 assembly (clang, -O0):
<test_list>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    $0x0,%al
call   10a0 <list_create@plt>
mov    %rax,-0x8(%rbp)
mov    $0x0,%al
call   10a0 <list_create@plt>
mov    %rax,-0x10(%rbp)
mov    $0x190,%edi
call   10e0 <malloc@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   10d0 <assert@plt>
movl   $0x0,-0x1c(%rbp)
cmpl   $0x64,-0x1c(%rbp)
jge    124e <test_list+0x6e>
mov    -0x1c(%rbp),%edx
shl    $0x1,%edx
mov    -0x18(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1225 <test_list+0x45>
mov    -0x8(%rbp),%rdi
call   10b0 <list_size@plt>
mov    %eax,%esi
lea    0xda0(%rip),%rdi
call   1090 <printf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   10f0 <list_push@plt>
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rsi
add    $0x4,%rsi
call   10f0 <list_push@plt>
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rsi
add    $0x8,%rsi
call   10f0 <list_push@plt>
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rsi
add    $0xc,%rsi
call   1100 <list_unshift@plt>
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rsi
add    $0x10,%rsi
call   1100 <list_unshift@plt>
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rsi
add    $0x14,%rsi
call   1100 <list_unshift@plt>
movl   $0x0,-0x1c(%rbp)
cmpl   $0x64,-0x1c(%rbp)
jge    12fe <test_list+0x11e>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
movslq -0x1c(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rsi
call   10f0 <list_push@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    12ce <test_list+0xee>
mov    -0x8(%rbp),%rdi
call   10b0 <list_size@plt>
mov    %eax,%esi
lea    0xcfa(%rip),%rdi
call   1090 <printf@plt>
mov    -0x8(%rbp),%rdi
call   1060 <print_list@plt>
mov    -0x10(%rbp),%rdi
call   10b0 <list_size@plt>
mov    %eax,%esi
lea    0xce7(%rip),%rdi
call   1090 <printf@plt>
mov    -0x10(%rbp),%rdi
call   1060 <print_list@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1070 <list_append_list@plt>
mov    -0x8(%rbp),%rdi
call   10b0 <list_size@plt>
mov    %eax,%esi
lea    0xcad(%rip),%rdi
call   1090 <printf@plt>
mov    -0x8(%rbp),%rdi
call   1060 <print_list@plt>
mov    -0x8(%rbp),%rdi
call   1040 <list_pop@plt>
mov    -0x8(%rbp),%rdi
call   1050 <list_shift@plt>
mov    -0x8(%rbp),%rdi
call   1060 <print_list@plt>
mov    -0x8(%rbp),%rdi
call   10b0 <list_size@plt>
mov    %eax,%esi
lea    0xc68(%rip),%rdi
call   1090 <printf@plt>
mov    -0x8(%rbp),%rdi
call   1080 <list_purge@plt>
mov    -0x8(%rbp),%rdi
call   10b0 <list_size@plt>
mov    %eax,%esi
lea    0xc48(%rip),%rdi
call   1090 <printf@plt>
mov    -0x8(%rbp),%rdi
call   10c0 <list_destroy@plt>
mov    -0x10(%rbp),%rdi
call   10c0 <list_destroy@plt>
mov    -0x18(%rbp),%rdi
call   1030 <free@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_list>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
xor    %ebx,%ebx
xor    %eax,%eax
call   10a0 <list_create@plt>
mov    %rax,%r14
xor    %eax,%eax
call   10a0 <list_create@plt>
mov    %rax,%r15
mov    $0x190,%edi
call   10e0 <malloc@plt>
mov    %rax,%r13
xor    %edi,%edi
test   %rax,%rax
setne  %dil
call   10d0 <assert@plt>
movaps 0xddf(%rip),%xmm0
movups %xmm0,0x0(%r13)
lea    0x10(%r13),%r12
movaps 0xddf(%rip),%xmm0
movups %xmm0,0x10(%r13)
movaps 0xde3(%rip),%xmm0
movups %xmm0,0x20(%r13)
movaps 0xde7(%rip),%xmm0
movups %xmm0,0x30(%r13)
movaps 0xdeb(%rip),%xmm0
movups %xmm0,0x40(%r13)
movaps 0xdef(%rip),%xmm0
movups %xmm0,0x50(%r13)
movaps 0xdf3(%rip),%xmm0
movups %xmm0,0x60(%r13)
movaps 0xdf7(%rip),%xmm0
movups %xmm0,0x70(%r13)
movaps 0xdfb(%rip),%xmm0
movups %xmm0,0x80(%r13)
movaps 0xdfc(%rip),%xmm0
movups %xmm0,0x90(%r13)
movaps 0xdfd(%rip),%xmm0
movups %xmm0,0xa0(%r13)
movaps 0xdfe(%rip),%xmm0
movups %xmm0,0xb0(%r13)
movaps 0xdff(%rip),%xmm0
movups %xmm0,0xc0(%r13)
movaps 0xe00(%rip),%xmm0
movups %xmm0,0xd0(%r13)
movaps 0xe01(%rip),%xmm0
movups %xmm0,0xe0(%r13)
movaps 0xe02(%rip),%xmm0
movups %xmm0,0xf0(%r13)
movaps 0xe03(%rip),%xmm0
movups %xmm0,0x100(%r13)
movaps 0xe04(%rip),%xmm0
movups %xmm0,0x110(%r13)
movaps 0xe05(%rip),%xmm0
movups %xmm0,0x120(%r13)
movaps 0xe06(%rip),%xmm0
movups %xmm0,0x130(%r13)
movaps 0xe07(%rip),%xmm0
movups %xmm0,0x140(%r13)
movaps 0xe08(%rip),%xmm0
movups %xmm0,0x150(%r13)
movaps 0xe09(%rip),%xmm0
movups %xmm0,0x160(%r13)
movaps 0xe0a(%rip),%xmm0
movups %xmm0,0x170(%r13)
movaps 0xe0b(%rip),%xmm0
movups %xmm0,0x180(%r13)
mov    %r14,%rdi
call   10b0 <list_size@plt>
lea    0xe04(%rip),%rdi
mov    %eax,%esi
call   1090 <printf@plt>
mov    %r14,%rdi
mov    %r13,%rsi
call   10f0 <list_push@plt>
lea    0x4(%r13),%rsi
mov    %r14,%rdi
call   10f0 <list_push@plt>
lea    0x8(%r13),%rsi
mov    %r14,%rdi
call   10f0 <list_push@plt>
lea    0xc(%r13),%rsi
mov    %r14,%rdi
call   1100 <list_unshift@plt>
mov    %r14,%rdi
mov    %r12,%rsi
call   1100 <list_unshift@plt>
lea    0x14(%r13),%rsi
mov    %r14,%rdi
call   1100 <list_unshift@plt>
nopl   0x0(%rax)
lea    (%rbx,%r13,1),%rsi
mov    %r15,%rdi
call   10f0 <list_push@plt>
add    $0x4,%rbx
cmp    $0x190,%rbx
jne    13e0 <test_list+0x200>
mov    %r14,%rdi
call   10b0 <list_size@plt>
lea    0xd92(%rip),%r12
mov    %r12,%rdi
mov    %eax,%esi
call   1090 <printf@plt>
mov    %r14,%rdi
call   1060 <print_list@plt>
mov    %r15,%rdi
call   10b0 <list_size@plt>
lea    0xd7e(%rip),%rdi
mov    %eax,%esi
call   1090 <printf@plt>
mov    %r15,%rdi
call   1060 <print_list@plt>
mov    %r14,%rdi
mov    %r15,%rsi
call   1070 <list_append_list@plt>
mov    %r14,%rdi
call   10b0 <list_size@plt>
mov    %r12,%rdi
mov    %eax,%esi
call   1090 <printf@plt>
mov    %r14,%rdi
call   1060 <print_list@plt>
mov    %r14,%rdi
call   1040 <list_pop@plt>
mov    %r14,%rdi
call   1050 <list_shift@plt>
mov    %r14,%rdi
call   1060 <print_list@plt>
mov    %r14,%rdi
call   10b0 <list_size@plt>
lea    0xd0c(%rip),%r12
mov    %r12,%rdi
mov    %eax,%esi
call   1090 <printf@plt>
mov    %r14,%rdi
call   1080 <list_purge@plt>
mov    %r14,%rdi
call   10b0 <list_size@plt>
mov    %r12,%rdi
mov    %eax,%esi
call   1090 <printf@plt>
mov    %r14,%rdi
call   10c0 <list_destroy@plt>
mov    %r15,%rdi
call   10c0 <list_destroy@plt>
mov    %r13,%rdi
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
jmp    1030 <free@plt>

LLVM IR (-O0):
%struct.list = type { i32 }
@.str = [10 x i8] c"Size: %u\0A\00"
@.str.1 = [13 x i8] c"Size l1: %u\0A\00"
@.str.2 = [13 x i8] c"Size l2: %u\0A\00"
define void @test_list() {
%1 = alloca %struct.list*
%2 = alloca %struct.list*
%3 = alloca i32*
%4 = alloca i32
%5 = call %struct.list* (...) @list_create()
store %struct.list* %5, %struct.list** %1
%6 = call %struct.list* (...) @list_create()
store %struct.list* %6, %struct.list** %2
%7 = call i64 @malloc(i32 400)
%8 = inttoptr i64 %7 to i32*
store i32* %8, i32** %3
%9 = load i32*, i32** %3
%10 = icmp ne i32* %9, null
%11 = zext i1 %10 to i32
%12 = call i32 @assert(i32 %11)
store i32 0, i32* %4
br label %13
13: ; preds = %23, %0
%14 = load i32, i32* %4
%15 = icmp slt i32 %14, 100
br i1 %15, label %16, label %26
16: ; preds = %13
%17 = load i32, i32* %4
%18 = mul nsw i32 %17, 2
%19 = load i32*, i32** %3
%20 = load i32, i32* %4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i32, i32* %19, i64 %21
store i32 %18, i32* %22
br label %23
23: ; preds = %16
%24 = load i32, i32* %4
%25 = add nsw i32 %24, 1
store i32 %25, i32* %4
br label %13
26: ; preds = %13
%27 = load %struct.list*, %struct.list** %1
%28 = call i32 @list_size(%struct.list* %27)
%29 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %28)
%30 = load %struct.list*, %struct.list** %1
%31 = load i32*, i32** %3
%32 = call i32 @list_push(%struct.list* %30, i32* %31)
%33 = load %struct.list*, %struct.list** %1
%34 = load i32*, i32** %3
%35 = getelementptr inbounds i32, i32* %34, i64 1
%36 = call i32 @list_push(%struct.list* %33, i32* %35)
%37 = load %struct.list*, %struct.list** %1
%38 = load i32*, i32** %3
%39 = getelementptr inbounds i32, i32* %38, i64 2
%40 = call i32 @list_push(%struct.list* %37, i32* %39)
%41 = load %struct.list*, %struct.list** %1
%42 = load i32*, i32** %3
%43 = getelementptr inbounds i32, i32* %42, i64 3
%44 = call i32 @list_unshift(%struct.list* %41, i32* %43)
%45 = load %struct.list*, %struct.list** %1
%46 = load i32*, i32** %3
%47 = getelementptr inbounds i32, i32* %46, i64 4
%48 = call i32 @list_unshift(%struct.list* %45, i32* %47)
%49 = load %struct.list*, %struct.list** %1
%50 = load i32*, i32** %3
%51 = getelementptr inbounds i32, i32* %50, i64 5
%52 = call i32 @list_unshift(%struct.list* %49, i32* %51)
store i32 0, i32* %4
br label %53
53: ; preds = %63, %26
%54 = load i32, i32* %4
%55 = icmp slt i32 %54, 100
br i1 %55, label %56, label %66
56: ; preds = %53
%57 = load %struct.list*, %struct.list** %2
%58 = load i32*, i32** %3
%59 = load i32, i32* %4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds i32, i32* %58, i64 %60
%62 = call i32 @list_push(%struct.list* %57, i32* %61)
br label %63
63: ; preds = %56
%64 = load i32, i32* %4
%65 = add nsw i32 %64, 1
store i32 %65, i32* %4
br label %53
66: ; preds = %53
%67 = load %struct.list*, %struct.list** %1
%68 = call i32 @list_size(%struct.list* %67)
%69 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i32 %68)
%70 = load %struct.list*, %struct.list** %1
%71 = call i32 @print_list(%struct.list* %70)
%72 = load %struct.list*, %struct.list** %2
%73 = call i32 @list_size(%struct.list* %72)
%74 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i32 %73)
%75 = load %struct.list*, %struct.list** %2
%76 = call i32 @print_list(%struct.list* %75)
%77 = load %struct.list*, %struct.list** %1
%78 = load %struct.list*, %struct.list** %2
%79 = call i32 @list_append_list(%struct.list* %77, %struct.list* %78)
%80 = load %struct.list*, %struct.list** %1
%81 = call i32 @list_size(%struct.list* %80)
%82 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i32 %81)
%83 = load %struct.list*, %struct.list** %1
%84 = call i32 @print_list(%struct.list* %83)
%85 = load %struct.list*, %struct.list** %1
%86 = call i32 @list_pop(%struct.list* %85)
%87 = load %struct.list*, %struct.list** %1
%88 = call i32 @list_shift(%struct.list* %87)
%89 = load %struct.list*, %struct.list** %1
%90 = call i32 @print_list(%struct.list* %89)
%91 = load %struct.list*, %struct.list** %1
%92 = call i32 @list_size(%struct.list* %91)
%93 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %92)
%94 = load %struct.list*, %struct.list** %1
%95 = call i32 @list_purge(%struct.list* %94)
%96 = load %struct.list*, %struct.list** %1
%97 = call i32 @list_size(%struct.list* %96)
%98 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %97)
%99 = load %struct.list*, %struct.list** %1
%100 = call i32 @list_destroy(%struct.list* %99)
%101 = load %struct.list*, %struct.list** %2
%102 = call i32 @list_destroy(%struct.list* %101)
%103 = load i32*, i32** %3
%104 = call i32 @free(i32* %103)
ret void
}

LLVM IR (-O2):
%struct.list = type { i32 }
@.str = [10 x i8] c"Size: %u\0A\00"
@.str.1 = [13 x i8] c"Size l1: %u\0A\00"
@.str.2 = [13 x i8] c"Size l2: %u\0A\00"
define void @test_list() {
%1 = tail call %struct.list* (...) @list_create()
%2 = tail call %struct.list* (...) @list_create()
%3 = tail call i64 @malloc(i32 400)
%4 = inttoptr i64 %3 to i32*
%5 = icmp ne i64 %3, 0
%6 = zext i1 %5 to i32
%7 = tail call i32 @assert(i32 %6)
%8 = inttoptr i64 %3 to <4 x i32>*
store <4 x i32> <i32 0, i32 2, i32 4, i32 6>, <4 x i32>* %8
%9 = getelementptr inbounds i32, i32* %4, i64 4
%10 = bitcast i32* %9 to <4 x i32>*
store <4 x i32> <i32 8, i32 10, i32 12, i32 14>, <4 x i32>* %10
%11 = getelementptr inbounds i32, i32* %4, i64 8
%12 = bitcast i32* %11 to <4 x i32>*
store <4 x i32> <i32 16, i32 18, i32 20, i32 22>, <4 x i32>* %12
%13 = getelementptr inbounds i32, i32* %4, i64 12
%14 = bitcast i32* %13 to <4 x i32>*
store <4 x i32> <i32 24, i32 26, i32 28, i32 30>, <4 x i32>* %14
%15 = getelementptr inbounds i32, i32* %4, i64 16
%16 = bitcast i32* %15 to <4 x i32>*
store <4 x i32> <i32 32, i32 34, i32 36, i32 38>, <4 x i32>* %16
%17 = getelementptr inbounds i32, i32* %4, i64 20
%18 = bitcast i32* %17 to <4 x i32>*
store <4 x i32> <i32 40, i32 42, i32 44, i32 46>, <4 x i32>* %18
%19 = getelementptr inbounds i32, i32* %4, i64 24
%20 = bitcast i32* %19 to <4 x i32>*
store <4 x i32> <i32 48, i32 50, i32 52, i32 54>, <4 x i32>* %20
%21 = getelementptr inbounds i32, i32* %4, i64 28
%22 = bitcast i32* %21 to <4 x i32>*
store <4 x i32> <i32 56, i32 58, i32 60, i32 62>, <4 x i32>* %22
%23 = getelementptr inbounds i32, i32* %4, i64 32
%24 = bitcast i32* %23 to <4 x i32>*
store <4 x i32> <i32 64, i32 66, i32 68, i32 70>, <4 x i32>* %24
%25 = getelementptr inbounds i32, i32* %4, i64 36
%26 = bitcast i32* %25 to <4 x i32>*
store <4 x i32> <i32 72, i32 74, i32 76, i32 78>, <4 x i32>* %26
%27 = getelementptr inbounds i32, i32* %4, i64 40
%28 = bitcast i32* %27 to <4 x i32>*
store <4 x i32> <i32 80, i32 82, i32 84, i32 86>, <4 x i32>* %28
%29 = getelementptr inbounds i32, i32* %4, i64 44
%30 = bitcast i32* %29 to <4 x i32>*
store <4 x i32> <i32 88, i32 90, i32 92, i32 94>, <4 x i32>* %30
%31 = getelementptr inbounds i32, i32* %4, i64 48
%32 = bitcast i32* %31 to <4 x i32>*
store <4 x i32> <i32 96, i32 98, i32 100, i32 102>, <4 x i32>* %32
%33 = getelementptr inbounds i32, i32* %4, i64 52
%34 = bitcast i32* %33 to <4 x i32>*
store <4 x i32> <i32 104, i32 106, i32 108, i32 110>, <4 x i32>* %34
%35 = getelementptr inbounds i32, i32* %4, i64 56
%36 = bitcast i32* %35 to <4 x i32>*
store <4 x i32> <i32 112, i32 114, i32 116, i32 118>, <4 x i32>* %36
%37 = getelementptr inbounds i32, i32* %4, i64 60
%38 = bitcast i32* %37 to <4 x i32>*
store <4 x i32> <i32 120, i32 122, i32 124, i32 126>, <4 x i32>* %38
%39 = getelementptr inbounds i32, i32* %4, i64 64
%40 = bitcast i32* %39 to <4 x i32>*
store <4 x i32> <i32 128, i32 130, i32 132, i32 134>, <4 x i32>* %40
%41 = getelementptr inbounds i32, i32* %4, i64 68
%42 = bitcast i32* %41 to <4 x i32>*
store <4 x i32> <i32 136, i32 138, i32 140, i32 142>, <4 x i32>* %42
%43 = getelementptr inbounds i32, i32* %4, i64 72
%44 = bitcast i32* %43 to <4 x i32>*
store <4 x i32> <i32 144, i32 146, i32 148, i32 150>, <4 x i32>* %44
%45 = getelementptr inbounds i32, i32* %4, i64 76
%46 = bitcast i32* %45 to <4 x i32>*
store <4 x i32> <i32 152, i32 154, i32 156, i32 158>, <4 x i32>* %46
%47 = getelementptr inbounds i32, i32* %4, i64 80
%48 = bitcast i32* %47 to <4 x i32>*
store <4 x i32> <i32 160, i32 162, i32 164, i32 166>, <4 x i32>* %48
%49 = getelementptr inbounds i32, i32* %4, i64 84
%50 = bitcast i32* %49 to <4 x i32>*
store <4 x i32> <i32 168, i32 170, i32 172, i32 174>, <4 x i32>* %50
%51 = getelementptr inbounds i32, i32* %4, i64 88
%52 = bitcast i32* %51 to <4 x i32>*
store <4 x i32> <i32 176, i32 178, i32 180, i32 182>, <4 x i32>* %52
%53 = getelementptr inbounds i32, i32* %4, i64 92
%54 = bitcast i32* %53 to <4 x i32>*
store <4 x i32> <i32 184, i32 186, i32 188, i32 190>, <4 x i32>* %54
%55 = getelementptr inbounds i32, i32* %4, i64 96
%56 = bitcast i32* %55 to <4 x i32>*
store <4 x i32> <i32 192, i32 194, i32 196, i32 198>, <4 x i32>* %56
%57 = tail call i32 @list_size(%struct.list* %1)
%58 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %57)
%59 = tail call i32 @list_push(%struct.list* %1, i32* %4)
%60 = getelementptr inbounds i32, i32* %4, i64 1
%61 = tail call i32 @list_push(%struct.list* %1, i32* %60)
%62 = getelementptr inbounds i32, i32* %4, i64 2
%63 = tail call i32 @list_push(%struct.list* %1, i32* %62)
%64 = getelementptr inbounds i32, i32* %4, i64 3
%65 = tail call i32 @list_unshift(%struct.list* %1, i32* %64)
%66 = getelementptr inbounds i32, i32* %4, i64 4
%67 = tail call i32 @list_unshift(%struct.list* %1, i32* %66)
%68 = getelementptr inbounds i32, i32* %4, i64 5
%69 = tail call i32 @list_unshift(%struct.list* %1, i32* %68)
br label %70
70: ; preds = %0, %70
%71 = phi i64 [ 0, %0 ], [ %74, %70 ]
%72 = getelementptr inbounds i32, i32* %4, i64 %71
%73 = tail call i32 @list_push(%struct.list* %2, i32* %72)
%74 = add nuw nsw i64 %71, 1
%75 = icmp eq i64 %74, 100
br i1 %75, label %76, label %70
76: ; preds = %70
%77 = tail call i32 @list_size(%struct.list* %1)
%78 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i32 %77)
%79 = tail call i32 @print_list(%struct.list* %1)
%80 = tail call i32 @list_size(%struct.list* %2)
%81 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i32 %80)
%82 = tail call i32 @print_list(%struct.list* %2)
%83 = tail call i32 @list_append_list(%struct.list* %1, %struct.list* %2)
%84 = tail call i32 @list_size(%struct.list* %1)
%85 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i32 %84)
%86 = tail call i32 @print_list(%struct.list* %1)
%87 = tail call i32 @list_pop(%struct.list* %1)
%88 = tail call i32 @list_shift(%struct.list* %1)
%89 = tail call i32 @print_list(%struct.list* %1)
%90 = tail call i32 @list_size(%struct.list* %1)
%91 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %90)
%92 = tail call i32 @list_purge(%struct.list* %1)
%93 = tail call i32 @list_size(%struct.list* %1)
%94 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %93)
%95 = tail call i32 @list_destroy(%struct.list* %1)
%96 = tail call i32 @list_destroy(%struct.list* %2)
%97 = tail call i32 @free(i32* %4)
ret void
}