// File: /workspace/github_cpp_makefile_star2_O2/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 %rbx
subq $0x28, %rsp
movq %rdi, %rbx
andl $0x0, 0x74(%rdi)
movq 0x4ad4(%rip), %rdi      # 0xbfd8
leaq 0x154a(%rip), %rsi      # 0x8a55
callq 0x21a0
movq %rax, %r14
movq 0x30(%rbx), %rsi
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x3094
movq %r14, %rdi
movq %r15, %rsi
callq 0x2160
movq %rax, %rdi
callq 0x22f8
leaq 0x8(%rsp), %rdi
callq 0x20d0
movq 0x30(%rbx), %rsi
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x3094
leaq 0x12c7(%rip), %rsi      # 0x8820
movq %r14, %rdi
callq 0x78fa
movl %eax, %ebp
movq %r14, %rdi
callq 0x20d0
pushq $0x1
popq %r15
movl %r15d, %r14d
testb %bpl, %bpl
jne 0x7596
pushq $-0x1
popq %r14
movq 0x4a56(%rip), %rdi      # 0xbfd8
leaq 0x142c(%rip), %rsi      # 0x89b5
callq 0x21a0
movq %rax, %rdi
callq 0x22f8
addl %r14d, 0x74(%rbx)
movq 0x4a37(%rip), %rdi      # 0xbfd8
leaq 0x14bf(%rip), %rsi      # 0x8a67
callq 0x21a0
movq %rax, %r14
movq 0x30(%rbx), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
movq %r14, %rdi
movl %eax, %esi
callq 0x2290
movq %rax, %rdi
callq 0x22f8
movq 0x30(%rbx), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
movl %r15d, %ecx
cmpl 0x60(%rbx), %eax
je 0x75fc
movq 0x49f3(%rip), %rdi      # 0xbfd8
leaq 0x13e7(%rip), %rsi      # 0x89d3
callq 0x21a0
movq %rax, %rdi
callq 0x22f8
pushq $-0x1
popq %rcx
addl %ecx, 0x74(%rbx)
movq 0x49d2(%rip), %r14      # 0xbfd8
leaq 0x146e(%rip), %rsi      # 0x8a7b
movq %r14, %rdi
callq 0x21a0
movq %rax, %rdi
callq 0x22f8
movq 0x30(%rbx), %rdi
movl 0x6c(%rbx), %esi
movq (%rdi), %rax
callq *0x18(%rax)
leaq 0x1459(%rip), %rsi      # 0x8a8a
movq %r14, %rdi
callq 0x21a0
movq %rax, %r14
movq 0x30(%rbx), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
movq %r14, %rdi
movl %eax, %esi
callq 0x2290
movq %rax, %rdi
callq 0x22f8
movq 0x30(%rbx), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
cmpl $0x46, %eax
je 0x7686
movq 0x496a(%rip), %rdi      # 0xbfd8
leaq 0x1430(%rip), %rsi      # 0x8aa5
callq 0x21a0
movq %rax, %rdi
callq 0x22f8
pushq $-0x1
popq %r15
addl 0x74(%rbx), %r15d
movl %r15d, 0x74(%rbx)
cmpl $0x3, %r15d
jne 0x76af
movq 0x493d(%rip), %rdi      # 0xbfd8
leaq 0x1387(%rip), %rsi      # 0x8a29
callq 0x21a0
movq %rax, %rdi
callq 0x22f8
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x20d0
movq %rbx, %rdi
callq 0x22a0
nop