// File: /workspace/github_c_makefile_star2_O3/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 0x3b09(%rip), %rsi      # 0x8a46
xorl %r15d, %r15d
xorl %edi, %edi
xorl %eax, %eax
callq 0x3434
leaq 0x3b06(%rip), %rsi      # 0x8a56
leaq 0x3b0e(%rip), %rdx      # 0x8a65
xorl %edi, %edi
xorl %eax, %eax
callq 0x3434
callq 0x47e8
testl %eax, %eax
je 0x4f9c
leaq 0x3b01(%rip), %rsi      # 0x8a71
movl $0x3, %edi
movl $0x1b, %edx
movl $0x1f, %ecx
movl $0x1b, %r8d
xorl %r9d, %r9d
xorl %eax, %eax
callq 0x3434
movl $0x1, %ebx
movl $0x1, %r15d
jmp 0x4fc4
leaq 0x3ae3(%rip), %rsi      # 0x8a86
xorl %edi, %edi
movl $0x1b, %edx
movl $0x20, %ecx
movl $0x1b, %r8d
xorl %r9d, %r9d
xorl %eax, %eax
callq 0x3434
movl $0x2, %ebx
leaq 0x3a8b(%rip), %r14      # 0x8a56
leaq 0x3ac9(%rip), %rdx      # 0x8a9b
xorl %edi, %edi
movq %r14, %rsi
xorl %eax, %eax
callq 0x3434
callq 0x488d
leaq 0x3a9c(%rip), %rsi      # 0x8a86
xorl %edi, %edi
movl $0x1b, %edx
movl $0x20, %ecx
movl $0x1b, %r8d
xorl %r9d, %r9d
xorl %eax, %eax
callq 0x3434
leaq 0x3aa5(%rip), %rdx      # 0x8ab2
xorl %edi, %edi
movq %r14, %rsi
xorl %eax, %eax
callq 0x3434
callq 0x49da
testl %eax, %eax
je 0x503d
incl %r15d
leaq 0x3a45(%rip), %rsi      # 0x8a71
movl $0x3, %edi
movl $0x1b, %edx
movl $0x1f, %ecx
jmp 0x5052
incl %ebx
leaq 0x3a40(%rip), %rsi      # 0x8a86
xorl %edi, %edi
movl $0x1b, %edx
movl $0x20, %ecx
movl $0x1b, %r8d
xorl %r9d, %r9d
xorl %eax, %eax
callq 0x3434
leaq 0x39ed(%rip), %rsi      # 0x8a56
leaq 0x3a56(%rip), %rdx      # 0x8ac6
xorl %edi, %edi
xorl %eax, %eax
callq 0x3434
callq 0x4a6a
testl %eax, %eax
je 0x509d
incl %r15d
leaq 0x39e5(%rip), %rsi      # 0x8a71
movl $0x3, %edi
movl $0x1b, %edx
movl $0x1f, %ecx
jmp 0x50b2
incl %ebx
leaq 0x39e0(%rip), %rsi      # 0x8a86
xorl %edi, %edi
movl $0x1b, %edx
movl $0x20, %ecx
movl $0x1b, %r8d
xorl %r9d, %r9d
xorl %eax, %eax
callq 0x3434
leaq 0x398d(%rip), %rsi      # 0x8a56
leaq 0x3a1d(%rip), %rdx      # 0x8aed
xorl %edi, %edi
xorl %eax, %eax
callq 0x3434
callq 0x4cf2
testl %eax, %eax
je 0x50fd
incl %r15d
leaq 0x3985(%rip), %rsi      # 0x8a71
movl $0x3, %edi
movl $0x1b, %edx
movl $0x1f, %ecx
jmp 0x5112
incl %ebx
leaq 0x3980(%rip), %rsi      # 0x8a86
xorl %edi, %edi
movl $0x1b, %edx
movl $0x20, %ecx
movl $0x1b, %r8d
xorl %r9d, %r9d
xorl %eax, %eax
callq 0x3434
leaq 0x392d(%rip), %rsi      # 0x8a56
leaq 0x39e1(%rip), %rdx      # 0x8b11
xorl %edi, %edi
xorl %eax, %eax
callq 0x3434
callq 0x4da6
testl %eax, %eax
je 0x515d
incl %r15d
leaq 0x3925(%rip), %rsi      # 0x8a71
movl $0x3, %edi
movl $0x1b, %edx
movl $0x1f, %ecx
jmp 0x5172
incl %ebx
leaq 0x3920(%rip), %rsi      # 0x8a86
xorl %edi, %edi
movl $0x1b, %edx
movl $0x20, %ecx
movl $0x1b, %r8d
xorl %r9d, %r9d
xorl %eax, %eax
callq 0x3434
leaq 0x38cd(%rip), %rsi      # 0x8a56
leaq 0x39a0(%rip), %rdx      # 0x8b30
xorl %edi, %edi
xorl %eax, %eax
callq 0x3434
callq 0x4b0f
testl %eax, %eax
je 0x51bd
incl %r15d
leaq 0x38c5(%rip), %rsi      # 0x8a71
movl $0x3, %edi
movl $0x1b, %edx
movl $0x1f, %ecx
jmp 0x51d2
incl %ebx
leaq 0x38c0(%rip), %rsi      # 0x8a86
xorl %edi, %edi
movl $0x1b, %edx
movl $0x20, %ecx
movl $0x1b, %r8d
xorl %r9d, %r9d
xorl %eax, %eax
callq 0x3434
leaq 0x386d(%rip), %rsi      # 0x8a56
leaq 0x396f(%rip), %rdx      # 0x8b5f
xorl %edi, %edi
xorl %eax, %eax
callq 0x3434
callq 0x4bcd
testl %eax, %eax
je 0x521d
incl %r15d
leaq 0x3865(%rip), %rsi      # 0x8a71
movl $0x3, %edi
movl $0x1b, %edx
movl $0x1f, %ecx
jmp 0x5232
incl %ebx
leaq 0x3860(%rip), %rsi      # 0x8a86
xorl %edi, %edi
movl $0x1b, %edx
movl $0x20, %ecx
movl $0x1b, %r8d
xorl %r9d, %r9d
xorl %eax, %eax
callq 0x3434
leaq 0x380d(%rip), %rsi      # 0x8a56
leaq 0x3926(%rip), %rdx      # 0x8b76
xorl %edi, %edi
xorl %eax, %eax
callq 0x3434
callq 0x4e8c
testl %eax, %eax
je 0x527d
incl %r15d
leaq 0x3805(%rip), %rsi      # 0x8a71
movl $0x3, %edi
movl $0x1b, %edx
movl $0x1f, %ecx
jmp 0x5292
incl %ebx
leaq 0x3800(%rip), %rsi      # 0x8a86
xorl %edi, %edi
movl $0x1b, %edx
movl $0x20, %ecx
movl $0x1b, %r8d
xorl %r9d, %r9d
xorl %eax, %eax
callq 0x3434
leal (%r15,%rbx), %ecx
leaq 0x38e6(%rip), %rsi      # 0x8b93
xorl %edi, %edi
movl %ebx, %edx
xorl %eax, %eax
callq 0x3434
xorl %eax, %eax
testl %r15d, %r15d
setne %al
popq %rbx
popq %r14
popq %r15
retq
nop