// File: WShabti-Team[P]WShabtiPict/wshabtilib/junit-test-case-generator/junit-test-case-generator.cpp
// Function: test_source_code_generate(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>)
void test_source_code_generate(string input_file_path, string output_file_path, string test_class_name, vector<string> prototypes)
{
    string import_test = "import static org.junit.jupiter.api.Assertions.assertEquals;"
                         "\nimport org.junit.jupiter.params.ParameterizedTest;"
                         "\nimport org.junit.jupiter.params.provider.CsvFileSource;";
    string init_of_class = "\n\nclass " + test_class_name +"Test {";
    string end_of_class = "\n}";
    
    string test_source_code = import_test + init_of_class;
    string class_name = get_class_name(input_file_path);

    for(int i =0; i < prototypes.size(); i++)
    {
        test_source_code = test_source_code + method_test_case_generate(output_file_path, prototypes[i], class_name);
    }
    
    test_source_code = test_source_code + end_of_class;

    //CREATE .java TEST FILE
    ofstream java_test_class;
  	java_test_class.open(output_file_path + class_name + "Test.java", ios_base::out);
    java_test_class << test_source_code;
    java_test_class.close();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x470, %rsp            # imm = 0x470
movq %rdi, -0x450(%rbp)
movq %rsi, -0x448(%rbp)
movq %rdx, -0x440(%rbp)
movq %rcx, -0x438(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
leaq -0x41(%rbp), %rdi
movq %rdi, -0x430(%rbp)
callq 0x79e0
movq -0x430(%rbp), %rdx
leaq 0x77ff(%rip), %rsi      # 0x65cd4
leaq -0x40(%rbp), %rdi
callq 0xd700
jmp 0x5e4e0
leaq -0x41(%rbp), %rdi
callq 0x7660
movq -0x440(%rbp), %rdx
leaq 0x7885(%rip), %rsi      # 0x65d7c
leaq -0x98(%rbp), %rdi
callq 0x5ebf0
jmp 0x5e505
leaq 0x7879(%rip), %rdx      # 0x65d85
leaq -0x78(%rbp), %rdi
leaq -0x98(%rbp), %rsi
callq 0x5ea00
jmp 0x5e51e
leaq -0x98(%rbp), %rdi
callq 0x73e0
leaq -0xb9(%rbp), %rdi
movq %rdi, -0x458(%rbp)
callq 0x79e0
movq -0x458(%rbp), %rdx
leaq 0x7841(%rip), %rsi      # 0x65d8c
leaq -0xb8(%rbp), %rdi
callq 0xd700
jmp 0x5e559
leaq -0xb9(%rbp), %rdi
callq 0x7660
leaq -0xe0(%rbp), %rdi
leaq -0x40(%rbp), %rsi
leaq -0x78(%rbp), %rdx
callq 0x5ed00
jmp 0x5e57b
movq -0x450(%rbp), %rsi
leaq -0x120(%rbp), %rdi
callq 0x7270
jmp 0x5e590
leaq -0x100(%rbp), %rdi
leaq -0x120(%rbp), %rsi
callq 0x35b50
jmp 0x5e5a5
leaq -0x120(%rbp), %rdi
callq 0x73e0
movl $0x0, -0x124(%rbp)
movq -0x438(%rbp), %rdi
movslq -0x124(%rbp), %rax
movq %rax, -0x460(%rbp)
callq 0x32c20
movq %rax, %rcx
movq -0x460(%rbp), %rax
cmpq %rcx, %rax
jae 0x5e7f8
movq -0x448(%rbp), %rsi
leaq -0x188(%rbp), %rdi
callq 0x7270
jmp 0x5e5fd
movq -0x438(%rbp), %rdi
movslq -0x124(%rbp), %rsi
callq 0x32c40
movq %rax, %rsi
leaq -0x1a8(%rbp), %rdi
callq 0x7270
jmp 0x5e621
leaq -0x1c8(%rbp), %rdi
leaq -0x100(%rbp), %rsi
callq 0x7270
jmp 0x5e636
leaq -0x168(%rbp), %rdi
leaq -0x188(%rbp), %rsi
leaq -0x1a8(%rbp), %rdx
leaq -0x1c8(%rbp), %rcx
callq 0x5d890
jmp 0x5e659
leaq -0x148(%rbp), %rdi
leaq -0xe0(%rbp), %rsi
leaq -0x168(%rbp), %rdx
callq 0x5ed80
jmp 0x5e675
leaq -0xe0(%rbp), %rdi
leaq -0x148(%rbp), %rsi
callq 0x7720
leaq -0x148(%rbp), %rdi
callq 0x73e0
leaq -0x168(%rbp), %rdi
callq 0x73e0
leaq -0x1c8(%rbp), %rdi
callq 0x73e0
leaq -0x1a8(%rbp), %rdi
callq 0x73e0
leaq -0x188(%rbp), %rdi
callq 0x73e0
movl -0x124(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x124(%rbp)
jmp 0x5e5bb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x41(%rbp), %rdi
callq 0x7660
jmp 0x5e9a2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x5e999
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x98(%rbp), %rdi
callq 0x73e0
jmp 0x5e999
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0xb9(%rbp), %rdi
callq 0x7660
jmp 0x5e990
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x5e984
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x5e978
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x120(%rbp), %rdi
callq 0x73e0
jmp 0x5e978
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x5e96c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x5e7e7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x5e7db
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x5e7cf
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x168(%rbp), %rdi
callq 0x73e0
leaq -0x1c8(%rbp), %rdi
callq 0x73e0
leaq -0x1a8(%rbp), %rdi
callq 0x73e0
leaq -0x188(%rbp), %rdi
callq 0x73e0
jmp 0x5e96c
leaq -0x1e8(%rbp), %rdi
leaq -0xe0(%rbp), %rsi
leaq -0xb8(%rbp), %rdx
callq 0x5ed00
jmp 0x5e814
leaq -0xe0(%rbp), %rdi
leaq -0x1e8(%rbp), %rsi
movq %rsi, -0x468(%rbp)
callq 0x7720
movq -0x468(%rbp), %rdi
callq 0x73e0
leaq -0x3e8(%rbp), %rdi
callq 0x7970
jmp 0x5e848
movq -0x448(%rbp), %rsi
leaq -0x428(%rbp), %rdi
leaq -0x100(%rbp), %rdx
callq 0x5ed00
jmp 0x5e864
leaq 0x7524(%rip), %rdx      # 0x65d8f
leaq -0x408(%rbp), %rdi
leaq -0x428(%rbp), %rsi
callq 0x5ea00
jmp 0x5e880
leaq -0x3e8(%rbp), %rdi
leaq -0x408(%rbp), %rsi
movl $0x10, %edx
callq 0x72d0
jmp 0x5e89a
leaq -0x408(%rbp), %rdi
callq 0x73e0
leaq -0x428(%rbp), %rdi
callq 0x73e0
leaq -0x3e8(%rbp), %rdi
leaq -0xe0(%rbp), %rsi
callq 0x7560
jmp 0x5e8c7
leaq -0x3e8(%rbp), %rdi
callq 0x7810
jmp 0x5e8d5
leaq -0x3e8(%rbp), %rdi
callq 0x7850
leaq -0x100(%rbp), %rdi
callq 0x73e0
leaq -0xe0(%rbp), %rdi
callq 0x73e0
leaq -0xb8(%rbp), %rdi
callq 0x73e0
leaq -0x78(%rbp), %rdi
callq 0x73e0
leaq -0x40(%rbp), %rdi
callq 0x73e0
addq $0x470, %rsp            # imm = 0x470
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x5e960
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x5e954
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x408(%rbp), %rdi
callq 0x73e0
leaq -0x428(%rbp), %rdi
callq 0x73e0
leaq -0x3e8(%rbp), %rdi
callq 0x7850
leaq -0x100(%rbp), %rdi
callq 0x73e0
leaq -0xe0(%rbp), %rdi
callq 0x73e0
leaq -0xb8(%rbp), %rdi
callq 0x73e0
leaq -0x78(%rbp), %rdi
callq 0x73e0
leaq -0x40(%rbp), %rdi
callq 0x73e0
movq -0x50(%rbp), %rdi
callq 0x79d0
nopl (%rax,%rax)