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

    StarData starData;

    assertTrue(!starDataNamespace::validStarData(starData));

    assertNan(starData.az);
    assertNan(starData.el);
    assertNan(starData.ra);
    assertNan(starData.dec);
    assertNan(starData.time);
    assertEquals(0.0, starData.time);

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

    assertTrue(starDataNamespace::validStarData(starData));

    assertEquals(1.0, starData.az);
    assertEquals(2.0, starData.el);
    assertEquals(3.0, starData.ra);
    assertEquals(4.0, starData.dec);
    assertEquals(5.0, starData.time);

    starData.clearData();

    assertTrue(!starDataNamespace::validStarData(starData));

    assertNan(starData.az);
    assertNan(starData.el);
    assertEquals(3.0, starData.ra);
    assertEquals(4.0, starData.dec);
    assertNan(starData.time);
    assertEquals(0.0, starData.time);

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x58, %rsp
movq %rdi, %rbx
leaq -0x58(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0xb30c(%rip), %rsi      # 0x31c8b
leaq 0xb325(%rip), %rdx      # 0x31cab
leaq -0x68(%rbp), %r14
movq %r14, %rdi
callq 0x4f28
movq %rbx, %rdi
movq %r14, %rsi
callq 0x28f78
movq -0x68(%rbp), %rdi
cmpq %r15, %rdi
je 0x269b2
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x32e0
leaq -0x48(%rbp), %r14
movq %r14, %rdi
callq 0x26850
movq %r14, %rdi
callq 0x28cad
xorb $0x1, %al
movzbl %al, %esi
movq %rbx, %rdi
callq 0x2930a
movsd -0x40(%rbp), %xmm0
movq %rbx, %rdi
callq 0x28f82
movsd -0x38(%rbp), %xmm0
movq %rbx, %rdi
callq 0x28f82
movsd -0x30(%rbp), %xmm0
movq %rbx, %rdi
callq 0x28f82
movsd -0x28(%rbp), %xmm0
movq %rbx, %rdi
callq 0x28f82
movsd -0x20(%rbp), %xmm0
movq %rbx, %rdi
callq 0x28f82
movsd -0x20(%rbp), %xmm1
xorps %xmm0, %xmm0
movq %rbx, %rdi
callq 0x29578
movabsq $0x3ff0000000000000, %rax # imm = 0x3FF0000000000000
leaq -0x48(%rbp), %rdi
movq %rax, 0x8(%rdi)
movabsq $0x4000000000000000, %rax # imm = 0x4000000000000000
movq %rax, 0x10(%rdi)
movabsq $0x4008000000000000, %rax # imm = 0x4008000000000000
movq %rax, 0x18(%rdi)
movabsq $0x4010000000000000, %rax # imm = 0x4010000000000000
movq %rax, 0x20(%rdi)
movabsq $0x4014000000000000, %rax # imm = 0x4014000000000000
movq %rax, 0x28(%rdi)
callq 0x28cad
movzbl %al, %esi
movq %rbx, %rdi
callq 0x2930a
movsd -0x40(%rbp), %xmm1
movsd 0x5585(%rip), %xmm0     # 0x2c010
movq %rbx, %rdi
callq 0x29578
movsd -0x38(%rbp), %xmm1
movsd 0xafb8(%rip), %xmm0     # 0x31a58
movq %rbx, %rdi
callq 0x29578
movsd -0x30(%rbp), %xmm1
movsd 0xafab(%rip), %xmm0     # 0x31a60
movq %rbx, %rdi
callq 0x29578
movsd -0x28(%rbp), %xmm1
movsd 0xaf9e(%rip), %xmm0     # 0x31a68
movq %rbx, %rdi
callq 0x29578
movsd -0x20(%rbp), %xmm1
movsd 0xaf91(%rip), %xmm0     # 0x31a70
movq %rbx, %rdi
callq 0x29578
leaq -0x48(%rbp), %rdi
callq 0x2687e
leaq -0x48(%rbp), %rdi
callq 0x28cad
xorb $0x1, %al
movzbl %al, %esi
movq %rbx, %rdi
callq 0x2930a
movsd -0x40(%rbp), %xmm0
movq %rbx, %rdi
callq 0x28f82
movsd -0x38(%rbp), %xmm0
movq %rbx, %rdi
callq 0x28f82
movsd -0x30(%rbp), %xmm1
movsd 0xaf33(%rip), %xmm0     # 0x31a60
movq %rbx, %rdi
callq 0x29578
movsd -0x28(%rbp), %xmm1
movsd 0xaf26(%rip), %xmm0     # 0x31a68
movq %rbx, %rdi
callq 0x29578
movsd -0x20(%rbp), %xmm0
movq %rbx, %rdi
callq 0x28f82
movsd -0x20(%rbp), %xmm1
xorps %xmm0, %xmm0
movq %rbx, %rdi
callq 0x29578
leaq -0x48(%rbp), %rdi
callq 0x26878
addq $0x58, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x68(%rbp), %rdi
cmpq %r15, %rdi
je 0x26ba1
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x32e0
jmp 0x26ba1
movq %rax, %rbx
leaq -0x48(%rbp), %rdi
callq 0x26878
movq %rbx, %rdi
callq 0x34b0
nop