// File: /workspace/github_cpp_makefile_star2_O1/Neotoxic-off[P]Abstrakt/src/abstract/scan/count_functions.cpp
// Function: abstrakt::count_functions()
bool abstrakt::count_functions()
{
    size_t size = this->current_line.length();
    std::istringstream splitted(this->current_line);
    std::vector<std::string> results(
        std::istream_iterator<std::string>{splitted},
        std::istream_iterator<std::string>()
    );
    std::map<std::string, std::size_t> construction = {
        { "type", 0 },
        { "other", 0 },
        { "parenth_o", 0 },
        { "parenth_c", 0 }
    };

    if (size > 0) {
        for (auto i = results.begin(); i != results.end(); i++) {
            if (this->types.is_type(*i) == true) {
                construction["type"]++;
            } else {
                construction["other"]++;
                if (i->find("(") != std::string::npos) {
                    construction["parenth_o"]++;
                }
                if (i->find(")") != std::string::npos) {
                    construction["parenth_c"]++;
                }
            }
        }

        if (construction["other"] > 0 && construction["type"] > 0 && construction["parenth_o"] > 0 && construction["parenth_c"] > 0) {
            std::cout << "this is maybe a function:" << this->current_line << std::endl;
        }
    }

    return (false);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x358, %rsp            # imm = 0x358
leaq 0x130(%rdi), %rsi
movq %rdi, -0x30(%rbp)
movq 0x138(%rdi), %r12
leaq -0x378(%rbp), %rbx
movq %rbx, %rdi
movl $0x8, %edx
callq 0x2250
leaq -0x1f8(%rbp), %rdi
movq %rbx, %rsi
callq 0x377c
xorl %eax, %eax
leaq -0x1b0(%rbp), %r14
movq %rax, -0x18(%r14)
movq %r14, -0x10(%r14)
movq %rax, -0x8(%r14)
movb %al, (%r14)
movb %al, 0x10(%r14)
leaq -0x148(%rbp), %rdi
leaq -0x1f8(%rbp), %rsi
leaq -0x1c8(%rbp), %rdx
leaq -0xd0(%rbp), %rcx
callq 0x37d4
movq -0x1c0(%rbp), %rdi
cmpq %r14, %rdi
je 0x3035
movq -0x1b0(%rbp), %rsi
incq %rsi
callq 0x2190
leaq -0x1e0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3054
movq -0x1e0(%rbp), %rsi
incq %rsi
callq 0x2190
leaq -0xc0(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x3ffd(%rip), %rsi      # 0x7063
leaq 0x3ffa(%rip), %rdx      # 0x7067
leaq -0xd0(%rbp), %r15
movq %r15, %rdi
callq 0x2ef8
leaq -0xa8(%rbp), %r14
movq $0x0, -0x8(%r14)
leaq -0x98(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x3fcb(%rip), %rsi      # 0x7068
leaq 0x3fc9(%rip), %rdx      # 0x706d
movq %r14, %rdi
callq 0x2ef8
leaq -0x80(%rbp), %r14
movq $0x0, -0x8(%r14)
leaq -0x70(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x3fa7(%rip), %rsi      # 0x706e
leaq 0x3fa9(%rip), %rdx      # 0x7077
movq %r14, %rdi
callq 0x2ef8
leaq -0x58(%rbp), %r14
movq $0x0, -0x8(%r14)
leaq -0x48(%rbp), %rbx
movq %rbx, -0x10(%rbx)
leaq 0x3f87(%rip), %rsi      # 0x7078
leaq 0x3f89(%rip), %rdx      # 0x7081
movq %r14, %rdi
callq 0x2ef8
leaq -0xd0(%rbp), %rsi
movq $0x0, 0x98(%rsi)
leaq -0x178(%rbp), %rdi
leaq -0x130(%rbp), %rcx
leaq -0x110(%rbp), %r8
movl $0x4, %edx
callq 0x38ec
movq $-0xa0, %r14
movq -0x10(%rbx), %rdi
cmpq %rdi, %rbx
je 0x314c
movq (%rbx), %rsi
incq %rsi
callq 0x2190
addq $-0x28, %rbx
addq $0x28, %r14
jne 0x3138
testq %r12, %r12
je 0x356a
movq -0x148(%rbp), %r14
cmpq -0x140(%rbp), %r14
je 0x3361
movq -0x30(%rbp), %rax
leaq 0xb0(%rax), %r15
leaq -0xf0(%rbp), %r12
leaq -0xd0(%rbp), %r13
leaq -0xe0(%rbp), %rax
movq %rax, -0xf0(%rbp)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0x281a
movq %r15, %rdi
movq %r12, %rsi
callq 0x43cc
movl %eax, %ebx
movq -0xf0(%rbp), %rdi
leaq -0xe0(%rbp), %rax
cmpq %rax, %rdi
je 0x31db
movq -0xe0(%rbp), %rsi
incq %rsi
callq 0x2190
leaq -0xc0(%rbp), %rax
testb %bl, %bl
je 0x3217
movq %rax, -0xd0(%rbp)
movq %r13, %rdi
leaq 0x3e6c(%rip), %rsi      # 0x7063
leaq 0x3e69(%rip), %rdx      # 0x7067
callq 0x2ef8
leaq -0x178(%rbp), %rdi
movq %r13, %rsi
callq 0x3970
jmp 0x332b
movq %rax, -0xd0(%rbp)
movq %r13, %rdi
leaq 0x3e40(%rip), %rsi      # 0x7068
leaq 0x3e3e(%rip), %rdx      # 0x706d
callq 0x2ef8
leaq -0x178(%rbp), %rdi
movq %r13, %rsi
callq 0x3970
incq (%rax)
movq -0xd0(%rbp), %rdi
leaq -0xc0(%rbp), %rax
cmpq %rax, %rdi
je 0x3268
movq -0xc0(%rbp), %rsi
incq %rsi
callq 0x2190
movl $0x1, %ecx
movq %r14, %rdi
leaq 0x3e0b(%rip), %rsi      # 0x7082
xorl %edx, %edx
callq 0x2260
cmpq $-0x1, %rax
je 0x32dc
leaq -0xc0(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq %r13, %rdi
leaq 0x3dd2(%rip), %rsi      # 0x706e
leaq 0x3dd4(%rip), %rdx      # 0x7077
callq 0x2ef8
leaq -0x178(%rbp), %rdi
movq %r13, %rsi
callq 0x3970
incq (%rax)
movq -0xd0(%rbp), %rdi
leaq -0xc0(%rbp), %rax
cmpq %rax, %rdi
je 0x32dc
movq -0xc0(%rbp), %rsi
incq %rsi
callq 0x2190
movl $0x1, %ecx
movq %r14, %rdi
leaq 0x4097(%rip), %rsi      # 0x7382
xorl %edx, %edx
callq 0x2260
cmpq $-0x1, %rax
je 0x3350
leaq -0xc0(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq %r13, %rdi
leaq 0x3d68(%rip), %rsi      # 0x7078
leaq 0x3d6a(%rip), %rdx      # 0x7081
callq 0x2ef8
leaq -0x178(%rbp), %rdi
movq %r13, %rsi
callq 0x3970
incq (%rax)
movq -0xd0(%rbp), %rdi
leaq -0xc0(%rbp), %rax
cmpq %rax, %rdi
je 0x3350
movq -0xc0(%rbp), %rsi
incq %rsi
callq 0x2190
addq $0x20, %r14
cmpq -0x140(%rbp), %r14
jne 0x318c
leaq -0xd0(%rbp), %rdi
leaq -0xc0(%rbp), %rax
movq %rax, (%rdi)
leaq 0x3cef(%rip), %rsi      # 0x7068
leaq 0x3ced(%rip), %rdx      # 0x706d
callq 0x2ef8
leaq -0x178(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
callq 0x3970
movq (%rax), %rbx
testq %rbx, %rbx
je 0x3470
leaq -0x120(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x3cad(%rip), %rsi      # 0x7063
leaq 0x3caa(%rip), %rdx      # 0x7067
leaq -0x130(%rbp), %rdi
callq 0x2ef8
leaq -0x178(%rbp), %rdi
leaq -0x130(%rbp), %rsi
callq 0x3970
cmpq $0x0, (%rax)
je 0x3470
leaq -0x100(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0x3c76(%rip), %rsi      # 0x706e
leaq 0x3c78(%rip), %rdx      # 0x7077
leaq -0x110(%rbp), %rdi
callq 0x2ef8
leaq -0x178(%rbp), %rdi
leaq -0x110(%rbp), %rsi
callq 0x3970
cmpq $0x0, (%rax)
je 0x35b5
leaq -0x188(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0x3c3d(%rip), %rsi      # 0x7078
leaq 0x3c3f(%rip), %rdx      # 0x7081
leaq -0x198(%rbp), %rdi
callq 0x2ef8
leaq -0x178(%rbp), %rdi
leaq -0x198(%rbp), %rsi
callq 0x3970
cmpq $0x0, (%rax)
setne %r14b
movb $0x1, %r15b
movb $0x1, %al
jmp 0x3478
xorl %r15d, %r15d
xorl %eax, %eax
xorl %r14d, %r14d
testb %al, %al
je 0x349b
leaq -0x188(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x349b
movq -0x188(%rbp), %rsi
incq %rsi
callq 0x2190
testb %r15b, %r15b
je 0x34bf
leaq -0x100(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x34bf
movq -0x100(%rbp), %rsi
incq %rsi
callq 0x2190
testq %rbx, %rbx
je 0x34e3
leaq -0x120(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x34e3
movq -0x120(%rbp), %rsi
incq %rsi
callq 0x2190
movq -0xd0(%rbp), %rdi
leaq -0xc0(%rbp), %rax
cmpq %rax, %rdi
je 0x3505
movq -0xc0(%rbp), %rsi
incq %rsi
callq 0x2190
testb %r14b, %r14b
je 0x356a
movq 0x7ac7(%rip), %rdi      # 0xafd8
leaq 0x3b6c(%rip), %rsi      # 0x7084
movl $0x19, %edx
callq 0x21c0
movq -0x30(%rbp), %rax
movq 0x130(%rax), %rsi
movq 0x138(%rax), %rdx
movq 0x7a9d(%rip), %rdi      # 0xafd8
callq 0x21c0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2170
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2110
leaq -0x178(%rbp), %rdi
callq 0x3a5a
leaq -0x148(%rbp), %rdi
callq 0x39f0
movq 0x7a47(%rip), %rsi      # 0xafd0
leaq -0x378(%rbp), %rdi
callq 0x21f0
leaq -0x300(%rbp), %rdi
callq 0x20a0
xorl %eax, %eax
addq $0x358, %rsp            # imm = 0x358
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movb $0x1, %r15b
jmp 0x3473
movq %rax, %rbx
movq -0x198(%rbp), %rdi
cmpq %r12, %rdi
je 0x35e2
movq -0x188(%rbp), %rsi
incq %rsi
callq 0x2190
jmp 0x35e2
jmp 0x35df
movq %rax, %rbx
movq -0x110(%rbp), %rdi
cmpq %r15, %rdi
je 0x3604
movq -0x100(%rbp), %rsi
incq %rsi
callq 0x2190
jmp 0x3604
jmp 0x3601
movq %rax, %rbx
movq -0x130(%rbp), %rdi
cmpq %r14, %rdi
je 0x36f7
movq -0x120(%rbp), %rsi
incq %rsi
callq 0x2190
jmp 0x36f7
jmp 0x36f4
jmp 0x36f4
jmp 0x3713
movq %rax, %rbx
leaq -0x30(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
callq 0x22c0
movb $0x1, %al
jmp 0x3661
jmp 0x3652
jmp 0x3652
movq %rax, %rbx
xorl %eax, %eax
jmp 0x3661
movq %rax, %rbx
xorl %eax, %eax
movq %r15, %r14
cmpq %r14, %r15
sete %cl
orb %al, %cl
jne 0x3749
leaq -0xd0(%rbp), %r15
movq -0x28(%r14), %rdi
leaq -0x18(%r14), %rax
cmpq %rdi, %rax
je 0x368e
movq (%rax), %rsi
incq %rsi
callq 0x2190
addq $-0x28, %r14
cmpq %r15, %r14
jne 0x3676
jmp 0x3749
movq %rax, %rbx
movq -0x1c0(%rbp), %rdi
cmpq %r14, %rdi
je 0x36ba
movq -0x1b0(%rbp), %rsi
incq %rsi
callq 0x2190
leaq -0x1e0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3755
movq -0x1e0(%rbp), %rsi
incq %rsi
callq 0x2190
jmp 0x3755
movq %rax, %rbx
jmp 0x3755
jmp 0x3713
jmp 0x36f4
jmp 0x3713
jmp 0x36f4
jmp 0x3713
jmp 0x36f4
jmp 0x3713
jmp 0x3713
movq %rax, %rbx
movq -0xd0(%rbp), %rdi
leaq -0xc0(%rbp), %rax
cmpq %rax, %rdi
je 0x373d
movq -0xc0(%rbp), %rsi
jmp 0x3735
movq %rax, %rbx
jmp 0x373d
movq %rax, %rbx
movq -0xf0(%rbp), %rdi
leaq -0xe0(%rbp), %rax
cmpq %rax, %rdi
je 0x373d
movq -0xe0(%rbp), %rsi
incq %rsi
callq 0x2190
leaq -0x178(%rbp), %rdi
callq 0x3a5a
leaq -0x148(%rbp), %rdi
callq 0x39f0
movq 0x7874(%rip), %rsi      # 0xafd0
leaq -0x378(%rbp), %rdi
callq 0x21f0
leaq -0x300(%rbp), %rdi
callq 0x20a0
movq %rbx, %rdi
callq 0x2270