// File: /workspace/github_cpp_makefile_star2_O1/halfflat[P]tinyopt/test/test_version.cc
// Function: version_consistent_Test::TestBody()
TEST(version, consistent) {
#if defined(TINYOPT_VERSION) && defined(TINYOPT_VERSION_MAJOR) && defined(TINYOPT_VERSION_MINOR) && defined(TINYOPT_VERSION_PATCH) && defined(TINYOPT_VERSION_PRERELEASE)
    ASSERT_TRUE(TINYOPT_VERSION_MAJOR>=0);
    ASSERT_TRUE(TINYOPT_VERSION_MINOR>=0);
    ASSERT_TRUE(TINYOPT_VERSION_PATCH>=0);

    std::stringstream version_nopatch, version;
    version_nopatch << TINYOPT_VERSION_MAJOR << "." << TINYOPT_VERSION_MINOR;
    version << TINYOPT_VERSION_MAJOR << "." << TINYOPT_VERSION_MINOR << "." << TINYOPT_VERSION_PATCH;

    std::stringstream pre;
    pre << TINYOPT_VERSION_PRERELEASE;
    if (!pre.str().empty()) {
        version_nopatch << "-" << TINYOPT_VERSION_PRERELEASE;
        version << "-" << TINYOPT_VERSION_PRERELEASE;
    }

    if (TINYOPT_VERSION_PATCH>0) {
        ASSERT_EQ(version.str(), TINYOPT_VERSION);
    }
    else {
        ASSERT_TRUE(version_nopatch.str()==TINYOPT_VERSION || version.str()==TINYOPT_VERSION);
    }
#else
    FAIL() << "Missing version defines.";
#endif
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x4f8, %rsp            # imm = 0x4F8
leaq 0x370(%rsp), %rbx
movq %rbx, %rdi
callq 0xd370
leaq 0x1e8(%rsp), %r14
movq %r14, %rdi
callq 0xd370
leaq 0x380(%rsp), %rbp
movq %rbp, %rdi
movl $0x1, %esi
callq 0xda30
movq %rax, %r15
leaq 0x2fade(%rip), %rsi     # 0x6f77c
movl $0x1, %edx
movq %rax, %rdi
callq 0xd600
movq %r15, %rdi
movl $0x1, %esi
callq 0xda30
leaq 0x1f8(%rsp), %r13
movq %r13, %rdi
movl $0x1, %esi
callq 0xda30
movq %rax, %r15
leaq 0x2faa5(%rip), %rsi     # 0x6f77c
movl $0x1, %edx
movq %rax, %rdi
callq 0xd600
movq %r15, %rdi
movl $0x1, %esi
callq 0xda30
movq %rax, %r15
leaq 0x2fa81(%rip), %rsi     # 0x6f77c
movl $0x1, %edx
movq %rax, %rdi
callq 0xd600
movq %r15, %rdi
xorl %esi, %esi
callq 0xda30
leaq 0x60(%rsp), %r15
movq %r15, %rdi
callq 0xd370
leaq 0x70(%rsp), %rdi
leaq 0x312cd(%rip), %rsi     # 0x70ff8
xorl %edx, %edx
callq 0xd600
leaq 0x78(%rsp), %rsi
leaq 0x18(%rsp), %rdi
callq 0xd990
leaq 0x28(%rsp), %rax
movq -0x10(%rax), %rdi
movq -0x8(%rax), %r12
cmpq %rax, %rdi
je 0x3fd60
movq 0x28(%rsp), %rsi
incq %rsi
callq 0xd530
testq %r12, %r12
je 0x3fdb2
movq %rbp, %r12
leaq 0x34cba(%rip), %rsi     # 0x74a29
movl $0x1, %edx
movq %rbp, %rdi
callq 0xd600
leaq 0x31275(%rip), %rsi     # 0x70ff8
movq %r12, %rdi
xorl %edx, %edx
callq 0xd600
leaq 0x34c95(%rip), %rsi     # 0x74a29
movl $0x1, %edx
movq %r13, %rdi
callq 0xd600
leaq 0x31250(%rip), %rsi     # 0x70ff8
movq %r13, %rdi
xorl %edx, %edx
callq 0xd600
leaq 0x388(%rsp), %rsi
leaq 0x18(%rsp), %rdi
callq 0xd990
leaq 0x31e65(%rip), %rsi     # 0x71c30
leaq 0x18(%rsp), %rdi
callq 0xd170
movl %eax, %ebp
testl %eax, %eax
je 0x3fe2d
leaq 0x200(%rsp), %rsi
leaq 0x40(%rsp), %rdi
callq 0xd990
leaq 0x31e3c(%rip), %rsi     # 0x71c30
leaq 0x40(%rsp), %r12
movq %r12, %rdi
callq 0xd170
testl %eax, %eax
sete (%rsp)
movq $0x0, 0x8(%rsp)
movq (%r12), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x3fe3a
movq 0x50(%rsp), %rsi
incq %rsi
callq 0xd530
jmp 0x3fe3a
movb $0x1, (%rsp)
movq $0x0, 0x8(%rsp)
testl %ebp, %ebp
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %r12
cmpq %r12, %rdi
je 0x3fe58
movq 0x28(%rsp), %rsi
incq %rsi
callq 0xd530
cmpb $0x0, (%rsp)
jne 0x3feee
leaq 0x10(%rsp), %rdi
callq 0x4e2e8
leaq 0x31dcc(%rip), %rdx     # 0x71c3f
leaq 0x2e28c(%rip), %rcx     # 0x6e106
leaq 0x2e28b(%rip), %r8      # 0x6e10c
leaq 0x18(%rsp), %rdi
movq %rsp, %rsi
callq 0x48021
movq 0x18(%rsp), %r8
leaq 0x31d46(%rip), %rdx     # 0x71be0
leaq 0x38(%rsp), %rdi
movl $0x2, %esi
movl $0x3d, %ecx
callq 0x4a84c
leaq 0x38(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x481aa
leaq 0x38(%rsp), %rdi
callq 0x4a8b8
movq 0x18(%rsp), %rdi
cmpq %r12, %rdi
je 0x3fede
movq 0x28(%rsp), %rsi
incq %rsi
callq 0xd530
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x3feee
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x8(%rsp), %rsi
testq %rsi, %rsi
je 0x3ff02
leaq 0x8(%rsp), %rdi
callq 0x156d0
movq 0x56077(%rip), %r12     # 0x95f80
movq %r15, %rdi
movq %r12, %rsi
callq 0xd3c0
movl $0x80, %r13d
addq %r13, %r15
movq %r15, %rdi
callq 0xd1a0
movq %r14, %rdi
movq %r12, %rsi
callq 0xd3c0
addq %r13, %r14
movq %r14, %rdi
callq 0xd1a0
movq %rbx, %rdi
movq %r12, %rsi
callq 0xd3c0
addq %r13, %rbx
movq %rbx, %rdi
callq 0xd1a0
addq $0x4f8, %rsp            # imm = 0x4F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x4a8b8
jmp 0x3ff75
movq %rax, %rbx
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x3ff96
movq 0x28(%rsp), %rsi
incq %rsi
callq 0xd530
jmp 0x3ff96
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x3ffa6
movq (%rdi), %rax
callq *0x8(%rax)
movq $0x0, 0x10(%rsp)
jmp 0x3ffb4
movq %rax, %rbx
movq 0x8(%rsp), %rsi
testq %rsi, %rsi
je 0x3ffc8
leaq 0x8(%rsp), %rdi
callq 0x156d0
movq $0x0, 0x8(%rsp)
jmp 0x40002
movq %rax, %rbx
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x40002
movq 0x28(%rsp), %rsi
incq %rsi
callq 0xd530
jmp 0x40002
jmp 0x3ffff
jmp 0x3ffff
jmp 0x40022
movq %rax, %rbx
jmp 0x40046
movq %rax, %rbx
movq 0x55f77(%rip), %rsi     # 0x95f80
leaq 0x60(%rsp), %rdi
callq 0xd3c0
leaq 0xe0(%rsp), %rdi
callq 0xd1a0
jmp 0x40025
movq %rax, %rbx
movq 0x55f54(%rip), %rsi     # 0x95f80
leaq 0x1e8(%rsp), %rdi
callq 0xd3c0
leaq 0x268(%rsp), %rdi
callq 0xd1a0
movq 0x55f33(%rip), %rsi     # 0x95f80
leaq 0x370(%rsp), %rdi
callq 0xd3c0
leaq 0x3f0(%rsp), %rdi
callq 0xd1a0
movq %rbx, %rdi
callq 0xda70
nop