// File: /workspace/github_cpp_makefile_star2_O2/swxlion[P]swxJson/tests/swxJsonParseTest.cpp
// Function: parseTest(char const*, char const*)
void parseTest(const char *filenme, const char *path)
{
	std::string content;
	std::ifstream in(filenme, std::ios::in);
	if (in.is_open())
	{
		std::istreambuf_iterator<char> beg(in), end;
		content = std::string(beg, end);
		in.close();
	}
	else
	{
		cout<<"[Error]: Cannot open the file "<<filenme<<endl;
		return;
	}

	try {
		JsonPtr json = Json::parse(content.c_str());
		cout<<"get json:"<<endl;
		cout<<json<<endl<<endl;
		cout<<"get value by path "<<path<<endl;
		cout<<(*json)[path]<<endl;
		cout<<json->getNode(path)->str()<<endl;
		cout<<json->wantString(path)<<endl;
	}
	catch (const JsonError &e)
	{
		cout<<"[Error]: "<<e.message()<<" line: "<<e.lineNumber()<<", fun: "<<e.function()<<endl;
	}
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x2a8, %rsp            # imm = 0x2A8
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x90(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0xa0(%rsp), %rdi
pushq $0x8
popq %rdx
movq %r14, %rsi
callq 0xe460
leaq 0x118(%rsp), %rdi
callq 0xe090
testb %al, %al
je 0xe852
movq 0xa0(%rsp), %rax
movq -0x18(%rax), %rax
movq 0x188(%rsp,%rax), %rsi
leaq 0x30(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x20(%rsp), %rdi
pushq $-0x1
popq %rdx
xorl %ecx, %ecx
movl %edx, %r8d
callq 0xec92
leaq 0x80(%rsp), %rdi
leaq 0x20(%rsp), %r14
movq %r14, %rsi
callq 0xe320
movq %r14, %rdi
callq 0xe100
leaq 0xa0(%rsp), %rdi
callq 0xe080
movq 0x80(%rsp), %rsi
leaq 0x10(%rsp), %rdi
callq 0x16478
movq 0x128fe(%rip), %rdi     # 0x20fd8
leaq 0xa942(%rip), %rsi      # 0x19023
callq 0xe2a0
movq %rax, %rdi
callq 0xe120
leaq 0x70(%rsp), %r14
leaq 0x10(%rsp), %rsi
movq %r14, %rdi
callq 0xeb4c
movq 0x128d1(%rip), %rdi     # 0x20fd8
movq %r14, %rsi
callq 0xf080
movq %rax, %rdi
callq 0xe120
movq %rax, %rdi
callq 0xe120
leaq 0x78(%rsp), %rdi
callq 0xeb80
movq 0x128a8(%rip), %rdi     # 0x20fd8
leaq 0xa8f6(%rip), %rsi      # 0x1902d
callq 0xe2a0
movq %rax, %rdi
movq %rbx, %rsi
callq 0xe2a0
movq %rax, %rdi
callq 0xe120
movq 0x10(%rsp), %rdi
movq %rbx, %rsi
callq 0x122fa
movq 0x12875(%rip), %rdi     # 0x20fd8
movq %rax, %rsi
callq 0xee44
movq %rax, %rdi
callq 0xe120
movq 0x10(%rsp), %r14
leaq 0xa8c1(%rip), %rsi      # 0x19040
leaq 0x50(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0xea9a
leaq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rcx
movq %r14, %rsi
movq %rbx, %rdx
callq 0xea2e
movq 0x40(%rsp), %rsi
leaq 0x20(%rsp), %rdi
callq 0xf08e
movq 0x1281f(%rip), %rdi     # 0x20fd8
leaq 0x20(%rsp), %rsi
callq 0xe260
movq %rax, %rdi
callq 0xe120
leaq 0x20(%rsp), %rdi
callq 0xe100
leaq 0x48(%rsp), %rdi
callq 0xeb80
leaq 0x50(%rsp), %rdi
callq 0xe100
movq 0x10(%rsp), %r14
leaq 0xa84b(%rip), %rsi      # 0x19040
leaq 0x50(%rsp), %rdi
leaq 0x40(%rsp), %rdx
callq 0xea9a
leaq 0x20(%rsp), %rdi
leaq 0x50(%rsp), %rcx
movq %r14, %rsi
movq %rbx, %rdx
callq 0xead6
movq 0x127b8(%rip), %rdi     # 0x20fd8
leaq 0x20(%rsp), %rsi
callq 0xe260
movq %rax, %rdi
callq 0xe120
leaq 0x20(%rsp), %rdi
callq 0xe100
leaq 0x50(%rsp), %rdi
callq 0xe100
leaq 0x18(%rsp), %rdi
callq 0xeb80
jmp 0xe878
movq 0x1277f(%rip), %rdi     # 0x20fd8
leaq 0xa7a4(%rip), %rsi      # 0x19004
callq 0xe2a0
movq %rax, %rdi
movq %r14, %rsi
callq 0xe2a0
movq %rax, %rdi
callq 0xe120
leaq 0xa0(%rsp), %rdi
callq 0xe0b0
leaq 0x80(%rsp), %rdi
callq 0xe100
addq $0x2a8, %rsp            # imm = 0x2A8
popq %rbx
popq %r14
retq
jmp 0xe8ac
jmp 0xe93c
movq %rdx, %r14
movq %rax, %rbx
jmp 0xe8ea
movq %rdx, %r14
movq %rax, %rbx
jmp 0xe8f4
jmp 0xe93c
movq %rdx, %r14
movq %rax, %rbx
jmp 0xe94c
jmp 0xe917
jmp 0xe917
movq %rdx, %r14
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0xe100
jmp 0xe8f4
movq %rdx, %r14
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0xe100
leaq 0x48(%rsp), %rdi
callq 0xeb80
leaq 0x50(%rsp), %rdi
callq 0xe100
jmp 0xe942
movq %rax, %rbx
jmp 0xe927
movq %rdx, %r14
movq %rax, %rbx
leaq 0x78(%rsp), %rdi
callq 0xeb80
jmp 0xe942
movq %rax, %rbx
leaq 0xa0(%rsp), %rdi
callq 0xe0b0
leaq 0x80(%rsp), %rdi
callq 0xe100
movq %rbx, %rdi
callq 0xe440
movq %rdx, %r14
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0xeb80
cmpl $0x1, %r14d
jne 0xe91a
movq %rbx, %rdi
callq 0xe0e0
movq %rax, %rbx
movq 0x12674(%rip), %rdi     # 0x20fd8
leaq 0xa6d8(%rip), %rsi      # 0x19043
callq 0xe2a0
leaq 0x20(%rbx), %rsi
movq %rax, %rdi
callq 0xe260
leaq 0xa6ca(%rip), %rsi      # 0x1904d
movq %rax, %rdi
callq 0xe2a0
movl 0x18(%rbx), %esi
movq %rax, %rdi
callq 0xe430
leaq 0xa6b8(%rip), %rsi      # 0x19055
movq %rax, %rdi
callq 0xe2a0
movq 0x10(%rbx), %rsi
movq %rax, %rdi
callq 0xe2a0
movq %rax, %rdi
callq 0xe120
callq 0xe410
jmp 0xe878
jmp 0xe917
movq %rax, %rbx
callq 0xe410
jmp 0xe91a
movq %rax, %rdi
callq 0xeb41