// File: /workspace/github_c_makefile_star2_O2/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 0x3e76(%rip), %rsi      # 0x8a46
xorl %r15d, %r15d
xorl %edi, %edi
xorl %eax, %eax
callq 0x325c
leaq 0x3e73(%rip), %rsi      # 0x8a56
leaq 0x3e7b(%rip), %rdx      # 0x8a65
xorl %edi, %edi
xorl %eax, %eax
callq 0x325c
callq 0x4504
testl %eax, %eax
je 0x4c21
leaq 0x3e6e(%rip), %rsi      # 0x8a71
pushq $0x3
popq %rdi
pushq $0x1f
popq %rcx
pushq $0x1b
popq %rdx
movl %edx, %r8d
xorl %r9d, %r9d
xorl %eax, %eax
callq 0x325c
pushq $0x1
popq %rbx
movl %ebx, %r15d
jmp 0x4c40
leaq 0x3e5e(%rip), %rsi      # 0x8a86
pushq $0x20
popq %rcx
pushq $0x1b
popq %rdx
xorl %edi, %edi
movl %edx, %r8d
xorl %r9d, %r9d
xorl %eax, %eax
callq 0x325c
pushq $0x2
popq %rbx
leaq 0x3e0f(%rip), %r14      # 0x8a56
leaq 0x3e4d(%rip), %rdx      # 0x8a9b
xorl %edi, %edi
movq %r14, %rsi
xorl %eax, %eax
callq 0x325c
callq 0x458e
leaq 0x3e20(%rip), %rsi      # 0x8a86
pushq $0x20
popq %rcx
pushq $0x1b
popq %rdx
xorl %edi, %edi
movl %edx, %r8d
xorl %r9d, %r9d
xorl %eax, %eax
callq 0x325c
leaq 0x3e30(%rip), %rdx      # 0x8ab2
xorl %edi, %edi
movq %r14, %rsi
xorl %eax, %eax
callq 0x325c
callq 0x46cc
testl %eax, %eax
je 0x4cac
incl %r15d
leaq 0x3dd0(%rip), %rsi      # 0x8a71
pushq $0x3
popq %rdi
pushq $0x1f
popq %rcx
pushq $0x1b
popq %rdx
jmp 0x4cbd
incl %ebx
leaq 0x3dd1(%rip), %rsi      # 0x8a86
pushq $0x20
popq %rcx
pushq $0x1b
popq %rdx
xorl %edi, %edi
movl %edx, %r8d
xorl %r9d, %r9d
xorl %eax, %eax
callq 0x325c
leaq 0x3d85(%rip), %rsi      # 0x8a56
leaq 0x3dee(%rip), %rdx      # 0x8ac6
xorl %edi, %edi
xorl %eax, %eax
callq 0x325c
callq 0x474c
testl %eax, %eax
je 0x4cff
incl %r15d
leaq 0x3d7d(%rip), %rsi      # 0x8a71
pushq $0x3
popq %rdi
pushq $0x1f
popq %rcx
pushq $0x1b
popq %rdx
jmp 0x4d10
incl %ebx
leaq 0x3d7e(%rip), %rsi      # 0x8a86
pushq $0x20
popq %rcx
pushq $0x1b
popq %rdx
xorl %edi, %edi
movl %edx, %r8d
xorl %r9d, %r9d
xorl %eax, %eax
callq 0x325c
leaq 0x3d32(%rip), %rsi      # 0x8a56
leaq 0x3dc2(%rip), %rdx      # 0x8aed
xorl %edi, %edi
xorl %eax, %eax
callq 0x325c
callq 0x49b1
testl %eax, %eax
je 0x4d52
incl %r15d
leaq 0x3d2a(%rip), %rsi      # 0x8a71
pushq $0x3
popq %rdi
pushq $0x1f
popq %rcx
pushq $0x1b
popq %rdx
jmp 0x4d63
incl %ebx
leaq 0x3d2b(%rip), %rsi      # 0x8a86
pushq $0x20
popq %rcx
pushq $0x1b
popq %rdx
xorl %edi, %edi
movl %edx, %r8d
xorl %r9d, %r9d
xorl %eax, %eax
callq 0x325c
leaq 0x3cdf(%rip), %rsi      # 0x8a56
leaq 0x3d93(%rip), %rdx      # 0x8b11
xorl %edi, %edi
xorl %eax, %eax
callq 0x325c
callq 0x4a55
testl %eax, %eax
je 0x4da5
incl %r15d
leaq 0x3cd7(%rip), %rsi      # 0x8a71
pushq $0x3
popq %rdi
pushq $0x1f
popq %rcx
pushq $0x1b
popq %rdx
jmp 0x4db6
incl %ebx
leaq 0x3cd8(%rip), %rsi      # 0x8a86
pushq $0x20
popq %rcx
pushq $0x1b
popq %rdx
xorl %edi, %edi
movl %edx, %r8d
xorl %r9d, %r9d
xorl %eax, %eax
callq 0x325c
leaq 0x3c8c(%rip), %rsi      # 0x8a56
leaq 0x3d5f(%rip), %rdx      # 0x8b30
xorl %edi, %edi
xorl %eax, %eax
callq 0x325c
callq 0x47e2
testl %eax, %eax
je 0x4df8
incl %r15d
leaq 0x3c84(%rip), %rsi      # 0x8a71
pushq $0x3
popq %rdi
pushq $0x1f
popq %rcx
pushq $0x1b
popq %rdx
jmp 0x4e09
incl %ebx
leaq 0x3c85(%rip), %rsi      # 0x8a86
pushq $0x20
popq %rcx
pushq $0x1b
popq %rdx
xorl %edi, %edi
movl %edx, %r8d
xorl %r9d, %r9d
xorl %eax, %eax
callq 0x325c
leaq 0x3c39(%rip), %rsi      # 0x8a56
leaq 0x3d3b(%rip), %rdx      # 0x8b5f
xorl %edi, %edi
xorl %eax, %eax
callq 0x325c
callq 0x4898
testl %eax, %eax
je 0x4e4b
incl %r15d
leaq 0x3c31(%rip), %rsi      # 0x8a71
pushq $0x3
popq %rdi
pushq $0x1f
popq %rcx
pushq $0x1b
popq %rdx
jmp 0x4e5c
incl %ebx
leaq 0x3c32(%rip), %rsi      # 0x8a86
pushq $0x20
popq %rcx
pushq $0x1b
popq %rdx
xorl %edi, %edi
movl %edx, %r8d
xorl %r9d, %r9d
xorl %eax, %eax
callq 0x325c
leaq 0x3be6(%rip), %rsi      # 0x8a56
leaq 0x3cff(%rip), %rdx      # 0x8b76
xorl %edi, %edi
xorl %eax, %eax
callq 0x325c
callq 0x4b2e
testl %eax, %eax
je 0x4e9e
incl %r15d
leaq 0x3bde(%rip), %rsi      # 0x8a71
pushq $0x3
popq %rdi
pushq $0x1f
popq %rcx
pushq $0x1b
popq %rdx
jmp 0x4eaf
incl %ebx
leaq 0x3bdf(%rip), %rsi      # 0x8a86
pushq $0x20
popq %rcx
pushq $0x1b
popq %rdx
xorl %edi, %edi
movl %edx, %r8d
xorl %r9d, %r9d
xorl %eax, %eax
callq 0x325c
leal (%r15,%rbx), %ecx
leaq 0x3ccc(%rip), %rsi      # 0x8b93
xorl %edi, %edi
movl %ebx, %edx
xorl %eax, %eax
callq 0x325c
xorl %eax, %eax
testl %r15d, %r15d
setne %al
popq %rbx
popq %r14
popq %r15
retq