// File: /workspace/github_cpp_makefile_star2_O3/Naomi1745698[P]BigPrac/test.cpp
// Function: test::planetTesting()
void test::planetTesting(){
	PASS = 0;											
	std::cout << "resourceType is: " << planet1->getName() << std::endl; 
	if(planet1->getName() == "K9"){
		PASS++;
	}else{
		std::cout << "ERROR getName" << std::endl;
		PASS--;
	};
	std::cout << " Resource size is: " << planet1->getResources() << std::endl;
	if(planet1->getResources() == startResources){
		PASS++;
	}else{
		std::cout << "ERROR getResources" << std::endl;
		PASS--;
	};
	std::cout << "add 50 to fuel" << std::endl; 
	planet1->setResources(addResources); // adds addResources to the original set of resources
	std::cout << " Change resource size is: " << planet1->getResources() << std::endl;
	if(planet1->getResources() == 70){
		PASS++;
	}else{
		std::cout << "ERROR setResources" << std::endl;
		PASS--;
	};
	if(PASS == 3){
		std::cout << "<---------------------PASS---------------->" << std::endl;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
movl $0x0, 0x74(%rdi)
movq 0x4e4b(%rip), %r14      # 0xcfd8
leaq 0x18c1(%rip), %rsi      # 0x9a55
movl $0x11, %edx
movq %r14, %rdi
callq 0x21e0
movq 0x30(%rbx), %rsi
movq %rsp, %r15
movq %r15, %rdi
callq 0x3084
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %r14, %rdi
callq 0x21e0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2170
movsbl %al, %esi
movq %r15, %rdi
callq 0x2050
movq %rax, %rdi
callq 0x20d0
leaq 0x10(%rsp), %r12
movq -0x10(%r12), %rdi
cmpq %r12, %rdi
je 0x8205
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21a0
movq 0x30(%rbx), %rsi
movq %rsp, %r15
movq %r15, %rdi
callq 0x3084
leaq 0x1605(%rip), %rsi      # 0x9820
movq %r15, %rdi
callq 0x2080
movl %eax, %ebp
movq (%r15), %rdi
cmpq %r12, %rdi
je 0x823a
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21a0
movl $0x1, %r12d
movl $0x1, %eax
testl %ebp, %ebp
je 0x8289
leaq 0x1765(%rip), %rsi      # 0x99b5
movl $0xd, %edx
movq %r14, %rdi
callq 0x21e0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2170
movsbl %al, %esi
movq %r14, %rdi
callq 0x2050
movq %rax, %rdi
callq 0x20d0
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addl %eax, 0x74(%rbx)
movq 0x4d45(%rip), %r14      # 0xcfd8
leaq 0x17cd(%rip), %rsi      # 0x9a67
movl $0x13, %edx
movq %r14, %rdi
callq 0x21e0
movq 0x30(%rbx), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
movq %r14, %rdi
movl %eax, %esi
callq 0x2290
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2170
movsbl %al, %esi
movq %r15, %rdi
callq 0x2050
movq %rax, %rdi
callq 0x20d0
movq 0x30(%rbx), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
cmpl 0x60(%rbx), %eax
je 0x8335
leaq 0x16d8(%rip), %rsi      # 0x99d3
movl $0x12, %edx
movq %r14, %rdi
callq 0x21e0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2170
movsbl %al, %esi
movq %r14, %rdi
callq 0x2050
movq %rax, %rdi
callq 0x20d0
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
addl %r12d, 0x74(%rbx)
leaq 0x173b(%rip), %rsi      # 0x9a7b
movl $0xe, %edx
movq %r14, %rdi
callq 0x21e0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2170
movsbl %al, %esi
movq %r14, %rdi
callq 0x2050
movq %rax, %rdi
callq 0x20d0
movq 0x30(%rbx), %rdi
movl 0x6c(%rbx), %esi
movq (%rdi), %rax
callq *0x18(%rax)
leaq 0x1702(%rip), %rsi      # 0x9a8a
movl $0x1a, %edx
movq %r14, %rdi
callq 0x21e0
movq 0x30(%rbx), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
movq %r14, %rdi
movl %eax, %esi
callq 0x2290
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2170
movsbl %al, %esi
movq %r15, %rdi
callq 0x2050
movq %rax, %rdi
callq 0x20d0
movq 0x30(%rbx), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
movl $0x1, %ecx
cmpl $0x46, %eax
je 0x8427
leaq 0x16b7(%rip), %rsi      # 0x9aa5
movl $0x12, %edx
movq %r14, %rdi
callq 0x21e0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2170
movsbl %al, %esi
movq %r14, %rdi
callq 0x2050
movq %rax, %rdi
callq 0x20d0
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
addl 0x74(%rbx), %ecx
movl %ecx, 0x74(%rbx)
cmpl $0x3, %ecx
jne 0x846d
leaq 0x15f0(%rip), %rsi      # 0x9a29
movl $0x2b, %edx
movq %r14, %rdi
callq 0x21e0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2170
movsbl %al, %esi
movq %r14, %rdi
callq 0x2050
movq %rax, %rdi
callq 0x20d0
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8498
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21a0
movq %rbx, %rdi
callq 0x22a0