#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);
unsigned long emptystrdeque();
int /*<<< orphan*/ strdeque_clear(unsigned long);
int strdeque_comp(unsigned long, unsigned long);
int /*<<< orphan*/ strdeque_delete(unsigned long);
int /*<<< orphan*/ *strdeque_get_at(unsigned long, int);
int /*<<< orphan*/ strdeque_insert_at(unsigned long, int, char *);
unsigned long strdeque_new();
int /*<<< orphan*/ strdeque_remove_at(unsigned long, int);
int strdeque_size(unsigned long);
int streq(int /*<<< orphan*/ *, char *, int);
int main() {
  unsigned long d1, d2, d3;
  d1 = strdeque_new();
  strdeque_insert_at(d1, 0, "a");
  assert(streq(strdeque_get_at(d1, 0), "a", 2));
  strdeque_insert_at(d1, 8, "aa");
  assert(streq(strdeque_get_at(d1, 1), "aa", 3));
  strdeque_remove_at(d1, 1);
  assert(strdeque_get_at(d1, 1) == NULL);
  assert(streq(strdeque_get_at(d1, 0), "a", 2));
  strdeque_insert_at(d1, 0, NULL);
  assert(streq(strdeque_get_at(d1, 0), "a", 2));
  assert(strdeque_size(d1) == 1);
  strdeque_remove_at(d1, 1);
  assert(strdeque_size(d1) == 1);
  strdeque_delete(d1);
  strdeque_insert_at(d1, 0, "b");
  assert(strdeque_size(d1) == 0);
  assert(strdeque_get_at(d1, 0) == NULL);
  d2 = strdeque_new();
  d3 = strdeque_new();
  strdeque_insert_at(d2, 0, "c");
  strdeque_insert_at(d2, 0, "cc");
  strdeque_insert_at(d2, 0, "ccc");
  strdeque_insert_at(d3, 100, "ccc");
  strdeque_insert_at(d3, 1000, "cc");
  strdeque_insert_at(d3, 10000, "c");
  assert(strdeque_comp(d2, d3) == 0);
  strdeque_remove_at(d2, 0);
  assert(strdeque_comp(d2, d3) == -1);
  strdeque_delete(d3);
  assert(strdeque_comp(d2, d3) == 1);
  strdeque_delete(d2);
  assert(strdeque_comp(d2, d3) == 0);
  assert(strdeque_comp(d2, emptystrdeque()) == 0);
  assert(strdeque_comp(emptystrdeque(), d3) == 0);
  assert(strdeque_comp(emptystrdeque(), emptystrdeque()) == 0);
  assert(strdeque_size(emptystrdeque()) == 0);
  strdeque_delete(emptystrdeque());
  strdeque_insert_at(emptystrdeque(), 0, "d");
  assert(strdeque_size(emptystrdeque()) == 0);
  strdeque_insert_at(emptystrdeque(), 0, "d");
  strdeque_insert_at(emptystrdeque(), 0, "dd");
  assert(strdeque_get_at(emptystrdeque(), 0) == NULL);
  strdeque_remove_at(emptystrdeque(), 0);
  assert(strdeque_size(emptystrdeque()) == 0);
  strdeque_clear(emptystrdeque());
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1090 <strdeque_new@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
xor    %esi,%esi
lea    0xe2a(%rip),%rdx
call   10d0 <strdeque_insert_at@plt>
mov    -0x10(%rbp),%rdi
xor    %esi,%esi
call   10c0 <strdeque_get_at@plt>
mov    %rax,%rdi
lea    0xe10(%rip),%rsi
mov    $0x2,%edx
call   1060 <streq@plt>
mov    %eax,%edi
call   1080 <assert@plt>
mov    -0x10(%rbp),%rdi
mov    $0x8,%esi
lea    0xdee(%rip),%rdx
call   10d0 <strdeque_insert_at@plt>
mov    -0x10(%rbp),%rdi
mov    $0x1,%esi
call   10c0 <strdeque_get_at@plt>
mov    %rax,%rdi
lea    0xdd1(%rip),%rsi
mov    $0x3,%edx
call   1060 <streq@plt>
mov    %eax,%edi
call   1080 <assert@plt>
mov    -0x10(%rbp),%rdi
mov    $0x1,%esi
call   1050 <strdeque_remove_at@plt>
mov    -0x10(%rbp),%rdi
mov    $0x1,%esi
call   10c0 <strdeque_get_at@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    -0x10(%rbp),%rdi
xor    %esi,%esi
call   10c0 <strdeque_get_at@plt>
mov    %rax,%rdi
lea    0xd7f(%rip),%rsi
mov    $0x2,%edx
call   1060 <streq@plt>
mov    %eax,%edi
call   1080 <assert@plt>
mov    -0x10(%rbp),%rdi
xor    %esi,%esi
xor    %eax,%eax
mov    %eax,%edx
call   10d0 <strdeque_insert_at@plt>
mov    -0x10(%rbp),%rdi
xor    %esi,%esi
call   10c0 <strdeque_get_at@plt>
mov    %rax,%rdi
lea    0xd4a(%rip),%rsi
mov    $0x2,%edx
call   1060 <streq@plt>
mov    %eax,%edi
call   1080 <assert@plt>
mov    -0x10(%rbp),%rdi
call   1030 <strdeque_size@plt>
cmp    $0x1,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    -0x10(%rbp),%rdi
mov    $0x1,%esi
call   1050 <strdeque_remove_at@plt>
mov    -0x10(%rbp),%rdi
call   1030 <strdeque_size@plt>
cmp    $0x1,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    -0x10(%rbp),%rdi
call   1040 <strdeque_delete@plt>
mov    -0x10(%rbp),%rdi
xor    %esi,%esi
lea    0xce5(%rip),%rdx
call   10d0 <strdeque_insert_at@plt>
mov    -0x10(%rbp),%rdi
call   1030 <strdeque_size@plt>
cmp    $0x0,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    -0x10(%rbp),%rdi
xor    %esi,%esi
call   10c0 <strdeque_get_at@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    $0x0,%al
call   1090 <strdeque_new@plt>
mov    %rax,-0x18(%rbp)
mov    $0x0,%al
call   1090 <strdeque_new@plt>
mov    %rax,-0x20(%rbp)
mov    -0x18(%rbp),%rdi
xor    %esi,%esi
lea    0xc8c(%rip),%rdx
call   10d0 <strdeque_insert_at@plt>
mov    -0x18(%rbp),%rdi
xor    %esi,%esi
lea    0xc79(%rip),%rdx
call   10d0 <strdeque_insert_at@plt>
mov    -0x18(%rbp),%rdi
xor    %esi,%esi
lea    0xc66(%rip),%rdx
call   10d0 <strdeque_insert_at@plt>
mov    -0x20(%rbp),%rdi
mov    $0x64,%esi
lea    0xc51(%rip),%rdx
call   10d0 <strdeque_insert_at@plt>
mov    -0x20(%rbp),%rdi
mov    $0x3e8,%esi
lea    0xc3d(%rip),%rdx
call   10d0 <strdeque_insert_at@plt>
mov    -0x20(%rbp),%rdi
mov    $0x2710,%esi
lea    0xc29(%rip),%rdx
call   10d0 <strdeque_insert_at@plt>
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
call   10b0 <strdeque_comp@plt>
cmp    $0x0,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    -0x18(%rbp),%rdi
xor    %esi,%esi
call   1050 <strdeque_remove_at@plt>
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
call   10b0 <strdeque_comp@plt>
cmp    $0xffffffff,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    -0x20(%rbp),%rdi
call   1040 <strdeque_delete@plt>
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
call   10b0 <strdeque_comp@plt>
cmp    $0x1,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    -0x18(%rbp),%rdi
call   1040 <strdeque_delete@plt>
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
call   10b0 <strdeque_comp@plt>
cmp    $0x0,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    -0x18(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    $0x0,%al
call   10a0 <emptystrdeque@plt>
mov    -0x30(%rbp),%rdi
mov    %rax,%rsi
call   10b0 <strdeque_comp@plt>
cmp    $0x0,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    $0x0,%al
call   10a0 <emptystrdeque@plt>
mov    %rax,%rdi
mov    -0x20(%rbp),%rsi
call   10b0 <strdeque_comp@plt>
cmp    $0x0,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    $0x0,%al
call   10a0 <emptystrdeque@plt>
mov    %rax,-0x28(%rbp)
mov    $0x0,%al
call   10a0 <emptystrdeque@plt>
mov    -0x28(%rbp),%rdi
mov    %rax,%rsi
call   10b0 <strdeque_comp@plt>
cmp    $0x0,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    $0x0,%al
call   10a0 <emptystrdeque@plt>
mov    %rax,%rdi
call   1030 <strdeque_size@plt>
cmp    $0x0,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    $0x0,%al
call   10a0 <emptystrdeque@plt>
mov    %rax,%rdi
call   1040 <strdeque_delete@plt>
mov    $0x0,%al
call   10a0 <emptystrdeque@plt>
mov    %rax,%rdi
xor    %esi,%esi
lea    0xad9(%rip),%rdx
call   10d0 <strdeque_insert_at@plt>
mov    $0x0,%al
call   10a0 <emptystrdeque@plt>
mov    %rax,%rdi
call   1030 <strdeque_size@plt>
cmp    $0x0,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    $0x0,%al
call   10a0 <emptystrdeque@plt>
mov    %rax,%rdi
xor    %esi,%esi
lea    0xaa2(%rip),%rdx
call   10d0 <strdeque_insert_at@plt>
mov    $0x0,%al
call   10a0 <emptystrdeque@plt>
mov    %rax,%rdi
xor    %esi,%esi
lea    0xa89(%rip),%rdx
call   10d0 <strdeque_insert_at@plt>
mov    $0x0,%al
call   10a0 <emptystrdeque@plt>
mov    %rax,%rdi
xor    %esi,%esi
call   10c0 <strdeque_get_at@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    $0x0,%al
call   10a0 <emptystrdeque@plt>
mov    %rax,%rdi
xor    %esi,%esi
call   1050 <strdeque_remove_at@plt>
mov    $0x0,%al
call   10a0 <emptystrdeque@plt>
mov    %rax,%rdi
call   1030 <strdeque_size@plt>
cmp    $0x0,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    $0x0,%al
call   10a0 <emptystrdeque@plt>
mov    %rax,%rdi
call   1070 <strdeque_clear@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
xor    %eax,%eax
call   1090 <strdeque_new@plt>
mov    %rax,%rbx
lea    0xe37(%rip),%r14
mov    %rax,%rdi
xor    %esi,%esi
mov    %r14,%rdx
call   10d0 <strdeque_insert_at@plt>
mov    %rbx,%rdi
xor    %esi,%esi
call   10c0 <strdeque_get_at@plt>
mov    %rax,%rdi
mov    %r14,%rsi
mov    $0x2,%edx
call   1060 <streq@plt>
mov    %eax,%edi
call   1080 <assert@plt>
lea    0xe01(%rip),%r15
mov    %rbx,%rdi
mov    $0x8,%esi
mov    %r15,%rdx
call   10d0 <strdeque_insert_at@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
call   10c0 <strdeque_get_at@plt>
mov    %rax,%rdi
mov    %r15,%rsi
mov    $0x3,%edx
call   1060 <streq@plt>
mov    %eax,%edi
call   1080 <assert@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
call   1050 <strdeque_remove_at@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
call   10c0 <strdeque_get_at@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1080 <assert@plt>
mov    %rbx,%rdi
xor    %esi,%esi
call   10c0 <strdeque_get_at@plt>
mov    %rax,%rdi
mov    %r14,%rsi
mov    $0x2,%edx
call   1060 <streq@plt>
mov    %eax,%edi
call   1080 <assert@plt>
mov    %rbx,%rdi
xor    %esi,%esi
xor    %edx,%edx
call   10d0 <strdeque_insert_at@plt>
mov    %rbx,%rdi
xor    %esi,%esi
call   10c0 <strdeque_get_at@plt>
mov    %rax,%rdi
mov    %r14,%rsi
mov    $0x2,%edx
call   1060 <streq@plt>
mov    %eax,%edi
call   1080 <assert@plt>
mov    %rbx,%rdi
call   1030 <strdeque_size@plt>
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
call   1080 <assert@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
call   1050 <strdeque_remove_at@plt>
mov    %rbx,%rdi
call   1030 <strdeque_size@plt>
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
call   1080 <assert@plt>
mov    %rbx,%rdi
call   1040 <strdeque_delete@plt>
lea    0xd12(%rip),%rdx
mov    %rbx,%rdi
xor    %esi,%esi
call   10d0 <strdeque_insert_at@plt>
mov    %rbx,%rdi
call   1030 <strdeque_size@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1080 <assert@plt>
mov    %rbx,%rdi
xor    %esi,%esi
call   10c0 <strdeque_get_at@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1080 <assert@plt>
xor    %eax,%eax
call   1090 <strdeque_new@plt>
mov    %rax,%rbx
xor    %eax,%eax
call   1090 <strdeque_new@plt>
mov    %rax,%r14
lea    0xcc4(%rip),%r15
mov    %rbx,%rdi
xor    %esi,%esi
mov    %r15,%rdx
call   10d0 <strdeque_insert_at@plt>
lea    0xcaf(%rip),%r12
mov    %rbx,%rdi
xor    %esi,%esi
mov    %r12,%rdx
call   10d0 <strdeque_insert_at@plt>
lea    0xc9a(%rip),%r13
mov    %rbx,%rdi
xor    %esi,%esi
mov    %r13,%rdx
call   10d0 <strdeque_insert_at@plt>
mov    %r14,%rdi
mov    $0x64,%esi
mov    %r13,%rdx
call   10d0 <strdeque_insert_at@plt>
mov    %r14,%rdi
mov    $0x3e8,%esi
mov    %r12,%rdx
call   10d0 <strdeque_insert_at@plt>
mov    %r14,%rdi
mov    $0x2710,%esi
mov    %r15,%rdx
call   10d0 <strdeque_insert_at@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   10b0 <strdeque_comp@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1080 <assert@plt>
mov    %rbx,%rdi
xor    %esi,%esi
call   1050 <strdeque_remove_at@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   10b0 <strdeque_comp@plt>
xor    %edi,%edi
cmp    $0xffffffff,%eax
sete   %dil
call   1080 <assert@plt>
mov    %r14,%rdi
call   1040 <strdeque_delete@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   10b0 <strdeque_comp@plt>
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
call   1080 <assert@plt>
mov    %rbx,%rdi
call   1040 <strdeque_delete@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   10b0 <strdeque_comp@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1080 <assert@plt>
xor    %eax,%eax
call   10a0 <emptystrdeque@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
call   10b0 <strdeque_comp@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1080 <assert@plt>
xor    %eax,%eax
call   10a0 <emptystrdeque@plt>
mov    %rax,%rdi
mov    %r14,%rsi
call   10b0 <strdeque_comp@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1080 <assert@plt>
xor    %eax,%eax
call   10a0 <emptystrdeque@plt>
mov    %rax,%rbx
xor    %eax,%eax
call   10a0 <emptystrdeque@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
call   10b0 <strdeque_comp@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1080 <assert@plt>
xor    %eax,%eax
call   10a0 <emptystrdeque@plt>
mov    %rax,%rdi
call   1030 <strdeque_size@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1080 <assert@plt>
xor    %eax,%eax
call   10a0 <emptystrdeque@plt>
mov    %rax,%rdi
call   1040 <strdeque_delete@plt>
xor    %eax,%eax
call   10a0 <emptystrdeque@plt>
lea    0xb46(%rip),%rbx
mov    %rax,%rdi
xor    %esi,%esi
mov    %rbx,%rdx
call   10d0 <strdeque_insert_at@plt>
xor    %eax,%eax
call   10a0 <emptystrdeque@plt>
mov    %rax,%rdi
call   1030 <strdeque_size@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1080 <assert@plt>
xor    %eax,%eax
call   10a0 <emptystrdeque@plt>
mov    %rax,%rdi
xor    %esi,%esi
mov    %rbx,%rdx
call   10d0 <strdeque_insert_at@plt>
xor    %eax,%eax
call   10a0 <emptystrdeque@plt>
lea    0xafa(%rip),%rdx
mov    %rax,%rdi
xor    %esi,%esi
call   10d0 <strdeque_insert_at@plt>
xor    %eax,%eax
call   10a0 <emptystrdeque@plt>
mov    %rax,%rdi
xor    %esi,%esi
call   10c0 <strdeque_get_at@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1080 <assert@plt>
xor    %eax,%eax
call   10a0 <emptystrdeque@plt>
mov    %rax,%rdi
xor    %esi,%esi
call   1050 <strdeque_remove_at@plt>
xor    %eax,%eax
call   10a0 <emptystrdeque@plt>
mov    %rax,%rdi
call   1030 <strdeque_size@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1080 <assert@plt>
xor    %eax,%eax
call   10a0 <emptystrdeque@plt>
mov    %rax,%rdi
call   1070 <strdeque_clear@plt>
xor    %eax,%eax
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [2 x i8] c"a\00"
@.str.1 = [3 x i8] c"aa\00"
@.str.2 = [2 x i8] c"b\00"
@.str.3 = [2 x i8] c"c\00"
@.str.4 = [3 x i8] c"cc\00"
@.str.5 = [4 x i8] c"ccc\00"
@.str.6 = [2 x i8] c"d\00"
@.str.7 = [3 x i8] c"dd\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i64
%3 = alloca i64
%4 = alloca i64
store i32 0, i32* %1
%5 = call i64 (...) @strdeque_new()
store i64 %5, i64* %2
%6 = load i64, i64* %2
%7 = call i32 @strdeque_insert_at(i64 %6, i32 0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%8 = load i64, i64* %2
%9 = call i32* @strdeque_get_at(i64 %8, i32 0)
%10 = call i32 @streq(i32* %9, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32 2)
%11 = call i32 @assert(i32 %10)
%12 = load i64, i64* %2
%13 = call i32 @strdeque_insert_at(i64 %12, i32 8, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%14 = load i64, i64* %2
%15 = call i32* @strdeque_get_at(i64 %14, i32 1)
%16 = call i32 @streq(i32* %15, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 3)
%17 = call i32 @assert(i32 %16)
%18 = load i64, i64* %2
%19 = call i32 @strdeque_remove_at(i64 %18, i32 1)
%20 = load i64, i64* %2
%21 = call i32* @strdeque_get_at(i64 %20, i32 1)
%22 = icmp eq i32* %21, null
%23 = zext i1 %22 to i32
%24 = call i32 @assert(i32 %23)
%25 = load i64, i64* %2
%26 = call i32* @strdeque_get_at(i64 %25, i32 0)
%27 = call i32 @streq(i32* %26, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32 2)
%28 = call i32 @assert(i32 %27)
%29 = load i64, i64* %2
%30 = call i32 @strdeque_insert_at(i64 %29, i32 0, i8* null)
%31 = load i64, i64* %2
%32 = call i32* @strdeque_get_at(i64 %31, i32 0)
%33 = call i32 @streq(i32* %32, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32 2)
%34 = call i32 @assert(i32 %33)
%35 = load i64, i64* %2
%36 = call i32 @strdeque_size(i64 %35)
%37 = icmp eq i32 %36, 1
%38 = zext i1 %37 to i32
%39 = call i32 @assert(i32 %38)
%40 = load i64, i64* %2
%41 = call i32 @strdeque_remove_at(i64 %40, i32 1)
%42 = load i64, i64* %2
%43 = call i32 @strdeque_size(i64 %42)
%44 = icmp eq i32 %43, 1
%45 = zext i1 %44 to i32
%46 = call i32 @assert(i32 %45)
%47 = load i64, i64* %2
%48 = call i32 @strdeque_delete(i64 %47)
%49 = load i64, i64* %2
%50 = call i32 @strdeque_insert_at(i64 %49, i32 0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%51 = load i64, i64* %2
%52 = call i32 @strdeque_size(i64 %51)
%53 = icmp eq i32 %52, 0
%54 = zext i1 %53 to i32
%55 = call i32 @assert(i32 %54)
%56 = load i64, i64* %2
%57 = call i32* @strdeque_get_at(i64 %56, i32 0)
%58 = icmp eq i32* %57, null
%59 = zext i1 %58 to i32
%60 = call i32 @assert(i32 %59)
%61 = call i64 (...) @strdeque_new()
store i64 %61, i64* %3
%62 = call i64 (...) @strdeque_new()
store i64 %62, i64* %4
%63 = load i64, i64* %3
%64 = call i32 @strdeque_insert_at(i64 %63, i32 0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%65 = load i64, i64* %3
%66 = call i32 @strdeque_insert_at(i64 %65, i32 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%67 = load i64, i64* %3
%68 = call i32 @strdeque_insert_at(i64 %67, i32 0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%69 = load i64, i64* %4
%70 = call i32 @strdeque_insert_at(i64 %69, i32 100, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%71 = load i64, i64* %4
%72 = call i32 @strdeque_insert_at(i64 %71, i32 1000, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%73 = load i64, i64* %4
%74 = call i32 @strdeque_insert_at(i64 %73, i32 10000, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%75 = load i64, i64* %3
%76 = load i64, i64* %4
%77 = call i32 @strdeque_comp(i64 %75, i64 %76)
%78 = icmp eq i32 %77, 0
%79 = zext i1 %78 to i32
%80 = call i32 @assert(i32 %79)
%81 = load i64, i64* %3
%82 = call i32 @strdeque_remove_at(i64 %81, i32 0)
%83 = load i64, i64* %3
%84 = load i64, i64* %4
%85 = call i32 @strdeque_comp(i64 %83, i64 %84)
%86 = icmp eq i32 %85, -1
%87 = zext i1 %86 to i32
%88 = call i32 @assert(i32 %87)
%89 = load i64, i64* %4
%90 = call i32 @strdeque_delete(i64 %89)
%91 = load i64, i64* %3
%92 = load i64, i64* %4
%93 = call i32 @strdeque_comp(i64 %91, i64 %92)
%94 = icmp eq i32 %93, 1
%95 = zext i1 %94 to i32
%96 = call i32 @assert(i32 %95)
%97 = load i64, i64* %3
%98 = call i32 @strdeque_delete(i64 %97)
%99 = load i64, i64* %3
%100 = load i64, i64* %4
%101 = call i32 @strdeque_comp(i64 %99, i64 %100)
%102 = icmp eq i32 %101, 0
%103 = zext i1 %102 to i32
%104 = call i32 @assert(i32 %103)
%105 = load i64, i64* %3
%106 = call i64 (...) @emptystrdeque()
%107 = call i32 @strdeque_comp(i64 %105, i64 %106)
%108 = icmp eq i32 %107, 0
%109 = zext i1 %108 to i32
%110 = call i32 @assert(i32 %109)
%111 = call i64 (...) @emptystrdeque()
%112 = load i64, i64* %4
%113 = call i32 @strdeque_comp(i64 %111, i64 %112)
%114 = icmp eq i32 %113, 0
%115 = zext i1 %114 to i32
%116 = call i32 @assert(i32 %115)
%117 = call i64 (...) @emptystrdeque()
%118 = call i64 (...) @emptystrdeque()
%119 = call i32 @strdeque_comp(i64 %117, i64 %118)
%120 = icmp eq i32 %119, 0
%121 = zext i1 %120 to i32
%122 = call i32 @assert(i32 %121)
%123 = call i64 (...) @emptystrdeque()
%124 = call i32 @strdeque_size(i64 %123)
%125 = icmp eq i32 %124, 0
%126 = zext i1 %125 to i32
%127 = call i32 @assert(i32 %126)
%128 = call i64 (...) @emptystrdeque()
%129 = call i32 @strdeque_delete(i64 %128)
%130 = call i64 (...) @emptystrdeque()
%131 = call i32 @strdeque_insert_at(i64 %130, i32 0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%132 = call i64 (...) @emptystrdeque()
%133 = call i32 @strdeque_size(i64 %132)
%134 = icmp eq i32 %133, 0
%135 = zext i1 %134 to i32
%136 = call i32 @assert(i32 %135)
%137 = call i64 (...) @emptystrdeque()
%138 = call i32 @strdeque_insert_at(i64 %137, i32 0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%139 = call i64 (...) @emptystrdeque()
%140 = call i32 @strdeque_insert_at(i64 %139, i32 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
%141 = call i64 (...) @emptystrdeque()
%142 = call i32* @strdeque_get_at(i64 %141, i32 0)
%143 = icmp eq i32* %142, null
%144 = zext i1 %143 to i32
%145 = call i32 @assert(i32 %144)
%146 = call i64 (...) @emptystrdeque()
%147 = call i32 @strdeque_remove_at(i64 %146, i32 0)
%148 = call i64 (...) @emptystrdeque()
%149 = call i32 @strdeque_size(i64 %148)
%150 = icmp eq i32 %149, 0
%151 = zext i1 %150 to i32
%152 = call i32 @assert(i32 %151)
%153 = call i64 (...) @emptystrdeque()
%154 = call i32 @strdeque_clear(i64 %153)
ret i32 0
}

LLVM IR (-O2):
@.str = [2 x i8] c"a\00"
@.str.1 = [3 x i8] c"aa\00"
@.str.2 = [2 x i8] c"b\00"
@.str.3 = [2 x i8] c"c\00"
@.str.4 = [3 x i8] c"cc\00"
@.str.5 = [4 x i8] c"ccc\00"
@.str.6 = [2 x i8] c"d\00"
@.str.7 = [3 x i8] c"dd\00"
define i32 @main() {
%1 = tail call i64 (...) @strdeque_new()
%2 = tail call i32 @strdeque_insert_at(i64 %1, i32 0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32* @strdeque_get_at(i64 %1, i32 0)
%4 = tail call i32 @streq(i32* %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32 2)
%5 = tail call i32 @assert(i32 %4)
%6 = tail call i32 @strdeque_insert_at(i64 %1, i32 8, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%7 = tail call i32* @strdeque_get_at(i64 %1, i32 1)
%8 = tail call i32 @streq(i32* %7, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 3)
%9 = tail call i32 @assert(i32 %8)
%10 = tail call i32 @strdeque_remove_at(i64 %1, i32 1)
%11 = tail call i32* @strdeque_get_at(i64 %1, i32 1)
%12 = icmp eq i32* %11, null
%13 = zext i1 %12 to i32
%14 = tail call i32 @assert(i32 %13)
%15 = tail call i32* @strdeque_get_at(i64 %1, i32 0)
%16 = tail call i32 @streq(i32* %15, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32 2)
%17 = tail call i32 @assert(i32 %16)
%18 = tail call i32 @strdeque_insert_at(i64 %1, i32 0, i8* null)
%19 = tail call i32* @strdeque_get_at(i64 %1, i32 0)
%20 = tail call i32 @streq(i32* %19, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32 2)
%21 = tail call i32 @assert(i32 %20)
%22 = tail call i32 @strdeque_size(i64 %1)
%23 = icmp eq i32 %22, 1
%24 = zext i1 %23 to i32
%25 = tail call i32 @assert(i32 %24)
%26 = tail call i32 @strdeque_remove_at(i64 %1, i32 1)
%27 = tail call i32 @strdeque_size(i64 %1)
%28 = icmp eq i32 %27, 1
%29 = zext i1 %28 to i32
%30 = tail call i32 @assert(i32 %29)
%31 = tail call i32 @strdeque_delete(i64 %1)
%32 = tail call i32 @strdeque_insert_at(i64 %1, i32 0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%33 = tail call i32 @strdeque_size(i64 %1)
%34 = icmp eq i32 %33, 0
%35 = zext i1 %34 to i32
%36 = tail call i32 @assert(i32 %35)
%37 = tail call i32* @strdeque_get_at(i64 %1, i32 0)
%38 = icmp eq i32* %37, null
%39 = zext i1 %38 to i32
%40 = tail call i32 @assert(i32 %39)
%41 = tail call i64 (...) @strdeque_new()
%42 = tail call i64 (...) @strdeque_new()
%43 = tail call i32 @strdeque_insert_at(i64 %41, i32 0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%44 = tail call i32 @strdeque_insert_at(i64 %41, i32 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%45 = tail call i32 @strdeque_insert_at(i64 %41, i32 0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%46 = tail call i32 @strdeque_insert_at(i64 %42, i32 100, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%47 = tail call i32 @strdeque_insert_at(i64 %42, i32 1000, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%48 = tail call i32 @strdeque_insert_at(i64 %42, i32 10000, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%49 = tail call i32 @strdeque_comp(i64 %41, i64 %42)
%50 = icmp eq i32 %49, 0
%51 = zext i1 %50 to i32
%52 = tail call i32 @assert(i32 %51)
%53 = tail call i32 @strdeque_remove_at(i64 %41, i32 0)
%54 = tail call i32 @strdeque_comp(i64 %41, i64 %42)
%55 = icmp eq i32 %54, -1
%56 = zext i1 %55 to i32
%57 = tail call i32 @assert(i32 %56)
%58 = tail call i32 @strdeque_delete(i64 %42)
%59 = tail call i32 @strdeque_comp(i64 %41, i64 %42)
%60 = icmp eq i32 %59, 1
%61 = zext i1 %60 to i32
%62 = tail call i32 @assert(i32 %61)
%63 = tail call i32 @strdeque_delete(i64 %41)
%64 = tail call i32 @strdeque_comp(i64 %41, i64 %42)
%65 = icmp eq i32 %64, 0
%66 = zext i1 %65 to i32
%67 = tail call i32 @assert(i32 %66)
%68 = tail call i64 (...) @emptystrdeque()
%69 = tail call i32 @strdeque_comp(i64 %41, i64 %68)
%70 = icmp eq i32 %69, 0
%71 = zext i1 %70 to i32
%72 = tail call i32 @assert(i32 %71)
%73 = tail call i64 (...) @emptystrdeque()
%74 = tail call i32 @strdeque_comp(i64 %73, i64 %42)
%75 = icmp eq i32 %74, 0
%76 = zext i1 %75 to i32
%77 = tail call i32 @assert(i32 %76)
%78 = tail call i64 (...) @emptystrdeque()
%79 = tail call i64 (...) @emptystrdeque()
%80 = tail call i32 @strdeque_comp(i64 %78, i64 %79)
%81 = icmp eq i32 %80, 0
%82 = zext i1 %81 to i32
%83 = tail call i32 @assert(i32 %82)
%84 = tail call i64 (...) @emptystrdeque()
%85 = tail call i32 @strdeque_size(i64 %84)
%86 = icmp eq i32 %85, 0
%87 = zext i1 %86 to i32
%88 = tail call i32 @assert(i32 %87)
%89 = tail call i64 (...) @emptystrdeque()
%90 = tail call i32 @strdeque_delete(i64 %89)
%91 = tail call i64 (...) @emptystrdeque()
%92 = tail call i32 @strdeque_insert_at(i64 %91, i32 0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%93 = tail call i64 (...) @emptystrdeque()
%94 = tail call i32 @strdeque_size(i64 %93)
%95 = icmp eq i32 %94, 0
%96 = zext i1 %95 to i32
%97 = tail call i32 @assert(i32 %96)
%98 = tail call i64 (...) @emptystrdeque()
%99 = tail call i32 @strdeque_insert_at(i64 %98, i32 0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%100 = tail call i64 (...) @emptystrdeque()
%101 = tail call i32 @strdeque_insert_at(i64 %100, i32 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
%102 = tail call i64 (...) @emptystrdeque()
%103 = tail call i32* @strdeque_get_at(i64 %102, i32 0)
%104 = icmp eq i32* %103, null
%105 = zext i1 %104 to i32
%106 = tail call i32 @assert(i32 %105)
%107 = tail call i64 (...) @emptystrdeque()
%108 = tail call i32 @strdeque_remove_at(i64 %107, i32 0)
%109 = tail call i64 (...) @emptystrdeque()
%110 = tail call i32 @strdeque_size(i64 %109)
%111 = icmp eq i32 %110, 0
%112 = zext i1 %111 to i32
%113 = tail call i32 @assert(i32 %112)
%114 = tail call i64 (...) @emptystrdeque()
%115 = tail call i32 @strdeque_clear(i64 %114)
ret i32 0
}