// File: /workspace/github_c_makefile_star2_O0/qpfiffer[P]38-Moths/src/utests.c
// Function: main
int main(int argc, char *argv[]) {
	UNUSED(argc);
	UNUSED(argv);
	m38_log_msg(LOG_INFO, "Running tests.\n");

	int test_return_val = 0 ;
	int tests_run = 0;
	int tests_failed = 0;

	/* Vector tests */
	run_test(test_vector);
	run_test(test_vector_ptr_append);
	run_test(test_vector_reverse);

	/* Parsing tests */
	run_test(test_request_without_body_is_parseable);
	run_test(test_request_with_body_is_parseable);
	run_test(test_request_body_is_extracted);
	run_test(test_request_with_body_is_parseable_no_clength);
	run_test(test_form_encoded_body);
	run_test(test_range_header_weird_case);

	m38_log_msg(LOG_INFO, "Tests passed: (%i/%i).\n", tests_run, tests_run + tests_failed);

	if (tests_run != tests_run + tests_failed)
		return 1;
	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movl $0x0, -0x4(%rbp)
movl %edi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
xorl %edi, %edi
leaq 0x6026(%rip), %rsi      # 0xca35
movb $0x0, %al
callq 0x3e70
movl $0x0, -0x14(%rbp)
movl $0x0, -0x18(%rbp)
movl $0x0, -0x1c(%rbp)
xorl %edi, %edi
leaq 0x6011(%rip), %rsi      # 0xca45
leaq 0x6019(%rip), %rdx      # 0xca54
movb $0x0, %al
callq 0x3e70
callq 0x5f70
movl %eax, -0x14(%rbp)
cmpl $0x0, -0x14(%rbp)
je 0x6a7f
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
movl $0x3, %edi
leaq 0x5ffb(%rip), %rsi      # 0xca60
movl $0x1b, %r8d
movl $0x1f, %ecx
xorl %r9d, %r9d
movl %r8d, %edx
movb $0x0, %al
callq 0x3e70
jmp 0x6aaa
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
xorl %r9d, %r9d
leaq 0x5fe3(%rip), %rsi      # 0xca75
movl $0x1b, %r8d
movl $0x20, %ecx
movl %r9d, %edi
movl %r8d, %edx
movb $0x0, %al
callq 0x3e70
xorl %edi, %edi
leaq 0x5f92(%rip), %rsi      # 0xca45
leaq 0x5fd0(%rip), %rdx      # 0xca8a
movb $0x0, %al
callq 0x3e70
callq 0x6040
movl %eax, -0x14(%rbp)
cmpl $0x0, -0x14(%rbp)
je 0x6afe
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
movl $0x3, %edi
leaq 0x5f7c(%rip), %rsi      # 0xca60
movl $0x1b, %r8d
movl $0x1f, %ecx
xorl %r9d, %r9d
movl %r8d, %edx
movb $0x0, %al
callq 0x3e70
jmp 0x6b29
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
xorl %r9d, %r9d
leaq 0x5f64(%rip), %rsi      # 0xca75
movl $0x1b, %r8d
movl $0x20, %ecx
movl %r9d, %edi
movl %r8d, %edx
movb $0x0, %al
callq 0x3e70
xorl %edi, %edi
leaq 0x5f13(%rip), %rsi      # 0xca45
leaq 0x5f68(%rip), %rdx      # 0xcaa1
movb $0x0, %al
callq 0x3e70
callq 0x61b0
movl %eax, -0x14(%rbp)
cmpl $0x0, -0x14(%rbp)
je 0x6b7d
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
movl $0x3, %edi
leaq 0x5efd(%rip), %rsi      # 0xca60
movl $0x1b, %r8d
movl $0x1f, %ecx
xorl %r9d, %r9d
movl %r8d, %edx
movb $0x0, %al
callq 0x3e70
jmp 0x6ba8
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
xorl %r9d, %r9d
leaq 0x5ee5(%rip), %rsi      # 0xca75
movl $0x1b, %r8d
movl $0x20, %ecx
movl %r9d, %edi
movl %r8d, %edx
movb $0x0, %al
callq 0x3e70
xorl %edi, %edi
leaq 0x5e94(%rip), %rsi      # 0xca45
leaq 0x5efd(%rip), %rdx      # 0xcab5
movb $0x0, %al
callq 0x3e70
callq 0x6280
movl %eax, -0x14(%rbp)
cmpl $0x0, -0x14(%rbp)
je 0x6bfc
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
movl $0x3, %edi
leaq 0x5e7e(%rip), %rsi      # 0xca60
movl $0x1b, %r8d
movl $0x1f, %ecx
xorl %r9d, %r9d
movl %r8d, %edx
movb $0x0, %al
callq 0x3e70
jmp 0x6c27
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
xorl %r9d, %r9d
leaq 0x5e66(%rip), %rsi      # 0xca75
movl $0x1b, %r8d
movl $0x20, %ecx
movl %r9d, %edi
movl %r8d, %edx
movb $0x0, %al
callq 0x3e70
xorl %edi, %edi
leaq 0x5e15(%rip), %rsi      # 0xca45
leaq 0x5ea5(%rip), %rdx      # 0xcadc
movb $0x0, %al
callq 0x3e70
callq 0x6690
movl %eax, -0x14(%rbp)
cmpl $0x0, -0x14(%rbp)
je 0x6c7b
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
movl $0x3, %edi
leaq 0x5dff(%rip), %rsi      # 0xca60
movl $0x1b, %r8d
movl $0x1f, %ecx
xorl %r9d, %r9d
movl %r8d, %edx
movb $0x0, %al
callq 0x3e70
jmp 0x6ca6
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
xorl %r9d, %r9d
leaq 0x5de7(%rip), %rsi      # 0xca75
movl $0x1b, %r8d
movl $0x20, %ecx
movl %r9d, %edi
movl %r8d, %edx
movb $0x0, %al
callq 0x3e70
xorl %edi, %edi
leaq 0x5d96(%rip), %rsi      # 0xca45
leaq 0x5e4a(%rip), %rdx      # 0xcb00
movb $0x0, %al
callq 0x3e70
callq 0x6780
movl %eax, -0x14(%rbp)
cmpl $0x0, -0x14(%rbp)
je 0x6cfa
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
movl $0x3, %edi
leaq 0x5d80(%rip), %rsi      # 0xca60
movl $0x1b, %r8d
movl $0x1f, %ecx
xorl %r9d, %r9d
movl %r8d, %edx
movb $0x0, %al
callq 0x3e70
jmp 0x6d25
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
xorl %r9d, %r9d
leaq 0x5d68(%rip), %rsi      # 0xca75
movl $0x1b, %r8d
movl $0x20, %ecx
movl %r9d, %edi
movl %r8d, %edx
movb $0x0, %al
callq 0x3e70
xorl %edi, %edi
leaq 0x5d17(%rip), %rsi      # 0xca45
leaq 0x5dea(%rip), %rdx      # 0xcb1f
movb $0x0, %al
callq 0x3e70
callq 0x6370
movl %eax, -0x14(%rbp)
cmpl $0x0, -0x14(%rbp)
je 0x6d79
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
movl $0x3, %edi
leaq 0x5d01(%rip), %rsi      # 0xca60
movl $0x1b, %r8d
movl $0x1f, %ecx
xorl %r9d, %r9d
movl %r8d, %edx
movb $0x0, %al
callq 0x3e70
jmp 0x6da4
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
xorl %r9d, %r9d
leaq 0x5ce9(%rip), %rsi      # 0xca75
movl $0x1b, %r8d
movl $0x20, %ecx
movl %r9d, %edi
movl %r8d, %edx
movb $0x0, %al
callq 0x3e70
xorl %edi, %edi
leaq 0x5c98(%rip), %rsi      # 0xca45
leaq 0x5d9a(%rip), %rdx      # 0xcb4e
movb $0x0, %al
callq 0x3e70
callq 0x64a0
movl %eax, -0x14(%rbp)
cmpl $0x0, -0x14(%rbp)
je 0x6df8
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
movl $0x3, %edi
leaq 0x5c82(%rip), %rsi      # 0xca60
movl $0x1b, %r8d
movl $0x1f, %ecx
xorl %r9d, %r9d
movl %r8d, %edx
movb $0x0, %al
callq 0x3e70
jmp 0x6e23
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
xorl %r9d, %r9d
leaq 0x5c6a(%rip), %rsi      # 0xca75
movl $0x1b, %r8d
movl $0x20, %ecx
movl %r9d, %edi
movl %r8d, %edx
movb $0x0, %al
callq 0x3e70
xorl %edi, %edi
leaq 0x5c19(%rip), %rsi      # 0xca45
leaq 0x5d32(%rip), %rdx      # 0xcb65
movb $0x0, %al
callq 0x3e70
callq 0x68f0
movl %eax, -0x14(%rbp)
cmpl $0x0, -0x14(%rbp)
je 0x6e77
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
movl $0x3, %edi
leaq 0x5c03(%rip), %rsi      # 0xca60
movl $0x1b, %r8d
movl $0x1f, %ecx
xorl %r9d, %r9d
movl %r8d, %edx
movb $0x0, %al
callq 0x3e70
jmp 0x6ea2
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
xorl %r9d, %r9d
leaq 0x5beb(%rip), %rsi      # 0xca75
movl $0x1b, %r8d
movl $0x20, %ecx
movl %r9d, %edi
movl %r8d, %edx
movb $0x0, %al
callq 0x3e70
movl -0x18(%rbp), %edx
movl -0x18(%rbp), %ecx
addl -0x1c(%rbp), %ecx
xorl %edi, %edi
leaq 0x5cce(%rip), %rsi      # 0xcb82
movb $0x0, %al
callq 0x3e70
movl -0x18(%rbp), %eax
movl -0x18(%rbp), %ecx
addl -0x1c(%rbp), %ecx
cmpl %ecx, %eax
je 0x6ed1
movl $0x1, -0x4(%rbp)
jmp 0x6ed8
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)