// File: /workspace/github_cpp_makefile_star2_O3/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
movq 0x138(%rdi), %r12
leaq 0x130(%rdi), %rsi
leaq -0x378(%rbp), %rbx
movl $0x8, %edx
movq %rdi, -0x30(%rbp)
movq %rbx, %rdi
callq 0x2250
leaq -0x1f8(%rbp), %rdi
movq %rbx, %rsi
callq 0x3720
leaq -0x1b0(%rbp), %r14
xorl %eax, %eax
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 0x3778
movq -0x1c0(%rbp), %rdi
cmpq %r14, %rdi
je 0x301d
movq -0x1b0(%rbp), %rsi
incq %rsi
callq 0x2190
leaq -0x1e0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x303c
movq -0x1e0(%rbp), %rsi
incq %rsi
callq 0x2190
leaq -0xc0(%rbp), %rax
movq %rax, -0x10(%rax)
leaq -0xd0(%rbp), %r14
leaq 0x400e(%rip), %rsi      # 0x7063
leaq 0x400b(%rip), %rdx      # 0x7067
movq %r14, %rdi
callq 0x2edc
leaq -0xa8(%rbp), %r15
leaq -0x98(%rbp), %rax
movq $0x0, -0x8(%r15)
movq %rax, -0x10(%rax)
leaq 0x3fe3(%rip), %rsi      # 0x7068
leaq 0x3fe1(%rip), %rdx      # 0x706d
movq %r15, %rdi
callq 0x2edc
leaq -0x80(%rbp), %r15
leaq -0x70(%rbp), %rax
movq $0x0, -0x8(%r15)
movq %rax, -0x10(%rax)
leaq 0x3fbf(%rip), %rsi      # 0x706e
leaq 0x3fc1(%rip), %rdx      # 0x7077
movq %r15, %rdi
callq 0x2edc
leaq -0x58(%rbp), %r15
leaq -0x48(%rbp), %rbx
movq $0x0, -0x8(%r15)
movq %rbx, -0x10(%rbx)
leaq 0x3f9f(%rip), %rsi      # 0x7078
leaq 0x3fa1(%rip), %rdx      # 0x7081
movq %r15, %rdi
callq 0x2edc
leaq -0xd0(%rbp), %rsi
movq $0x0, 0x98(%rsi)
leaq -0x178(%rbp), %rdi
leaq -0x130(%rbp), %rcx
leaq -0x110(%rbp), %r8
movl $0x4, %edx
callq 0x3890
movq $-0xa0, %r14
movq -0x10(%rbx), %rdi
cmpq %rdi, %rbx
je 0x3134
movq (%rbx), %rsi
incq %rsi
callq 0x2190
addq $-0x28, %rbx
addq $0x28, %r14
jne 0x3120
testq %r12, %r12
je 0x352d
movq -0x148(%rbp), %r14
cmpq -0x140(%rbp), %r14
je 0x3349
movq -0x30(%rbp), %rax
leaq -0xf0(%rbp), %r12
leaq -0xd0(%rbp), %r13
leaq 0xb0(%rax), %r15
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 0x4348
movq -0xf0(%rbp), %rdi
movl %eax, %ebx
leaq -0xe0(%rbp), %rax
cmpq %rax, %rdi
je 0x31c3
movq -0xe0(%rbp), %rsi
incq %rsi
callq 0x2190
leaq -0xc0(%rbp), %rax
testb %bl, %bl
je 0x31ff
movq %rax, -0xd0(%rbp)
leaq 0x3e87(%rip), %rsi      # 0x7063
leaq 0x3e84(%rip), %rdx      # 0x7067
movq %r13, %rdi
callq 0x2edc
leaq -0x178(%rbp), %rdi
movq %r13, %rsi
callq 0x3914
jmp 0x3313
movq %rax, -0xd0(%rbp)
leaq 0x3e5b(%rip), %rsi      # 0x7068
leaq 0x3e59(%rip), %rdx      # 0x706d
movq %r13, %rdi
callq 0x2edc
leaq -0x178(%rbp), %rdi
movq %r13, %rsi
callq 0x3914
incq (%rax)
leaq -0xc0(%rbp), %rax
movq -0xd0(%rbp), %rdi
cmpq %rax, %rdi
je 0x3250
movq -0xc0(%rbp), %rsi
incq %rsi
callq 0x2190
movl $0x1, %ecx
leaq 0x3e26(%rip), %rsi      # 0x7082
movq %r14, %rdi
xorl %edx, %edx
callq 0x2260
cmpq $-0x1, %rax
je 0x32c4
leaq -0xc0(%rbp), %rax
movq %rax, -0xd0(%rbp)
leaq 0x3ded(%rip), %rsi      # 0x706e
leaq 0x3def(%rip), %rdx      # 0x7077
movq %r13, %rdi
callq 0x2edc
leaq -0x178(%rbp), %rdi
movq %r13, %rsi
callq 0x3914
incq (%rax)
leaq -0xc0(%rbp), %rax
movq -0xd0(%rbp), %rdi
cmpq %rax, %rdi
je 0x32c4
movq -0xc0(%rbp), %rsi
incq %rsi
callq 0x2190
movl $0x1, %ecx
leaq 0x40b2(%rip), %rsi      # 0x7382
movq %r14, %rdi
xorl %edx, %edx
callq 0x2260
cmpq $-0x1, %rax
je 0x3338
leaq -0xc0(%rbp), %rax
movq %rax, -0xd0(%rbp)
leaq 0x3d83(%rip), %rsi      # 0x7078
leaq 0x3d85(%rip), %rdx      # 0x7081
movq %r13, %rdi
callq 0x2edc
leaq -0x178(%rbp), %rdi
movq %r13, %rsi
callq 0x3914
incq (%rax)
leaq -0xc0(%rbp), %rax
movq -0xd0(%rbp), %rdi
cmpq %rax, %rdi
je 0x3338
movq -0xc0(%rbp), %rsi
incq %rsi
callq 0x2190
addq $0x20, %r14
cmpq -0x140(%rbp), %r14
jne 0x3174
leaq -0xc0(%rbp), %rax
leaq -0xd0(%rbp), %rdi
movq %rax, (%rdi)
leaq 0x3d07(%rip), %rsi      # 0x7068
leaq 0x3d05(%rip), %rdx      # 0x706d
callq 0x2edc
leaq -0x178(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
callq 0x3914
cmpq $0x0, (%rax)
je 0x3467
leaq -0x120(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x3cc7(%rip), %rsi      # 0x7063
leaq 0x3cc4(%rip), %rdx      # 0x7067
leaq -0x130(%rbp), %rdi
callq 0x2edc
leaq -0x178(%rbp), %rdi
leaq -0x130(%rbp), %rsi
callq 0x3914
cmpq $0x0, (%rax)
je 0x346b
leaq -0x100(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0x3c90(%rip), %rsi      # 0x706e
leaq 0x3c92(%rip), %rdx      # 0x7077
leaq -0x110(%rbp), %rdi
callq 0x2edc
leaq -0x178(%rbp), %rdi
leaq -0x110(%rbp), %rsi
callq 0x3914
cmpq $0x0, (%rax)
je 0x346f
leaq -0x188(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0x3c5b(%rip), %rsi      # 0x7078
leaq 0x3c5d(%rip), %rdx      # 0x7081
leaq -0x198(%rbp), %rdi
callq 0x2edc
leaq -0x178(%rbp), %rdi
leaq -0x198(%rbp), %rsi
callq 0x3914
cmpq $0x0, (%rax)
movq -0x198(%rbp), %rdi
setne %bl
cmpq %r12, %rdi
je 0x3471
movq -0x188(%rbp), %rsi
incq %rsi
callq 0x2190
jmp 0x3471
xorl %ebx, %ebx
jmp 0x34a7
xorl %ebx, %ebx
jmp 0x348c
xorl %ebx, %ebx
movq -0x110(%rbp), %rdi
cmpq %r15, %rdi
je 0x348c
movq -0x100(%rbp), %rsi
incq %rsi
callq 0x2190
movq -0x130(%rbp), %rdi
cmpq %r14, %rdi
je 0x34a7
movq -0x120(%rbp), %rsi
incq %rsi
callq 0x2190
movq -0xd0(%rbp), %rdi
leaq -0xc0(%rbp), %rax
cmpq %rax, %rdi
je 0x34c9
movq -0xc0(%rbp), %rsi
incq %rsi
callq 0x2190
testb %bl, %bl
je 0x352d
movq 0x7b04(%rip), %rdi      # 0xafd8
leaq 0x3ba9(%rip), %rsi      # 0x7084
movl $0x19, %edx
callq 0x21c0
movq -0x30(%rbp), %rax
movq 0x138(%rax), %rdx
movq 0x130(%rax), %rsi
movq 0x7ada(%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 0x3a02
leaq -0x148(%rbp), %rdi
callq 0x3994
movq 0x7a84(%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
movq -0x198(%rbp), %rdi
movq %rax, %rbx
cmpq %r12, %rdi
je 0x359d
movq -0x188(%rbp), %rsi
incq %rsi
callq 0x2190
jmp 0x359d
jmp 0x359a
movq %rax, %rbx
movq -0x110(%rbp), %rdi
cmpq %r15, %rdi
je 0x35bf
movq -0x100(%rbp), %rsi
incq %rsi
callq 0x2190
jmp 0x35bf
jmp 0x35bc
movq %rax, %rbx
movq -0x130(%rbp), %rdi
cmpq %r14, %rdi
je 0x369a
movq -0x120(%rbp), %rsi
incq %rsi
callq 0x2190
jmp 0x369a
jmp 0x3697
jmp 0x3697
jmp 0x36b6
leaq -0x30(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
movq %rax, %rbx
callq 0x22c0
jmp 0x36ec
jmp 0x360e
jmp 0x360e
movq %rax, %rbx
movq -0x28(%r15), %rdi
leaq -0x18(%r15), %rax
cmpq %rdi, %rax
je 0x3629
movq (%rax), %rsi
incq %rsi
callq 0x2190
addq $-0x28, %r15
cmpq %r14, %r15
jne 0x3611
jmp 0x36ec
movq %rax, %rbx
jmp 0x36ec
movq -0x1c0(%rbp), %rdi
movq %rax, %rbx
cmpq %r14, %rdi
je 0x365d
movq -0x1b0(%rbp), %rsi
incq %rsi
callq 0x2190
leaq -0x1e0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x36f8
movq -0x1e0(%rbp), %rsi
incq %rsi
callq 0x2190
jmp 0x36f8
movq %rax, %rbx
jmp 0x36f8
jmp 0x36b6
jmp 0x3697
jmp 0x36b6
jmp 0x3697
jmp 0x36b6
jmp 0x3697
jmp 0x36b6
jmp 0x36b6
movq %rax, %rbx
movq -0xd0(%rbp), %rdi
leaq -0xc0(%rbp), %rax
cmpq %rax, %rdi
je 0x36e0
movq -0xc0(%rbp), %rsi
jmp 0x36d8
movq %rax, %rbx
jmp 0x36e0
movq -0xf0(%rbp), %rdi
movq %rax, %rbx
leaq -0xe0(%rbp), %rax
cmpq %rax, %rdi
je 0x36e0
movq -0xe0(%rbp), %rsi
incq %rsi
callq 0x2190
leaq -0x178(%rbp), %rdi
callq 0x3a02
leaq -0x148(%rbp), %rdi
callq 0x3994
movq 0x78d1(%rip), %rsi      # 0xafd0
leaq -0x378(%rbp), %rdi
callq 0x21f0
leaq -0x300(%rbp), %rdi
callq 0x20a0
movq %rbx, %rdi
callq 0x2270
nop