// File: /workspace/github_cpp_makefile_star2_O3/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 0xb797
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 0xbfc8
leaq 0x78(%rsp), %rdi
leaq 0x8(%rsp), %r14
movq %r14, %rsi
callq 0xb320
movq (%r14), %rdi
cmpq %r12, %rdi
je 0xb700
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb2c0
leaq 0x98(%rsp), %rdi
callq 0xb090
movq 0x78(%rsp), %rsi
leaq 0x28(%rsp), %rdi
callq 0x14d4c
movq 0x138b5(%rip), %r14     # 0x1efd8
leaq 0xc8f9(%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 0x13883(%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 0xb81e
movq 0x1384a(%rip), %rcx     # 0x1efd0
cmpb $0x0, (%rcx)
je 0xb81a
incl 0x8(%rax)
jmp 0xb81e
movq 0x1383a(%rip), %rbx     # 0x1efd8
leaq 0xc85f(%rip), %rsi      # 0x18004
movl $0x1e, %edx
movq %rbx, %rdi
callq 0xb300
testq %r14, %r14
je 0xb7d3
movq %r14, %rdi
callq 0xb100
movq 0x13812(%rip), %rdi     # 0x1efd8
movq %r14, %rsi
movq %rax, %rdx
callq 0xb300
jmp 0xb7ea
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 0x137d0(%rip), %rdi     # 0x1efd8
callq 0xb030
movq %rax, %rdi
callq 0xb1b0
jmp 0xbad0
lock
incl 0x8(%rax)
movq 0x137b3(%rip), %rdi     # 0x1efd8
leaq 0x58(%rsp), %rsi
callq 0xc64b
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 0xb892
callq 0xbec2
movq 0x1373f(%rip), %r14     # 0x1efd8
leaq 0xc78d(%rip), %rsi      # 0x1802d
movl $0x12, %edx
movq %r14, %rdi
callq 0xb300
testq %rbx, %rbx
je 0xb8ce
movq %rbx, %rdi
callq 0xb100
movq 0x13717(%rip), %rdi     # 0x1efd8
movq %rbx, %rsi
movq %rax, %rdx
callq 0xb300
jmp 0xb8e6
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 0x136d4(%rip), %rdi     # 0x1efd8
callq 0xb030
movq %rax, %rdi
callq 0xb1b0
movq 0x28(%rsp), %rdi
movq %rbx, %rsi
callq 0x105e8
movq 0x136b3(%rip), %rdi     # 0x1efd8
movq %rax, %rsi
callq 0xc350
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 0xc6d4(%rip), %rsi      # 0x18040
leaq 0xc6cf(%rip), %rdx      # 0x18042
leaq 0x38(%rsp), %rdi
callq 0xbf32
leaq 0x68(%rsp), %rdi
leaq 0x38(%rsp), %rcx
movq %r14, %rsi
movq %rbx, %rdx
callq 0xbd5e
movq 0x68(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0xc65a
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq 0x13626(%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 0xb9f8
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb2c0
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0xba07
callq 0xbec2
movq 0x38(%rsp), %rdi
cmpq %r13, %rdi
je 0xba1e
movq 0x48(%rsp), %rsi
incq %rsi
callq 0xb2c0
movq 0x28(%rsp), %r14
leaq 0x38(%rsp), %rdi
movq %r13, (%rdi)
leaq 0xc60e(%rip), %rsi      # 0x18040
leaq 0xc609(%rip), %rdx      # 0x18042
callq 0xbf32
leaq 0x8(%rsp), %rdi
leaq 0x38(%rsp), %rcx
movq %r14, %rsi
movq %rbx, %rdx
callq 0xbe2a
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq 0x13574(%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 0xbaaa
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb2c0
movq 0x38(%rsp), %rdi
cmpq %r13, %rdi
je 0xbac1
movq 0x48(%rsp), %rsi
incq %rsi
callq 0xb2c0
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0xbad0
callq 0xbec2
leaq 0x98(%rsp), %rdi
callq 0xb0b0
movq 0x78(%rsp), %rdi
cmpq %r15, %rdi
je 0xbaf7
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 0xbb17
jmp 0xbbe5
movq %rdx, %r14
movq %rax, %rbx
jmp 0xbb74
movq %rdx, %r14
movq %rax, %rbx
jmp 0xbb83
jmp 0xbbe5
movq %rdx, %r14
movq %rax, %rbx
jmp 0xbbfa
jmp 0xbb9c
jmp 0xbb9c
movq %rax, %rbx
jmp 0xbbac
movq %rdx, %r14
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0xbb83
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb2c0
jmp 0xbb83
movq %rdx, %r14
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0xbb74
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb2c0
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0xbb83
callq 0xbec2
movq 0x38(%rsp), %rdi
cmpq %r13, %rdi
je 0xbbeb
movq 0x48(%rsp), %rsi
incq %rsi
callq 0xb2c0
jmp 0xbbeb
movq %rax, %rbx
leaq 0x98(%rsp), %rdi
callq 0xb0b0
movq 0x78(%rsp), %rdi
cmpq %r15, %rdi
je 0xbbc6
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 0xbbeb
callq 0xbec2
jmp 0xbbeb
movq %rdx, %r14
movq %rax, %rbx
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0xbbfa
callq 0xbec2
cmpl $0x1, %r14d
jne 0xbb9f
movq %rbx, %rdi
callq 0xb0f0
movq %rax, %rbx
movq 0x133c6(%rip), %rdi     # 0x1efd8
leaq 0xc42a(%rip), %rsi      # 0x18043
movl $0x9, %edx
callq 0xb300
movq 0x20(%rbx), %rsi
movq 0x28(%rbx), %rdx
movq 0x133a6(%rip), %rdi     # 0x1efd8
callq 0xb300
movq %rax, %r14
leaq 0xc40c(%rip), %rsi      # 0x1804d
movl $0x7, %edx
movq %rax, %rdi
callq 0xb300
movl 0x18(%rbx), %esi
movq %r14, %rdi
callq 0xb420
movq %rax, %r14
leaq 0xc3f2(%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 0xbad0
jmp 0xbb9c
movq %rax, %rbx
callq 0xb3f0
jmp 0xbb9f
movq %rax, %rdi
callq 0xbeb7