// File: philipperemy[P]digital-setting-circles/Test.cpp
// Function: Test::test_StarDataNamespaceFunctions()
void Test::test_StarDataNamespaceFunctions()
{
    setUpErrorMessage("test_StarDataNamespaceFunctions() - failed");

    StarData starData1;
    StarData starData2;

    starData1.az = 1;
    starData1.el = 2;
    starData1.ra = 3;
    starData1.dec = 4;
    starData1.time = 5;

    starData2.az = 1;
    starData2.el = 2;
    starData2.ra = 3;
    starData2.dec = 4;
    starData2.time = 5;

    assertTrue(starDataNamespace::validStarData(starData1));
    assertTrue(starDataNamespace::validStarData(starData2));

    assertTrue(starDataNamespace::validAlignementData(starData1, starData2));

    starDataNamespace::clearAlignmentData(starData1, starData2);

    assertTrue(!starDataNamespace::validAlignementData(starData1, starData2));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xc0, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xb0(%rbp)
leaq -0x29(%rbp), %rdi
movq %rdi, -0xa8(%rbp)
callq 0x3550
movq -0xa8(%rbp), %rdx
leaq 0xb190(%rip), %rsi      # 0x3dc38
leaq -0x28(%rbp), %rdi
callq 0x5b40
jmp 0x32ab3
movq -0xb0(%rbp), %rdi
leaq -0x28(%rbp), %rsi
callq 0x35710
jmp 0x32ac5
leaq -0x28(%rbp), %rdi
callq 0x31c0
leaq -0x29(%rbp), %rdi
callq 0x3370
leaq -0x70(%rbp), %rdi
callq 0x325d0
leaq -0xa0(%rbp), %rdi
callq 0x325d0
jmp 0x32aee
movabsq $0x3ff0000000000000, %rdi # imm = 0x3FF0000000000000
movq %rdi, -0x68(%rbp)
movabsq $0x4000000000000000, %rsi # imm = 0x4000000000000000
movq %rsi, -0x60(%rbp)
movabsq $0x4008000000000000, %rdx # imm = 0x4008000000000000
movq %rdx, -0x58(%rbp)
movabsq $0x4010000000000000, %rcx # imm = 0x4010000000000000
movq %rcx, -0x50(%rbp)
movabsq $0x4014000000000000, %rax # imm = 0x4014000000000000
movq %rax, -0x48(%rbp)
movq %rdi, -0x98(%rbp)
movq %rsi, -0x90(%rbp)
movq %rdx, -0x88(%rbp)
movq %rcx, -0x80(%rbp)
movq %rax, -0x78(%rbp)
leaq -0x70(%rbp), %rdi
callq 0x350f0
movb %al, -0xb1(%rbp)
jmp 0x32b62
movq -0xb0(%rbp), %rdi
movb -0xb1(%rbp), %al
movzbl %al, %esi
andl $0x1, %esi
callq 0x35b40
jmp 0x32b7c
leaq -0xa0(%rbp), %rdi
callq 0x350f0
movb %al, -0xb2(%rbp)
jmp 0x32b90
movq -0xb0(%rbp), %rdi
movb -0xb2(%rbp), %al
movzbl %al, %esi
andl $0x1, %esi
callq 0x35b40
jmp 0x32baa
leaq -0x70(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
callq 0x351a0
movb %al, -0xb3(%rbp)
jmp 0x32bc2
movq -0xb0(%rbp), %rdi
movb -0xb3(%rbp), %al
movzbl %al, %esi
andl $0x1, %esi
callq 0x35b40
jmp 0x32bdc
leaq -0x70(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
callq 0x35200
jmp 0x32bee
leaq -0x70(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
callq 0x351a0
movb %al, -0xb4(%rbp)
jmp 0x32c06
movq -0xb0(%rbp), %rdi
movb -0xb4(%rbp), %al
notb %al
movzbl %al, %esi
andl $0x1, %esi
callq 0x35b40
jmp 0x32c22
leaq -0xa0(%rbp), %rdi
callq 0x32620
leaq -0x70(%rbp), %rdi
callq 0x32620
addq $0xc0, %rsp
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0x32c63
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x31c0
leaq -0x29(%rbp), %rdi
callq 0x3370
jmp 0x32c9d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0x32c94
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0xa0(%rbp), %rdi
callq 0x32620
leaq -0x70(%rbp), %rdi
callq 0x32620
movq -0x38(%rbp), %rdi
callq 0x3540
nopw %cs:(%rax,%rax)