// File: /workspace/github_cpp_makefile_star2_O1/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 0xb450(%rip), %rsi      # 0x31c8b
leaq 0xb469(%rip), %rdx      # 0x31cab
leaq -0x68(%rbp), %r14
movq %r14, %rdi
callq 0x4e0a
movq %rbx, %rdi
movq %r14, %rsi
callq 0x28e38
movq -0x68(%rbp), %rdi
cmpq %r15, %rdi
je 0x2686e
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x32e0
leaq -0x48(%rbp), %r14
movq %r14, %rdi
callq 0x2670c
movq %r14, %rdi
callq 0x28b69
xorb $0x1, %al
movzbl %al, %esi
movq %rbx, %rdi
callq 0x291ce
movsd -0x40(%rbp), %xmm0
movq %rbx, %rdi
callq 0x28e42
movsd -0x38(%rbp), %xmm0
movq %rbx, %rdi
callq 0x28e42
movsd -0x30(%rbp), %xmm0
movq %rbx, %rdi
callq 0x28e42
movsd -0x28(%rbp), %xmm0
movq %rbx, %rdi
callq 0x28e42
movsd -0x20(%rbp), %xmm0
movq %rbx, %rdi
callq 0x28e42
movsd -0x20(%rbp), %xmm1
xorps %xmm0, %xmm0
movq %rbx, %rdi
callq 0x2943c
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 0x28b69
movzbl %al, %esi
movq %rbx, %rdi
callq 0x291ce
movsd -0x40(%rbp), %xmm1
movsd 0x56d9(%rip), %xmm0     # 0x2c020
movq %rbx, %rdi
callq 0x2943c
movsd -0x38(%rbp), %xmm1
movsd 0xb0fc(%rip), %xmm0     # 0x31a58
movq %rbx, %rdi
callq 0x2943c
movsd -0x30(%rbp), %xmm1
movsd 0xb0ef(%rip), %xmm0     # 0x31a60
movq %rbx, %rdi
callq 0x2943c
movsd -0x28(%rbp), %xmm1
movsd 0xb0e2(%rip), %xmm0     # 0x31a68
movq %rbx, %rdi
callq 0x2943c
movsd -0x20(%rbp), %xmm1
movsd 0xb0d5(%rip), %xmm0     # 0x31a70
movq %rbx, %rdi
callq 0x2943c
leaq -0x48(%rbp), %rdi
callq 0x2673a
leaq -0x48(%rbp), %rdi
callq 0x28b69
xorb $0x1, %al
movzbl %al, %esi
movq %rbx, %rdi
callq 0x291ce
movsd -0x40(%rbp), %xmm0
movq %rbx, %rdi
callq 0x28e42
movsd -0x38(%rbp), %xmm0
movq %rbx, %rdi
callq 0x28e42
movsd -0x30(%rbp), %xmm1
movsd 0xb077(%rip), %xmm0     # 0x31a60
movq %rbx, %rdi
callq 0x2943c
movsd -0x28(%rbp), %xmm1
movsd 0xb06a(%rip), %xmm0     # 0x31a68
movq %rbx, %rdi
callq 0x2943c
movsd -0x20(%rbp), %xmm0
movq %rbx, %rdi
callq 0x28e42
movsd -0x20(%rbp), %xmm1
xorps %xmm0, %xmm0
movq %rbx, %rdi
callq 0x2943c
leaq -0x48(%rbp), %rdi
callq 0x26734
addq $0x58, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x68(%rbp), %rdi
cmpq %r15, %rdi
je 0x26a5d
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x32e0
jmp 0x26a5d
movq %rax, %rbx
leaq -0x48(%rbp), %rdi
callq 0x26734
movq %rbx, %rdi
callq 0x34b0
nop