// File: /workspace/github_c_makefile_star2_O1/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 %r15
pushq %r14
pushq %rbx
leaq 0x4aed(%rip), %rsi      # 0x9a46
xorl %r15d, %r15d
xorl %edi, %edi
xorl %eax, %eax
callq 0x3474
leaq 0x4aea(%rip), %rsi      # 0x9a56
leaq 0x4af2(%rip), %rdx      # 0x9a65
xorl %edi, %edi
xorl %eax, %eax
callq 0x3474
callq 0x4804
testl %eax, %eax
je 0x4fb8
leaq 0x4ae5(%rip), %rsi      # 0x9a71
movl $0x3, %edi
movl $0x1b, %edx
movl $0x1f, %ecx
movl $0x1b, %r8d
xorl %r9d, %r9d
xorl %eax, %eax
callq 0x3474
movl $0x1, %ebx
movl $0x1, %r15d
jmp 0x4fe0
leaq 0x4ac7(%rip), %rsi      # 0x9a86
xorl %edi, %edi
movl $0x1b, %edx
movl $0x20, %ecx
movl $0x1b, %r8d
xorl %r9d, %r9d
xorl %eax, %eax
callq 0x3474
movl $0x2, %ebx
leaq 0x4a6f(%rip), %r14      # 0x9a56
leaq 0x4aad(%rip), %rdx      # 0x9a9b
xorl %edi, %edi
movq %r14, %rsi
xorl %eax, %eax
callq 0x3474
callq 0x48a9
leaq 0x4a80(%rip), %rsi      # 0x9a86
xorl %edi, %edi
movl $0x1b, %edx
movl $0x20, %ecx
movl $0x1b, %r8d
xorl %r9d, %r9d
xorl %eax, %eax
callq 0x3474
leaq 0x4a89(%rip), %rdx      # 0x9ab2
xorl %edi, %edi
movq %r14, %rsi
xorl %eax, %eax
callq 0x3474
callq 0x49f6
testl %eax, %eax
je 0x5059
incl %r15d
leaq 0x4a29(%rip), %rsi      # 0x9a71
movl $0x3, %edi
movl $0x1b, %edx
movl $0x1f, %ecx
jmp 0x506e
incl %ebx
leaq 0x4a24(%rip), %rsi      # 0x9a86
xorl %edi, %edi
movl $0x1b, %edx
movl $0x20, %ecx
movl $0x1b, %r8d
xorl %r9d, %r9d
xorl %eax, %eax
callq 0x3474
leaq 0x49d1(%rip), %rsi      # 0x9a56
leaq 0x4a3a(%rip), %rdx      # 0x9ac6
xorl %edi, %edi
xorl %eax, %eax
callq 0x3474
callq 0x4a86
testl %eax, %eax
je 0x50b9
incl %r15d
leaq 0x49c9(%rip), %rsi      # 0x9a71
movl $0x3, %edi
movl $0x1b, %edx
movl $0x1f, %ecx
jmp 0x50ce
incl %ebx
leaq 0x49c4(%rip), %rsi      # 0x9a86
xorl %edi, %edi
movl $0x1b, %edx
movl $0x20, %ecx
movl $0x1b, %r8d
xorl %r9d, %r9d
xorl %eax, %eax
callq 0x3474
leaq 0x4971(%rip), %rsi      # 0x9a56
leaq 0x4a01(%rip), %rdx      # 0x9aed
xorl %edi, %edi
xorl %eax, %eax
callq 0x3474
callq 0x4d0e
testl %eax, %eax
je 0x5119
incl %r15d
leaq 0x4969(%rip), %rsi      # 0x9a71
movl $0x3, %edi
movl $0x1b, %edx
movl $0x1f, %ecx
jmp 0x512e
incl %ebx
leaq 0x4964(%rip), %rsi      # 0x9a86
xorl %edi, %edi
movl $0x1b, %edx
movl $0x20, %ecx
movl $0x1b, %r8d
xorl %r9d, %r9d
xorl %eax, %eax
callq 0x3474
leaq 0x4911(%rip), %rsi      # 0x9a56
leaq 0x49c5(%rip), %rdx      # 0x9b11
xorl %edi, %edi
xorl %eax, %eax
callq 0x3474
callq 0x4dc2
testl %eax, %eax
je 0x5179
incl %r15d
leaq 0x4909(%rip), %rsi      # 0x9a71
movl $0x3, %edi
movl $0x1b, %edx
movl $0x1f, %ecx
jmp 0x518e
incl %ebx
leaq 0x4904(%rip), %rsi      # 0x9a86
xorl %edi, %edi
movl $0x1b, %edx
movl $0x20, %ecx
movl $0x1b, %r8d
xorl %r9d, %r9d
xorl %eax, %eax
callq 0x3474
leaq 0x48b1(%rip), %rsi      # 0x9a56
leaq 0x4984(%rip), %rdx      # 0x9b30
xorl %edi, %edi
xorl %eax, %eax
callq 0x3474
callq 0x4b2b
testl %eax, %eax
je 0x51d9
incl %r15d
leaq 0x48a9(%rip), %rsi      # 0x9a71
movl $0x3, %edi
movl $0x1b, %edx
movl $0x1f, %ecx
jmp 0x51ee
incl %ebx
leaq 0x48a4(%rip), %rsi      # 0x9a86
xorl %edi, %edi
movl $0x1b, %edx
movl $0x20, %ecx
movl $0x1b, %r8d
xorl %r9d, %r9d
xorl %eax, %eax
callq 0x3474
leaq 0x4851(%rip), %rsi      # 0x9a56
leaq 0x4953(%rip), %rdx      # 0x9b5f
xorl %edi, %edi
xorl %eax, %eax
callq 0x3474
callq 0x4be9
testl %eax, %eax
je 0x5239
incl %r15d
leaq 0x4849(%rip), %rsi      # 0x9a71
movl $0x3, %edi
movl $0x1b, %edx
movl $0x1f, %ecx
jmp 0x524e
incl %ebx
leaq 0x4844(%rip), %rsi      # 0x9a86
xorl %edi, %edi
movl $0x1b, %edx
movl $0x20, %ecx
movl $0x1b, %r8d
xorl %r9d, %r9d
xorl %eax, %eax
callq 0x3474
leaq 0x47f1(%rip), %rsi      # 0x9a56
leaq 0x490a(%rip), %rdx      # 0x9b76
xorl %edi, %edi
xorl %eax, %eax
callq 0x3474
callq 0x4ea8
testl %eax, %eax
je 0x5299
incl %r15d
leaq 0x47e9(%rip), %rsi      # 0x9a71
movl $0x3, %edi
movl $0x1b, %edx
movl $0x1f, %ecx
jmp 0x52ae
incl %ebx
leaq 0x47e4(%rip), %rsi      # 0x9a86
xorl %edi, %edi
movl $0x1b, %edx
movl $0x20, %ecx
movl $0x1b, %r8d
xorl %r9d, %r9d
xorl %eax, %eax
callq 0x3474
leal (%r15,%rbx), %ecx
leaq 0x48ca(%rip), %rsi      # 0x9b93
xorl %edi, %edi
movl %ebx, %edx
xorl %eax, %eax
callq 0x3474
xorl %eax, %eax
testl %r15d, %r15d
setne %al
popq %rbx
popq %r14
popq %r15
retq
nop