// File: /workspace/github_cpp_makefile_star2_O3/WShabti-Team[P]WShabtiPict/wshabtilib/java-source-code-parser/java-source-code-parser.cpp
// Function: get_prototypes(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
vector<string> get_prototypes(string source_code_path)
{
    std::ifstream source_input_file;
    source_input_file.open(source_code_path, std::ios_base::in);

    string search_string = "";
    string source_code = "";
    vector<string> prototype;

    smatch sm ;

    //PROTOTYPE REGEX
    regex prototype_regex(R"rgx(((public|private|protected|static|final|native|synchronized|abstract|transient)+\s)+[\w\<\>\[\]]+\s+(\w+) *\([^\)]*\))rgx");
    
    while(!source_input_file.eof())
	{
        getline(source_input_file, search_string);
        source_code.append(search_string);        
    }

    while(regex_search(source_code, sm, prototype_regex))
    {
        prototype.push_back(sm[0]);
        source_code = sm.suffix();
    }

    return prototype;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2b8, %rsp            # imm = 0x2B8
movq %rsi, %r14
movq %rdi, 0x8(%rsp)
leaq 0xb0(%rsp), %r15
movq %r15, %rdi
callq 0x5480
movq %r15, %rdi
movq %r14, %rsi
movl $0x8, %edx
callq 0x5360
leaq 0x60(%rsp), %rbx
movq %rbx, -0x10(%rbx)
leaq 0x15b49(%rip), %rdx     # 0x27b9a
leaq 0x50(%rsp), %rdi
movq %rdx, %rsi
callq 0x74e8
leaq 0x40(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x15b2c(%rip), %rdx     # 0x27b9a
leaq 0x30(%rsp), %rdi
movq %rdx, %rsi
callq 0x74e8
xorps %xmm0, %xmm0
movq 0x8(%rsp), %rax
movups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
movaps %xmm0, 0x80(%rsp)
movaps %xmm0, 0x70(%rsp)
leaq 0x14c59(%rip), %rsi     # 0x26cfb
leaq 0x90(%rsp), %rdi
movl $0x10, %edx
callq 0x125f6
leaq 0xb0(%rsp), %r14
leaq 0x50(%rsp), %r15
leaq 0x30(%rsp), %r12
movq 0xb0(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x2, 0xd0(%rsp,%rax)
jne 0x12113
leaq (%rsp,%rax), %rdi
addq $0xb0, %rdi
movl $0xa, %esi
callq 0x53b0
movsbl %al, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x56f0
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
movq %r12, %rdi
callq 0x5130
jmp 0x120c6
leaq 0x20(%rsp), %rbp
leaq 0x70(%rsp), %r14
leaq 0x90(%rsp), %r15
leaq 0x10(%rsp), %r12
movabsq $-0x5555555555555555, %rbx # imm = 0xAAAAAAAAAAAAAAAB
leaq 0x30(%rsp), %r13
movq 0x30(%rsp), %rdi
movq 0x38(%rsp), %rsi
addq %rdi, %rsi
movq %r14, %rdx
movq %r15, %rcx
xorl %r8d, %r8d
callq 0x1d687
testb %al, %al
je 0x1225b
movq 0x70(%rsp), %rcx
movq 0x78(%rsp), %rdx
movq %rdx, %rax
subq %rcx, %rax
leaq -0x48(%rdx), %rsi
cmpq $0x48, %rax
movq %rcx, %rax
cmoveq %rsi, %rax
cmpq %rcx, %rdx
cmoveq %rsi, %rax
cmpb $0x1, 0x10(%rax)
jne 0x1219e
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %rbp, 0x10(%rsp)
movq %r12, %rdi
callq 0x1f6dc
jmp 0x121b1
movq %rbp, 0x10(%rsp)
movq $0x0, 0x18(%rsp)
movb $0x0, 0x20(%rsp)
movq 0x8(%rsp), %rdi
movq %r12, %rsi
callq 0x10a0c
movq 0x10(%rsp), %rdi
cmpq %rbp, %rdi
je 0x121d5
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x53e0
movq 0x78(%rsp), %rax
movq %rax, %rdx
subq 0x70(%rsp), %rdx
sarq $0x3, %rdx
imulq %rbx, %rdx
movq $-0x48, %rcx
cmpq $0x4, %rdx
jb 0x121fe
movq $-0x18, %rcx
cmpb $0x1, 0x10(%rax,%rcx)
jne 0x1221d
movq (%rax,%rcx), %rsi
movq 0x8(%rax,%rcx), %rdx
movq %rbp, 0x10(%rsp)
movq %r12, %rdi
callq 0x1f6dc
jmp 0x12230
movq %rbp, 0x10(%rsp)
movq $0x0, 0x18(%rsp)
movb $0x0, 0x20(%rsp)
movq %r13, %rdi
movq %r12, %rsi
callq 0x54e0
movq 0x10(%rsp), %rdi
cmpq %rbp, %rdi
je 0x12139
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x53e0
jmp 0x12139
leaq 0x90(%rsp), %rdi
callq 0x1265e
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x12282
movq 0x80(%rsp), %rsi
subq %rdi, %rsi
callq 0x53e0
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
leaq 0x60(%rsp), %rbx
je 0x122a3
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x53e0
movq 0x50(%rsp), %rdi
cmpq %rbx, %rdi
je 0x122ba
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x53e0
leaq 0xb0(%rsp), %rdi
callq 0x50d0
movq 0x8(%rsp), %rax
addq $0x2b8, %rsp            # imm = 0x2B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0x12334
movq %rax, %r14
jmp 0x1236f
jmp 0x122ed
movq %rax, %r14
jmp 0x12386
jmp 0x12315
jmp 0x12315
movq %rax, %r14
movq 0x10(%rsp), %rdi
cmpq %rbp, %rdi
je 0x12318
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x53e0
jmp 0x12318
movq %rax, %r14
leaq 0x60(%rsp), %rbx
leaq 0x40(%rsp), %r13
jmp 0x12327
movq %rax, %r14
leaq 0x90(%rsp), %rdi
callq 0x1265e
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x1234e
movq 0x80(%rsp), %rsi
subq %rdi, %rsi
callq 0x53e0
movq 0x8(%rsp), %rdi
callq 0x107a2
movq 0x30(%rsp), %rdi
cmpq %r13, %rdi
je 0x1236f
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x53e0
movq 0x50(%rsp), %rdi
cmpq %rbx, %rdi
je 0x12386
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x53e0
leaq 0xb0(%rsp), %rdi
callq 0x50d0
movq %r14, %rdi
callq 0x56a0