// File: /workspace/github_cpp_makefile_star2_O2/pfnet-research[P]pml/src/parser.cpp
// Function: parser::refty_abbreviation(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long&)
refty_result_t refty_abbreviation(std::string const& input, size_t& pos) {
    std::string arg = "@blah";
    size_t prev_pos = pos;
    auto sty_result = simple_type(input, pos); // in the cold night : a:int
    if (sty_result.is_error()) {
        pos = prev_pos;
        EXPECT(ident_token, Ident);
        EXPECT(colon_token, Colon);
        arg = ident_token.lexime;
        sty_result = simple_type(input, pos);
    }
    if (sty_result.is_ok()) {
        return refty_result_t::ok(ast::refinement_type_t {
            arg, sty_result.ok(), make<logic::top_formula_t>()
            });
    } else {
        return sty_result.convert<ast::refinement_type_t>();
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x168, %rsp            # imm = 0x168
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
leaq 0x218b8(%rip), %rsi     # 0x396b8
leaq 0x70(%rsp), %rdi
leaq 0x38(%rsp), %rdx
callq 0xeb2e
movq (%r15), %r14
leaq 0x38(%rsp), %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x17412
movb 0x68(%rsp), %al
testb %al, %al
je 0x17e95
testb $0x1, %al
je 0x17f7a
movq %rsp, %rdi
leaq 0x70(%rsp), %rsi
callq 0x93a0
leaq 0x38(%rsp), %rdi
callq 0x1aee8
movl (%rax), %eax
movl %eax, 0x20(%rsp)
leaq 0x90(%rsp), %rdi
callq 0x1c1ff
leaq 0x98(%rsp), %r14
movaps -0x8(%r14), %xmm0
movq %rsp, %rsi
movups %xmm0, 0x28(%rsi)
xorps %xmm0, %xmm0
movaps %xmm0, -0x8(%r14)
movq %rbx, %rdi
callq 0x1afea
movq %rsp, %rdi
callq 0xc28a
movq %r14, %rdi
callq 0xa248
jmp 0x17fed
movq %r14, (%r15)
movq %rsp, %rdi
pushq $0xa
popq %rcx
movq %r12, %rsi
movq %r14, %rdx
callq 0x15bc7
cmpb $0x0, 0x30(%rsp)
je 0x17f89
movq %rsp, %rdi
callq 0x1ac66
leaq 0x100(%rsp), %rdi
movq %rax, %rsi
callq 0x1acbe
leaq 0x110(%rsp), %r14
movq 0x8(%r14), %rdx
addq -0x8(%r14), %rdx
movq %rdx, (%r15)
leaq 0x90(%rsp), %rdi
pushq $0x1c
popq %rcx
movq %r12, %rsi
callq 0x15bc7
movb 0xc0(%rsp), %bpl
testb %bpl, %bpl
je 0x17fa8
leaq 0x90(%rsp), %rdi
callq 0x1ac66
leaq 0xd0(%rsp), %rdi
movq %rax, %rsi
callq 0x1acbe
leaq 0xe0(%rsp), %r13
movq 0x8(%r13), %rax
addq -0x8(%r13), %rax
movq %rax, (%r15)
leaq 0x70(%rsp), %rdi
movq %r14, %rsi
callq 0x9180
leaq 0x130(%rsp), %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x17412
leaq 0x38(%rsp), %rdi
leaq 0x130(%rsp), %r15
movq %r15, %rsi
callq 0x1affc
movq %r15, %rdi
callq 0x1fde0
movq %r13, %rdi
callq 0x9130
jmp 0x17fc0
leaq 0x38(%rsp), %rsi
movq %rbx, %rdi
callq 0x1afb2
jmp 0x17fed
movq %rsp, %rdi
callq 0x1ac0e
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1af84
leaq 0x10(%rsp), %rdi
callq 0x9130
jmp 0x17fed
leaq 0x90(%rsp), %rdi
callq 0x1ac0e
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1af84
leaq 0xa0(%rsp), %rdi
callq 0x9130
movq %r14, %rdi
callq 0x9130
leaq 0x10(%rsp), %rdi
callq 0x9130
testb %bpl, %bpl
je 0x17fed
movb 0x68(%rsp), %al
jmp 0x17e2a
leaq 0x38(%rsp), %rdi
callq 0x1fde0
leaq 0x70(%rsp), %rdi
callq 0x9130
movq %rbx, %rax
addq $0x168, %rsp            # imm = 0x168
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x18018
movq %rax, %rbx
movq %r13, %rdi
callq 0x9130
jmp 0x1802a
jmp 0x18027
movq %rax, %rbx
leaq 0xa0(%rsp), %rdi
callq 0x9130
jmp 0x1803c
movq %rax, %rbx
movq %r14, %rdi
callq 0x9130
jmp 0x1806e
movq %rax, %rbx
movq %rsp, %rdi
callq 0xc28a
movq %r14, %rdi
callq 0xa248
jmp 0x1807d
jmp 0x1805d
movq %rax, %rbx
movq %rsp, %rdi
jmp 0x18073
jmp 0x1807a
jmp 0x1807a
jmp 0x1806b
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x9130
jmp 0x1807d
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x1fde0
leaq 0x70(%rsp), %rdi
callq 0x9130
movq %rbx, %rdi
callq 0x94d0
movq %rax, %rbx
jmp 0x18087