// File: ambersun1234[P]AVL_Tree/./src/unit_test.cpp
// Function: nodeTest_getMaxHeight_Test::TestBody()
TEST_F( nodeTest , getMaxHeight ) {
	EXPECT_EQ( node_1->getMaxHeight() , 1 );
	EXPECT_EQ( node_2->getMaxHeight() , 1 );

	node_1->setLeftChild( node_int_children_1 );
	node_1->setRightChild( node_int_children_2 );
	node_2->setLeftChild( node_double_children_2 );

	EXPECT_EQ( node_1->getMaxHeight() , 2 );
	EXPECT_EQ( node_2->getMaxHeight() , 2 );

	node_2->setLeftChild( nullptr );
	EXPECT_EQ( node_2->getMaxHeight() , 1 );
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x160, %rsp            # imm = 0x160
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xf8(%rbp)
movq 0x10(%rax), %rdi
callq 0xf960
movl %eax, -0x1c(%rbp)
movl $0x1, -0x20(%rbp)
leaq 0x49220(%rip), %rsi     # 0x56214
leaq 0x49468(%rip), %rdx     # 0x56463
leaq -0x18(%rbp), %rdi
movq %rdi, -0xf0(%rbp)
leaq -0x1c(%rbp), %rcx
leaq -0x20(%rbp), %r8
callq 0xf350
movq -0xf0(%rbp), %rdi
callq 0xf3b0
movb %al, -0xe1(%rbp)
jmp 0xd027
movb -0xe1(%rbp), %al
testb $0x1, %al
jne 0xd033
jmp 0xd049
jmp 0xd0da
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0xd148
leaq -0x38(%rbp), %rdi
callq 0x190b0
jmp 0xd054
leaq -0x18(%rbp), %rdi
callq 0xf3d0
movq %rax, -0x100(%rbp)
jmp 0xd066
movq -0x100(%rbp), %r8
leaq 0x48fcd(%rip), %rdx     # 0x56041
leaq -0x40(%rbp), %rdi
movl $0x1, %esi
movl $0x50, %ecx
callq 0x16080
jmp 0xd089
leaq -0x40(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x16140
jmp 0xd098
leaq -0x40(%rbp), %rdi
callq 0x16100
leaq -0x38(%rbp), %rdi
callq 0xf3f0
jmp 0xd0da
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0xd0cf
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0x40(%rbp), %rdi
callq 0x16100
leaq -0x38(%rbp), %rdi
callq 0xf3f0
jmp 0xd148
leaq -0x18(%rbp), %rdi
callq 0xf410
movq -0xf8(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0xf9b0
movl %eax, -0x54(%rbp)
movl $0x1, -0x58(%rbp)
leaq 0x49127(%rip), %rsi     # 0x5622b
leaq 0x49358(%rip), %rdx     # 0x56463
leaq -0x50(%rbp), %rdi
movq %rdi, -0x110(%rbp)
leaq -0x54(%rbp), %rcx
leaq -0x58(%rbp), %r8
callq 0xf350
movq -0x110(%rbp), %rdi
callq 0xf3b0
movb %al, -0x101(%rbp)
jmp 0xd137
movb -0x101(%rbp), %al
testb $0x1, %al
jne 0xd143
jmp 0xd167
jmp 0xd1fb
leaq -0x18(%rbp), %rdi
callq 0xf410
jmp 0xd63b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0xd2a5
leaq -0x60(%rbp), %rdi
callq 0x190b0
jmp 0xd172
leaq -0x50(%rbp), %rdi
callq 0xf3d0
movq %rax, -0x118(%rbp)
jmp 0xd184
movq -0x118(%rbp), %r8
leaq 0x48eaf(%rip), %rdx     # 0x56041
leaq -0x68(%rbp), %rdi
movl $0x1, %esi
movl $0x51, %ecx
callq 0x16080
jmp 0xd1a7
leaq -0x68(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x16140
jmp 0xd1b6
leaq -0x68(%rbp), %rdi
callq 0x16100
leaq -0x60(%rbp), %rdi
callq 0xf3f0
jmp 0xd1fb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0xd1ed
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0x68(%rbp), %rdi
callq 0x16100
leaq -0x60(%rbp), %rdi
callq 0xf3f0
jmp 0xd2a5
leaq -0x50(%rbp), %rdi
callq 0xf410
movq -0xf8(%rbp), %rax
movq 0x10(%rax), %rdi
movq 0x18(%rax), %rsi
callq 0xf600
movq -0xf8(%rbp), %rax
movq 0x10(%rax), %rdi
movq 0x20(%rax), %rsi
callq 0xf640
movq -0xf8(%rbp), %rax
movq 0x30(%rax), %rdi
movq 0x40(%rax), %rsi
callq 0xf730
movq -0xf8(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0xf960
movl %eax, -0x7c(%rbp)
movl $0x2, -0x80(%rbp)
leaq 0x48fb3(%rip), %rsi     # 0x56214
leaq 0x48e41(%rip), %rdx     # 0x560a9
leaq -0x78(%rbp), %rdi
movq %rdi, -0x128(%rbp)
leaq -0x7c(%rbp), %rcx
leaq -0x80(%rbp), %r8
callq 0xf350
movq -0x128(%rbp), %rdi
callq 0xf3b0
movb %al, -0x119(%rbp)
jmp 0xd294
movb -0x119(%rbp), %al
testb $0x1, %al
jne 0xd2a0
jmp 0xd2c4
jmp 0xd36d
leaq -0x50(%rbp), %rdi
callq 0xf410
jmp 0xd63b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0xd3ea
leaq -0x88(%rbp), %rdi
callq 0x190b0
jmp 0xd2d2
leaq -0x78(%rbp), %rdi
callq 0xf3d0
movq %rax, -0x130(%rbp)
jmp 0xd2e4
movq -0x130(%rbp), %r8
leaq 0x48d4f(%rip), %rdx     # 0x56041
leaq -0x90(%rbp), %rdi
movl $0x1, %esi
movl $0x57, %ecx
callq 0x16080
jmp 0xd30a
leaq -0x90(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0x16140
jmp 0xd31f
leaq -0x90(%rbp), %rdi
callq 0x16100
leaq -0x88(%rbp), %rdi
callq 0xf3f0
jmp 0xd36d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0xd35f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0x90(%rbp), %rdi
callq 0x16100
leaq -0x88(%rbp), %rdi
callq 0xf3f0
jmp 0xd3ea
leaq -0x78(%rbp), %rdi
callq 0xf410
movq -0xf8(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0xf9b0
movl %eax, -0xa4(%rbp)
movl $0x2, -0xa8(%rbp)
leaq 0x48e8e(%rip), %rsi     # 0x5622b
leaq 0x48d05(%rip), %rdx     # 0x560a9
leaq -0xa0(%rbp), %rdi
movq %rdi, -0x140(%rbp)
leaq -0xa4(%rbp), %rcx
leaq -0xa8(%rbp), %r8
callq 0xf350
movq -0x140(%rbp), %rdi
callq 0xf3b0
movb %al, -0x131(%rbp)
jmp 0xd3d9
movb -0x131(%rbp), %al
testb $0x1, %al
jne 0xd3e5
jmp 0xd409
jmp 0xd4b8
leaq -0x78(%rbp), %rdi
callq 0xf410
jmp 0xd63b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0xd54c
leaq -0xb0(%rbp), %rdi
callq 0x190b0
jmp 0xd417
leaq -0xa0(%rbp), %rdi
callq 0xf3d0
movq %rax, -0x148(%rbp)
jmp 0xd42c
movq -0x148(%rbp), %r8
leaq 0x48c07(%rip), %rdx     # 0x56041
leaq -0xb8(%rbp), %rdi
movl $0x1, %esi
movl $0x58, %ecx
callq 0x16080
jmp 0xd452
leaq -0xb8(%rbp), %rdi
leaq -0xb0(%rbp), %rsi
callq 0x16140
jmp 0xd467
leaq -0xb8(%rbp), %rdi
callq 0x16100
leaq -0xb0(%rbp), %rdi
callq 0xf3f0
jmp 0xd4b8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0xd4a7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0xb8(%rbp), %rdi
callq 0x16100
leaq -0xb0(%rbp), %rdi
callq 0xf3f0
jmp 0xd54c
leaq -0xa0(%rbp), %rdi
callq 0xf410
movq -0xf8(%rbp), %rax
movq 0x30(%rax), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0xf730
movq -0xf8(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0xf9b0
movl %eax, -0xcc(%rbp)
movl $0x1, -0xd0(%rbp)
leaq 0x48d2c(%rip), %rsi     # 0x5622b
leaq 0x48f5d(%rip), %rdx     # 0x56463
leaq -0xc8(%rbp), %rdi
movq %rdi, -0x158(%rbp)
leaq -0xcc(%rbp), %rcx
leaq -0xd0(%rbp), %r8
callq 0xf350
movq -0x158(%rbp), %rdi
callq 0xf3b0
movb %al, -0x149(%rbp)
jmp 0xd53b
movb -0x149(%rbp), %al
testb $0x1, %al
jne 0xd547
jmp 0xd56e
jmp 0xd61a
leaq -0xa0(%rbp), %rdi
callq 0xf410
jmp 0xd63b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0xd62f
leaq -0xd8(%rbp), %rdi
callq 0x190b0
jmp 0xd57c
leaq -0xc8(%rbp), %rdi
callq 0xf3d0
movq %rax, -0x160(%rbp)
jmp 0xd591
movq -0x160(%rbp), %r8
leaq 0x48aa2(%rip), %rdx     # 0x56041
leaq -0xe0(%rbp), %rdi
movl $0x1, %esi
movl $0x5b, %ecx
callq 0x16080
jmp 0xd5b7
leaq -0xe0(%rbp), %rdi
leaq -0xd8(%rbp), %rsi
callq 0x16140
jmp 0xd5cc
leaq -0xe0(%rbp), %rdi
callq 0x16100
leaq -0xd8(%rbp), %rdi
callq 0xf3f0
jmp 0xd61a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0xd60c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0xe0(%rbp), %rdi
callq 0x16100
leaq -0xd8(%rbp), %rdi
callq 0xf3f0
jmp 0xd62f
leaq -0xc8(%rbp), %rdi
callq 0xf410
addq $0x160, %rsp            # imm = 0x160
popq %rbp
retq
leaq -0xc8(%rbp), %rdi
callq 0xf410
movq -0x28(%rbp), %rdi
callq 0x9c40
nopw %cs:(%rax,%rax)