#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*/ assert(int);
int /*<<< orphan*/ ll_free_list(char **);
int ll_list_contains(char **, char *);
int ll_list_index(char **, char *);
int ll_list_length(char **);
char *ll_list_mode(char **, char *);
int /*<<< orphan*/ ll_list_print(char **);
int ll_lists_equal(char **, char **);
char **ll_new_list(int);
int /*<<< orphan*/ printf(char *, ...);
scalar_t__ strcmp(char *, char *);
char *strdup(char *);
int main(int argc, char **argv) {
  char *known_good_final_list[] = {"one",  "two",  "three", "four",
                                   "four", "four", "one",   NULL};
  char **list;
  (void)argc;
  (void)argv;
  list = ll_new_list(8);
  list[0] = strdup("one");
  list[1] = strdup("two");
  printf("Current list: ");
  ll_list_print(list);
  printf("Contains 'one': %d\n", ll_list_contains(list, "one"));
  assert(ll_list_contains(list, "one"));
  printf("Contains 'three': %d\n", ll_list_contains(list, "three"));
  assert(!ll_list_contains(list, "three"));
  printf("List length: %d\n", ll_list_length(list));
  assert(ll_list_length(list) == 2);
  list[2] = strdup("three");
  list[3] = strdup("four");
  list[4] = strdup("four");
  list[5] = strdup("four");
  list[6] = strdup("one");
  printf("Current list: ");
  ll_list_print(list);
  assert(ll_lists_equal(list, known_good_final_list));
  printf("Index of 'three': %d\n", ll_list_index(list, "three"));
  assert(ll_list_index(list, "three") == 2);
  printf("List length: %d\n", ll_list_length(list));
  assert(ll_list_length(list) == 7);
  printf("List mode: '%s'\n", ll_list_mode(list, "four"));
  assert(strcmp(ll_list_mode(list, "four"), "one") == 0);
  printf("List free: \n");
  ll_free_list(list);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x50(%rbp),%rdi
lea    0x2bef(%rip),%rsi
mov    $0x40,%edx
call   1070 <memcpy@plt>
mov    $0x8,%edi
call   1030 <ll_new_list@plt>
mov    %rax,-0x58(%rbp)
lea    0xdf0(%rip),%rdi
call   10c0 <strdup@plt>
mov    %rax,%rcx
mov    -0x58(%rbp),%rax
mov    %rcx,(%rax)
lea    0xdde(%rip),%rdi
call   10c0 <strdup@plt>
mov    %rax,%rcx
mov    -0x58(%rbp),%rax
mov    %rcx,0x8(%rax)
lea    0xdd6(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x58(%rbp),%rdi
call   10f0 <ll_list_print@plt>
mov    -0x58(%rbp),%rdi
lea    0xda8(%rip),%rsi
call   10d0 <ll_list_contains@plt>
mov    %eax,%esi
lea    0xdbc(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x58(%rbp),%rdi
lea    0xd88(%rip),%rsi
call   10d0 <ll_list_contains@plt>
mov    %eax,%edi
call   1060 <assert@plt>
mov    -0x58(%rbp),%rdi
lea    0xd79(%rip),%rsi
call   10d0 <ll_list_contains@plt>
mov    %eax,%esi
lea    0xd99(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x58(%rbp),%rdi
lea    0xd59(%rip),%rsi
call   10d0 <ll_list_contains@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1060 <assert@plt>
mov    -0x58(%rbp),%rdi
call   10e0 <ll_list_length@plt>
mov    %eax,%esi
lea    0xd74(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x58(%rbp),%rdi
call   10e0 <ll_list_length@plt>
cmp    $0x2,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1060 <assert@plt>
lea    0xd09(%rip),%rdi
call   10c0 <strdup@plt>
mov    %rax,%rcx
mov    -0x58(%rbp),%rax
mov    %rcx,0x10(%rax)
lea    0xcf8(%rip),%rdi
call   10c0 <strdup@plt>
mov    %rax,%rcx
mov    -0x58(%rbp),%rax
mov    %rcx,0x18(%rax)
lea    0xce1(%rip),%rdi
call   10c0 <strdup@plt>
mov    %rax,%rcx
mov    -0x58(%rbp),%rax
mov    %rcx,0x20(%rax)
lea    0xcca(%rip),%rdi
call   10c0 <strdup@plt>
mov    %rax,%rcx
mov    -0x58(%rbp),%rax
mov    %rcx,0x28(%rax)
lea    0xca5(%rip),%rdi
call   10c0 <strdup@plt>
mov    %rax,%rcx
mov    -0x58(%rbp),%rax
mov    %rcx,0x30(%rax)
lea    0xca1(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x58(%rbp),%rdi
call   10f0 <ll_list_print@plt>
mov    -0x58(%rbp),%rdi
lea    -0x50(%rbp),%rsi
call   1080 <ll_lists_equal@plt>
mov    %eax,%edi
call   1060 <assert@plt>
mov    -0x58(%rbp),%rdi
lea    0xc67(%rip),%rsi
call   10a0 <ll_list_index@plt>
mov    %eax,%esi
lea    0xcae(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x58(%rbp),%rdi
lea    0xc47(%rip),%rsi
call   10a0 <ll_list_index@plt>
cmp    $0x2,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1060 <assert@plt>
mov    -0x58(%rbp),%rdi
call   10e0 <ll_list_length@plt>
mov    %eax,%esi
lea    0xc64(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x58(%rbp),%rdi
call   10e0 <ll_list_length@plt>
cmp    $0x7,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1060 <assert@plt>
mov    -0x58(%rbp),%rdi
lea    0xbfb(%rip),%rsi
call   1090 <ll_list_mode@plt>
mov    %rax,%rsi
lea    0xc51(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x58(%rbp),%rdi
lea    0xbda(%rip),%rsi
call   1090 <ll_list_mode@plt>
mov    %rax,%rdi
lea    0xbbd(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1060 <assert@plt>
lea    0xc24(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x58(%rbp),%rdi
call   10b0 <ll_free_list@plt>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
movaps 0x2c2b(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0x2c0f(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0x2bf3(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0x2bd7(%rip),%xmm0
movaps %xmm0,(%rsp)
mov    $0x8,%edi
call   1040 <ll_new_list@plt>
mov    %rax,%rbx
lea    0xddf(%rip),%r14
mov    %r14,%rdi
call   10c0 <strdup@plt>
mov    %rax,(%rbx)
lea    0xdd1(%rip),%rdi
call   10c0 <strdup@plt>
mov    %rax,0x8(%rbx)
lea    0xdd0(%rip),%r15
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
call   10f0 <ll_list_print@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   10d0 <ll_list_contains@plt>
lea    0xdbb(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   10d0 <ll_list_contains@plt>
mov    %eax,%edi
call   1070 <assert@plt>
lea    0xd7f(%rip),%r12
mov    %rbx,%rdi
mov    %r12,%rsi
call   10d0 <ll_list_contains@plt>
lea    0xd9b(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   10d0 <ll_list_contains@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1070 <assert@plt>
mov    %rbx,%rdi
call   10e0 <ll_list_length@plt>
lea    0xd81(%rip),%rbp
mov    %rbp,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
call   10e0 <ll_list_length@plt>
xor    %edi,%edi
cmp    $0x2,%eax
sete   %dil
call   1070 <assert@plt>
mov    %r12,%rdi
call   10c0 <strdup@plt>
mov    %rax,0x10(%rbx)
lea    0xd0e(%rip),%r13
mov    %r13,%rdi
call   10c0 <strdup@plt>
mov    %rax,0x18(%rbx)
mov    %r13,%rdi
call   10c0 <strdup@plt>
mov    %rax,0x20(%rbx)
mov    %r13,%rdi
call   10c0 <strdup@plt>
mov    %rax,0x28(%rbx)
mov    %r14,%rdi
call   10c0 <strdup@plt>
mov    %rax,0x30(%rbx)
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
call   10f0 <ll_list_print@plt>
mov    %rsp,%rsi
mov    %rbx,%rdi
call   1080 <ll_lists_equal@plt>
mov    %eax,%edi
call   1070 <assert@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   10a0 <ll_list_index@plt>
lea    0xcf7(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   10a0 <ll_list_index@plt>
xor    %edi,%edi
cmp    $0x2,%eax
sete   %dil
call   1070 <assert@plt>
mov    %rbx,%rdi
call   10e0 <ll_list_length@plt>
mov    %rbp,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
call   10e0 <ll_list_length@plt>
xor    %edi,%edi
cmp    $0x7,%eax
sete   %dil
call   1070 <assert@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
call   1090 <ll_list_mode@plt>
lea    0xcaf(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
call   1090 <ll_list_mode@plt>
mov    %rax,%rdi
mov    %r14,%rsi
call   1060 <strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1070 <assert@plt>
lea    0xc8b(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   10b0 <ll_free_list@plt>
xor    %eax,%eax
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [4 x i8] c"one\00"
@.str.1 = [4 x i8] c"two\00"
@.str.2 = [6 x i8] c"three\00"
@.str.3 = [5 x i8] c"four\00"
@__const.main.known_good_final_list = [8 x i8*] [i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i8* null]
@.str.4 = [15 x i8] c"Current list: \00"
@.str.5 = [20 x i8] c"Contains 'one': %d\0A\00"
@.str.6 = [22 x i8] c"Contains 'three': %d\0A\00"
@.str.7 = [17 x i8] c"List length: %d\0A\00"
@.str.8 = [22 x i8] c"Index of 'three': %d\0A\00"
@.str.9 = [17 x i8] c"List mode: '%s'\0A\00"
@.str.10 = [13 x i8] c"List free: \0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [8 x i8*]
%7 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%8 = bitcast [8 x i8*]* %6 to i8*
%9 = load i32, i32* %4
%10 = load i8**, i8*** %5
%11 = call i8** @ll_new_list(i32 8)
store i8** %11, i8*** %7
%12 = call i8* @strdup(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%13 = load i8**, i8*** %7
%14 = getelementptr inbounds i8*, i8** %13, i64 0
store i8* %12, i8** %14
%15 = call i8* @strdup(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%16 = load i8**, i8*** %7
%17 = getelementptr inbounds i8*, i8** %16, i64 1
store i8* %15, i8** %17
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
%19 = load i8**, i8*** %7
%20 = call i32 @ll_list_print(i8** %19)
%21 = load i8**, i8*** %7
%22 = call i32 @ll_list_contains(i8** %21, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0), i32 %22)
%24 = load i8**, i8*** %7
%25 = call i32 @ll_list_contains(i8** %24, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%26 = call i32 @assert(i32 %25)
%27 = load i8**, i8*** %7
%28 = call i32 @ll_list_contains(i8** %27, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0), i32 %28)
%30 = load i8**, i8*** %7
%31 = call i32 @ll_list_contains(i8** %30, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%32 = icmp ne i32 %31, 0
%33 = xor i1 %32, true
%34 = zext i1 %33 to i32
%35 = call i32 @assert(i32 %34)
%36 = load i8**, i8*** %7
%37 = call i32 @ll_list_length(i8** %36)
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.7, i64 0, i64 0), i32 %37)
%39 = load i8**, i8*** %7
%40 = call i32 @ll_list_length(i8** %39)
%41 = icmp eq i32 %40, 2
%42 = zext i1 %41 to i32
%43 = call i32 @assert(i32 %42)
%44 = call i8* @strdup(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%45 = load i8**, i8*** %7
%46 = getelementptr inbounds i8*, i8** %45, i64 2
store i8* %44, i8** %46
%47 = call i8* @strdup(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%48 = load i8**, i8*** %7
%49 = getelementptr inbounds i8*, i8** %48, i64 3
store i8* %47, i8** %49
%50 = call i8* @strdup(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%51 = load i8**, i8*** %7
%52 = getelementptr inbounds i8*, i8** %51, i64 4
store i8* %50, i8** %52
%53 = call i8* @strdup(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%54 = load i8**, i8*** %7
%55 = getelementptr inbounds i8*, i8** %54, i64 5
store i8* %53, i8** %55
%56 = call i8* @strdup(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%57 = load i8**, i8*** %7
%58 = getelementptr inbounds i8*, i8** %57, i64 6
store i8* %56, i8** %58
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
%60 = load i8**, i8*** %7
%61 = call i32 @ll_list_print(i8** %60)
%62 = load i8**, i8*** %7
%63 = getelementptr inbounds [8 x i8*], [8 x i8*]* %6, i64 0, i64 0
%64 = call i32 @ll_lists_equal(i8** %62, i8** %63)
%65 = call i32 @assert(i32 %64)
%66 = load i8**, i8*** %7
%67 = call i32 @ll_list_index(i8** %66, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0), i32 %67)
%69 = load i8**, i8*** %7
%70 = call i32 @ll_list_index(i8** %69, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%71 = icmp eq i32 %70, 2
%72 = zext i1 %71 to i32
%73 = call i32 @assert(i32 %72)
%74 = load i8**, i8*** %7
%75 = call i32 @ll_list_length(i8** %74)
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.7, i64 0, i64 0), i32 %75)
%77 = load i8**, i8*** %7
%78 = call i32 @ll_list_length(i8** %77)
%79 = icmp eq i32 %78, 7
%80 = zext i1 %79 to i32
%81 = call i32 @assert(i32 %80)
%82 = load i8**, i8*** %7
%83 = call i8* @ll_list_mode(i8** %82, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%84 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.9, i64 0, i64 0), i8* %83)
%85 = load i8**, i8*** %7
%86 = call i8* @ll_list_mode(i8** %85, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%87 = call i64 @strcmp(i8* %86, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%88 = icmp eq i64 %87, 0
%89 = zext i1 %88 to i32
%90 = call i32 @assert(i32 %89)
%91 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.10, i64 0, i64 0))
%92 = load i8**, i8*** %7
%93 = call i32 @ll_free_list(i8** %92)
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"one\00"
@.str.1 = [4 x i8] c"two\00"
@.str.2 = [6 x i8] c"three\00"
@.str.3 = [5 x i8] c"four\00"
@__const.main.known_good_final_list = [8 x i8*] [i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i8* null]
@.str.4 = [15 x i8] c"Current list: \00"
@.str.5 = [20 x i8] c"Contains 'one': %d\0A\00"
@.str.6 = [22 x i8] c"Contains 'three': %d\0A\00"
@.str.7 = [17 x i8] c"List length: %d\0A\00"
@.str.8 = [22 x i8] c"Index of 'three': %d\0A\00"
@.str.9 = [17 x i8] c"List mode: '%s'\0A\00"
@str = [12 x i8] c"List free: \00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [8 x i8*]
%4 = bitcast [8 x i8*]* %3 to i8*
%5 = tail call i8** @ll_new_list(i32 8)
%6 = tail call dereferenceable_or_null(4) i8* @strdup(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
store i8* %6, i8** %5
%7 = tail call dereferenceable_or_null(4) i8* @strdup(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%8 = getelementptr inbounds i8*, i8** %5, i64 1
store i8* %7, i8** %8
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
%10 = tail call i32 @ll_list_print(i8** %5)
%11 = tail call i32 @ll_list_contains(i8** %5, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0), i32 %11)
%13 = tail call i32 @ll_list_contains(i8** %5, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%14 = tail call i32 @assert(i32 %13)
%15 = tail call i32 @ll_list_contains(i8** %5, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0), i32 %15)
%17 = tail call i32 @ll_list_contains(i8** %5, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%18 = icmp eq i32 %17, 0
%19 = zext i1 %18 to i32
%20 = tail call i32 @assert(i32 %19)
%21 = tail call i32 @ll_list_length(i8** %5)
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.7, i64 0, i64 0), i32 %21)
%23 = tail call i32 @ll_list_length(i8** %5)
%24 = icmp eq i32 %23, 2
%25 = zext i1 %24 to i32
%26 = tail call i32 @assert(i32 %25)
%27 = tail call dereferenceable_or_null(6) i8* @strdup(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%28 = getelementptr inbounds i8*, i8** %5, i64 2
store i8* %27, i8** %28
%29 = tail call dereferenceable_or_null(5) i8* @strdup(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%30 = getelementptr inbounds i8*, i8** %5, i64 3
store i8* %29, i8** %30
%31 = tail call dereferenceable_or_null(5) i8* @strdup(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%32 = getelementptr inbounds i8*, i8** %5, i64 4
store i8* %31, i8** %32
%33 = tail call dereferenceable_or_null(5) i8* @strdup(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%34 = getelementptr inbounds i8*, i8** %5, i64 5
store i8* %33, i8** %34
%35 = tail call dereferenceable_or_null(4) i8* @strdup(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%36 = getelementptr inbounds i8*, i8** %5, i64 6
store i8* %35, i8** %36
%37 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
%38 = tail call i32 @ll_list_print(i8** %5)
%39 = getelementptr inbounds [8 x i8*], [8 x i8*]* %3, i64 0, i64 0
%40 = call i32 @ll_lists_equal(i8** %5, i8** %39)
%41 = call i32 @assert(i32 %40)
%42 = call i32 @ll_list_index(i8** %5, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%43 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0), i32 %42)
%44 = call i32 @ll_list_index(i8** %5, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%45 = icmp eq i32 %44, 2
%46 = zext i1 %45 to i32
%47 = call i32 @assert(i32 %46)
%48 = call i32 @ll_list_length(i8** %5)
%49 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.7, i64 0, i64 0), i32 %48)
%50 = call i32 @ll_list_length(i8** %5)
%51 = icmp eq i32 %50, 7
%52 = zext i1 %51 to i32
%53 = call i32 @assert(i32 %52)
%54 = call i8* @ll_list_mode(i8** %5, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%55 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.9, i64 0, i64 0), i8* %54)
%56 = call i8* @ll_list_mode(i8** %5, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%57 = call i64 @strcmp(i8* %56, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%58 = icmp eq i64 %57, 0
%59 = zext i1 %58 to i32
%60 = call i32 @assert(i32 %59)
%61 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str, i64 0, i64 0))
%62 = call i32 @ll_free_list(i8** %5)
ret i32 0
}