// File: /workspace/github_cpp_makefile_star2_O3/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x368, %rsp            # imm = 0x368
movq %rcx, %r14
movq %rdx, %r12
movq %rsi, 0x20(%rsp)
movq %rdi, %r15
leaq 0xf8(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x6fc0(%rip), %rsi      # 0x27c3c
leaq 0x7060(%rip), %rdx      # 0x27ce3
leaq 0xe8(%rsp), %rdi
callq 0x74e8
leaq 0x704d(%rip), %rsi      # 0x27ce4
leaq 0x168(%rsp), %rdi
movq %r12, %rdx
callq 0x213d3
leaq 0x703f(%rip), %rsi      # 0x27ced
leaq 0x168(%rsp), %rdi
callq 0x5730
leaq 0x58(%rsp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x20ce2
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x20ce8
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x50(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x178(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x20d21
movq 0x178(%rsp), %rsi
incq %rsi
callq 0x53e0
leaq 0xd8(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x6fc0(%rip), %rsi      # 0x27cf4
leaq 0x6fbb(%rip), %rdx      # 0x27cf6
leaq 0xc8(%rsp), %rdi
callq 0x74e8
leaq 0x28(%rsp), %rdi
leaq 0xe8(%rsp), %rsi
leaq 0x48(%rsp), %rdx
callq 0x2145b
leaq 0x138(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq 0x128(%rsp), %rdi
callq 0x757e
leaq 0x108(%rsp), %rdi
leaq 0x128(%rsp), %rsi
callq 0x11d20
movq 0x128(%rsp), %rdi
cmpq %r12, %rdi
je 0x20db5
movq 0x138(%rsp), %rsi
incq %rsi
callq 0x53e0
movq 0x8(%r14), %rax
cmpq (%r14), %rax
je 0x20f9e
leaq 0xb8(%rsp), %r13
movl $0x8, %r15d
xorl %r12d, %r12d
movq %rsp, %rbx
movq %r13, 0xa8(%rsp)
movq 0x20(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0xa8(%rsp), %r13
movq %r13, %rdi
callq 0x757e
movq (%r14), %rax
leaq 0x78(%rsp), %rcx
movq %rcx, 0x68(%rsp)
movq -0x8(%rax,%r15), %rsi
movq (%rax,%r15), %rdx
addq %rsi, %rdx
leaq 0x68(%rsp), %rdi
callq 0x757e
leaq 0x98(%rsp), %rax
movq %rax, 0x88(%rsp)
movq 0x108(%rsp), %rsi
movq 0x110(%rsp), %rdx
addq %rsi, %rdx
leaq 0x88(%rsp), %rbp
movq %rbp, %rdi
callq 0x757e
movq %rbx, %rdi
movq %r13, %rsi
leaq 0x68(%rsp), %rdx
movq %rbp, %rcx
callq 0x1f952
movq 0x28(%rsp), %rcx
movq 0x30(%rsp), %r8
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x5460
leaq 0x178(%rsp), %r13
movq %r13, 0x168(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x20eb0
movq %rdx, 0x168(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x178(%rsp)
jmp 0x20eb8
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
movq %rdx, 0x170(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x28(%rsp), %rdi
leaq 0x168(%rsp), %rsi
callq 0x54e0
movq 0x168(%rsp), %rdi
cmpq %r13, %rdi
je 0x20f02
movq 0x178(%rsp), %rsi
incq %rsi
callq 0x53e0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
leaq 0xb8(%rsp), %r13
je 0x20f25
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x53e0
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x20f4a
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x53e0
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x20f66
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x53e0
movq 0xa8(%rsp), %rdi
cmpq %r13, %rdi
je 0x20f83
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x53e0
movq 0x8(%r14), %rax
subq (%r14), %rax
incq %r12
sarq $0x5, %rax
addq $0x20, %r15
cmpq %r12, %rax
ja 0x20dd6
leaq 0x168(%rsp), %rdi
leaq 0x28(%rsp), %rsi
leaq 0xc8(%rsp), %rdx
callq 0x2145b
leaq 0x28(%rsp), %rdi
leaq 0x168(%rsp), %r14
movq %r14, %rsi
callq 0x54e0
movq (%r14), %rdi
leaq 0x178(%rsp), %rax
cmpq %rax, %rdi
je 0x20fed
movq 0x178(%rsp), %rsi
incq %rsi
callq 0x53e0
leaq 0x168(%rsp), %rdi
callq 0x5670
leaq 0x148(%rsp), %rdi
leaq 0x108(%rsp), %rdx
movq 0x20(%rsp), %rsi
callq 0x2145b
leaq 0x6cdc(%rip), %rsi      # 0x27cf7
leaq 0x148(%rsp), %rdi
callq 0x5730
leaq 0x10(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2104e
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x21055
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
movq %rsp, %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x168(%rsp), %rdi
movl $0x10, %edx
callq 0x51d0
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x21097
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x53e0
leaq 0x158(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x210b8
movq 0x158(%rsp), %rsi
incq %rsi
callq 0x53e0
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
leaq 0x168(%rsp), %rdi
callq 0x5490
leaq 0x168(%rsp), %rdi
callq 0x5590
movq 0x13ea5(%rip), %rax     # 0x34f88
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq 0x170(%rsp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, 0x168(%rsp,%rcx)
callq 0x5340
leaq 0x260(%rsp), %rdi
callq 0x5150
leaq 0x118(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x21135
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x53e0
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x21150
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x53e0
movq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
je 0x21175
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x53e0
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x21191
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x53e0
movq 0xe8(%rsp), %rdi
leaq 0xf8(%rsp), %rax
cmpq %rax, %rdi
je 0x211b6
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x53e0
addq $0x368, %rsp            # imm = 0x368
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x211e6
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x53e0
jmp 0x211e6
movq %rax, %rbx
leaq 0x158(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2127c
movq 0x158(%rsp), %rsi
incq %rsi
callq 0x53e0
jmp 0x2127c
jmp 0x21279
jmp 0x2128e
jmp 0x2128e
movq %rax, %rbx
movq 0x128(%rsp), %rdi
cmpq %r12, %rdi
je 0x2134a
movq 0x138(%rsp), %rsi
jmp 0x21342
movq %rax, %rbx
jmp 0x2134a
movq %rax, %rbx
jmp 0x21365
movq %rax, %rbx
jmp 0x2138a
movq %rax, %rbx
leaq 0x178(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x213a6
movq 0x178(%rsp), %rsi
jmp 0x2139e
movq %rax, %rbx
jmp 0x213a6
movq %rax, %rbx
leaq 0x168(%rsp), %rdi
callq 0x55d0
jmp 0x21329
movq %rax, %rbx
jmp 0x21329
movq %rax, %rbx
jmp 0x21304
movq %rax, %rbx
jmp 0x212e8
movq %rax, %rbx
jmp 0x212c3
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x212c3
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x53e0
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x212e8
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x53e0
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x21304
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x53e0
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x21329
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x53e0
leaq 0x118(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2134a
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x53e0
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x21365
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x53e0
movq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
je 0x2138a
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x53e0
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x213a6
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x53e0
movq 0xe8(%rsp), %rdi
leaq 0xf8(%rsp), %rax
cmpq %rax, %rdi
je 0x213cb
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x53e0
movq %rbx, %rdi
callq 0x56a0