// File: /workspace/github_cpp_makefile_star2_O3/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), %r12
movq %r12, %rdi
movl $0x1, %esi
callq 0xda30
movq %rax, %r15
leaq 0x2ee35(%rip), %rsi     # 0x6d3bf
movl $0x1, %edx
movq %rax, %rdi
callq 0xd600
movq %r15, %rdi
movl $0x1, %esi
callq 0xda30
leaq 0x1f8(%rsp), %rbp
movq %rbp, %rdi
movl $0x1, %esi
callq 0xda30
movq %rax, %r15
leaq 0x2edfc(%rip), %rsi     # 0x6d3bf
movl $0x1, %edx
movq %rax, %rdi
callq 0xd600
movq %r15, %rdi
movl $0x1, %esi
callq 0xda30
movq %rax, %r15
leaq 0x2edd8(%rip), %rsi     # 0x6d3bf
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 0x309be(%rip), %rsi     # 0x6efd5
xorl %edx, %edx
callq 0xd600
movq %r12, %r13
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 0x3e64f
movq 0x28(%rsp), %rsi
incq %rsi
callq 0xd530
testq %r12, %r12
je 0x3e6a1
movq %r13, %r12
leaq 0x343db(%rip), %rsi     # 0x72a39
movl $0x1, %edx
movq %r13, %rdi
callq 0xd600
leaq 0x30963(%rip), %rsi     # 0x6efd5
movq %r12, %rdi
xorl %edx, %edx
callq 0xd600
leaq 0x343b6(%rip), %rsi     # 0x72a39
movl $0x1, %edx
movq %rbp, %rdi
callq 0xd600
leaq 0x3093e(%rip), %rsi     # 0x6efd5
movq %rbp, %rdi
xorl %edx, %edx
callq 0xd600
leaq 0x388(%rsp), %rsi
leaq 0x18(%rsp), %rdi
callq 0xd990
leaq 0x28(%rsp), %rbp
leaq 0x3155f(%rip), %rsi     # 0x6fc1e
leaq 0x18(%rsp), %rdi
callq 0xd170
testl %eax, %eax
je 0x3e724
leaq 0x200(%rsp), %rsi
leaq 0x40(%rsp), %rdi
callq 0xd990
leaq 0x31538(%rip), %rsi     # 0x6fc1e
leaq 0x40(%rsp), %r12
movq %r12, %rdi
callq 0xd170
testl %eax, %eax
sete %r13b
sete 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movq (%r12), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x3e735
movq 0x50(%rsp), %rsi
incq %rsi
callq 0xd530
jmp 0x3e735
movb $0x1, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movb $0x1, %r13b
movq 0x18(%rsp), %rdi
cmpq %rbp, %rdi
je 0x3e74c
movq 0x28(%rsp), %rsi
incq %rsi
callq 0xd530
testb %r13b, %r13b
jne 0x3e7f7
leaq 0x40(%rsp), %rdi
callq 0x4ca86
leaq 0x314c7(%rip), %rdx     # 0x6fc2d
leaq 0x2d999(%rip), %rcx     # 0x6c106
leaq 0x2d998(%rip), %r8      # 0x6c10c
leaq 0x18(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x46893
movq 0x18(%rsp), %r8
leaq 0x3143f(%rip), %rdx     # 0x6fbce
leaq 0x38(%rsp), %rdi
movl $0x2, %esi
movl $0x3d, %ecx
callq 0x4902a
leaq 0x38(%rsp), %rdi
leaq 0x40(%rsp), %rsi
callq 0x46a1c
leaq 0x38(%rsp), %rdi
callq 0x49096
movq 0x18(%rsp), %rdi
cmpq %rbp, %rdi
je 0x3e7d3
movq 0x28(%rsp), %rsi
incq %rsi
callq 0xd530
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x3e7e3
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x10(%rsp), %rsi
testq %rsi, %rsi
je 0x3e7f7
leaq 0x10(%rsp), %rdi
callq 0x153ca
movq 0x55782(%rip), %r12     # 0x93f80
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 0x49096
jmp 0x3e86a
movq %rax, %rbx
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x3e88b
movq 0x28(%rsp), %rsi
incq %rsi
callq 0xd530
jmp 0x3e88b
movq %rax, %rbx
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x3e8a0
movq (%rdi), %rax
callq *0x8(%rax)
jmp 0x3e8a0
movq %rax, %rbx
movq 0x10(%rsp), %rsi
testq %rsi, %rsi
je 0x3e8e0
leaq 0x10(%rsp), %rdi
callq 0x153ca
jmp 0x3e8e0
movq %rax, %rbx
movq 0x18(%rsp), %rdi
cmpq %rbp, %rdi
je 0x3e8e0
movq 0x28(%rsp), %rsi
incq %rsi
callq 0xd530
jmp 0x3e8e0
jmp 0x3e8dd
jmp 0x3e8dd
jmp 0x3e900
movq %rax, %rbx
jmp 0x3e924
movq %rax, %rbx
movq 0x55699(%rip), %rsi     # 0x93f80
leaq 0x60(%rsp), %rdi
callq 0xd3c0
leaq 0xe0(%rsp), %rdi
callq 0xd1a0
jmp 0x3e903
movq %rax, %rbx
movq 0x55676(%rip), %rsi     # 0x93f80
leaq 0x1e8(%rsp), %rdi
callq 0xd3c0
leaq 0x268(%rsp), %rdi
callq 0xd1a0
movq 0x55655(%rip), %rsi     # 0x93f80
leaq 0x370(%rsp), %rdi
callq 0xd3c0
leaq 0x3f0(%rsp), %rdi
callq 0xd1a0
movq %rbx, %rdi
callq 0xda70
nop