// File: /workspace/github_cpp_makefile_star2_O1/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 %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2a0, %rsp            # imm = 0x2A0
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x88(%rsp), %r15
movq %r15, -0x10(%r15)
movq $0x0, -0x8(%r15)
movb $0x0, (%r15)
leaq 0x98(%rsp), %rdi
movq %r14, %rsi
movl $0x8, %edx
callq 0xb450
leaq 0x110(%rsp), %rdi
callq 0xb0a0
testb %al, %al
je 0xb7a7
movq 0x98(%rsp), %rax
movq -0x18(%rax), %rax
movq 0x180(%rsp,%rax), %rsi
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x8(%rsp), %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
xorl %ecx, %ecx
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
callq 0xbfd2
leaq 0x78(%rsp), %rdi
leaq 0x8(%rsp), %r14
movq %r14, %rsi
callq 0xb320
movq (%r14), %rdi
cmpq %r12, %rdi
je 0xb710
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb2c0
leaq 0x98(%rsp), %rdi
callq 0xb090
movq 0x78(%rsp), %rsi
leaq 0x28(%rsp), %rdi
callq 0x14d9c
movq 0x138a5(%rip), %r14     # 0x1efd8
leaq 0xc8e9(%rip), %rsi      # 0x18023
movl $0x9, %edx
movq %r14, %rdi
callq 0xb300
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0xb280
movsbl %al, %esi
movq 0x13873(%rip), %rdi     # 0x1efd8
callq 0xb030
movq %rax, %rdi
callq 0xb1b0
movq 0x28(%rsp), %rcx
movq 0x30(%rsp), %rax
movq %rcx, 0x58(%rsp)
movq %rax, 0x60(%rsp)
testq %rax, %rax
je 0xb82e
movq 0x1383a(%rip), %rcx     # 0x1efd0
cmpb $0x0, (%rcx)
je 0xb82a
incl 0x8(%rax)
jmp 0xb82e
movq 0x1382a(%rip), %rbx     # 0x1efd8
leaq 0xc84f(%rip), %rsi      # 0x18004
movl $0x1e, %edx
movq %rbx, %rdi
callq 0xb300
testq %r14, %r14
je 0xb7e3
movq %r14, %rdi
callq 0xb100
movq 0x13802(%rip), %rdi     # 0x1efd8
movq %r14, %rsi
movq %rax, %rdx
callq 0xb300
jmp 0xb7fa
movq (%rbx), %rax
movq -0x18(%rax), %rax
leaq (%rbx,%rax), %rdi
movl 0x20(%rbx,%rax), %esi
orl $0x1, %esi
callq 0xb400
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0xb280
movsbl %al, %esi
movq 0x137c0(%rip), %rdi     # 0x1efd8
callq 0xb030
movq %rax, %rdi
callq 0xb1b0
jmp 0xbae0
lock
incl 0x8(%rax)
movq 0x137a3(%rip), %rdi     # 0x1efd8
leaq 0x58(%rsp), %rsi
callq 0xc629
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0xb280
movsbl %al, %esi
movq %r14, %rdi
callq 0xb030
movq %rax, %rdi
callq 0xb1b0
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0xb280
movsbl %al, %esi
movq %r14, %rdi
callq 0xb030
movq %rax, %rdi
callq 0xb1b0
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0xb8a2
callq 0xbed2
movq 0x1372f(%rip), %r14     # 0x1efd8
leaq 0xc77d(%rip), %rsi      # 0x1802d
movl $0x12, %edx
movq %r14, %rdi
callq 0xb300
testq %rbx, %rbx
je 0xb8de
movq %rbx, %rdi
callq 0xb100
movq 0x13707(%rip), %rdi     # 0x1efd8
movq %rbx, %rsi
movq %rax, %rdx
callq 0xb300
jmp 0xb8f6
movq (%r14), %rax
movq -0x18(%rax), %rax
leaq (%r14,%rax), %rdi
movl 0x20(%r14,%rax), %esi
orl $0x1, %esi
callq 0xb400
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0xb280
movsbl %al, %esi
movq 0x136c4(%rip), %rdi     # 0x1efd8
callq 0xb030
movq %rax, %rdi
callq 0xb1b0
movq 0x28(%rsp), %rdi
movq %rbx, %rsi
callq 0x10662
movq 0x136a3(%rip), %rdi     # 0x1efd8
movq %rax, %rsi
callq 0xc31c
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0xb280
movsbl %al, %esi
movq %r14, %rdi
callq 0xb030
movq %rax, %rdi
callq 0xb1b0
movq 0x28(%rsp), %r14
leaq 0x48(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0xc6c4(%rip), %rsi      # 0x18040
leaq 0xc6bf(%rip), %rdx      # 0x18042
leaq 0x38(%rsp), %rdi
callq 0xbf42
leaq 0x68(%rsp), %rdi
leaq 0x38(%rsp), %rcx
movq %r14, %rsi
movq %rbx, %rdx
callq 0xbd6e
movq 0x68(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0xc638
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq 0x13616(%rip), %rdi     # 0x1efd8
callq 0xb300
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0xb280
movsbl %al, %esi
movq %r14, %rdi
callq 0xb030
movq %rax, %rdi
callq 0xb1b0
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0xba08
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb2c0
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0xba17
callq 0xbed2
movq 0x38(%rsp), %rdi
cmpq %r13, %rdi
je 0xba2e
movq 0x48(%rsp), %rsi
incq %rsi
callq 0xb2c0
movq 0x28(%rsp), %r14
leaq 0x38(%rsp), %rdi
movq %r13, (%rdi)
leaq 0xc5fe(%rip), %rsi      # 0x18040
leaq 0xc5f9(%rip), %rdx      # 0x18042
callq 0xbf42
leaq 0x8(%rsp), %rdi
leaq 0x38(%rsp), %rcx
movq %r14, %rsi
movq %rbx, %rdx
callq 0xbe3a
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq 0x13564(%rip), %rdi     # 0x1efd8
callq 0xb300
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0xb280
movsbl %al, %esi
movq %rbx, %rdi
callq 0xb030
movq %rax, %rdi
callq 0xb1b0
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0xbaba
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb2c0
movq 0x38(%rsp), %rdi
cmpq %r13, %rdi
je 0xbad1
movq 0x48(%rsp), %rsi
incq %rsi
callq 0xb2c0
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0xbae0
callq 0xbed2
leaq 0x98(%rsp), %rdi
callq 0xb0b0
movq 0x78(%rsp), %rdi
cmpq %r15, %rdi
je 0xbb07
movq 0x88(%rsp), %rsi
incq %rsi
callq 0xb2c0
addq $0x2a0, %rsp            # imm = 0x2A0
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0xbb27
jmp 0xbbf5
movq %rdx, %r14
movq %rax, %rbx
jmp 0xbb84
movq %rdx, %r14
movq %rax, %rbx
jmp 0xbb93
jmp 0xbbf5
movq %rdx, %r14
movq %rax, %rbx
jmp 0xbc0a
jmp 0xbbac
jmp 0xbbac
movq %rax, %rbx
jmp 0xbbbc
movq %rdx, %r14
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0xbb93
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb2c0
jmp 0xbb93
movq %rdx, %r14
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0xbb84
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb2c0
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0xbb93
callq 0xbed2
movq 0x38(%rsp), %rdi
cmpq %r13, %rdi
je 0xbbfb
movq 0x48(%rsp), %rsi
incq %rsi
callq 0xb2c0
jmp 0xbbfb
movq %rax, %rbx
leaq 0x98(%rsp), %rdi
callq 0xb0b0
movq 0x78(%rsp), %rdi
cmpq %r15, %rdi
je 0xbbd6
movq 0x88(%rsp), %rsi
incq %rsi
callq 0xb2c0
movq %rbx, %rdi
callq 0xb430
movq %rdx, %r14
movq %rax, %rbx
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0xbbfb
callq 0xbed2
jmp 0xbbfb
movq %rdx, %r14
movq %rax, %rbx
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0xbc0a
callq 0xbed2
cmpl $0x1, %r14d
jne 0xbbaf
movq %rbx, %rdi
callq 0xb0f0
movq %rax, %rbx
movq 0x133b6(%rip), %rdi     # 0x1efd8
leaq 0xc41a(%rip), %rsi      # 0x18043
movl $0x9, %edx
callq 0xb300
movq 0x20(%rbx), %rsi
movq 0x28(%rbx), %rdx
movq 0x13396(%rip), %rdi     # 0x1efd8
callq 0xb300
movq %rax, %r14
leaq 0xc3fc(%rip), %rsi      # 0x1804d
movl $0x7, %edx
movq %rax, %rdi
callq 0xb300
movl 0x18(%rbx), %esi
movq %r14, %rdi
callq 0xb420
movq %rax, %r14
leaq 0xc3e2(%rip), %rsi      # 0x18055
movl $0x7, %edx
movq %rax, %rdi
callq 0xb300
movq 0x10(%rbx), %rsi
movq %r14, %rdi
callq 0xb2a0
movq %rax, %rdi
callq 0xb120
callq 0xb3f0
jmp 0xbae0
jmp 0xbbac
movq %rax, %rbx
callq 0xb3f0
jmp 0xbbaf
movq %rax, %rdi
callq 0xbec7