// File: /workspace/github_cpp_makefile_star2_O3/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, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x48(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x285eb(%rip), %rsi     # 0x48398
leaq 0x285e9(%rip), %rdx     # 0x4839d
leaq 0x38(%rsp), %rdi
callq 0x116f8
movq (%r14), %r12
leaq 0x58(%rsp), %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1ed61
movb 0x88(%rsp), %al
testb %al, %al
je 0x1fe73
testb $0x1, %al
je 0x1ffd4
leaq 0x10(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
addq %rsi, %rdx
movq %rsp, %rdi
callq 0xac68
leaq 0x58(%rsp), %rdi
callq 0x24a50
movl (%rax), %eax
movl %eax, 0x20(%rsp)
movl $0x18, %edi
callq 0x92d0
movabsq $0x100000001, %rcx      # imm = 0x100000001
movq %rcx, 0x8(%rax)
leaq 0x40b1b(%rip), %rcx     # 0x60950
movq %rcx, (%rax)
movq %rax, %rcx
addq $0x10, %rcx
leaq 0x40b5a(%rip), %rdx     # 0x609a0
movq %rdx, 0x10(%rax)
movb $0x1, 0x38(%rbx)
leaq 0x10(%rbx), %rdx
movq %rdx, (%rbx)
movq (%rsp), %rsi
cmpq %r14, %rsi
je 0x200af
movq %rsi, (%rbx)
movq 0x10(%rsp), %rdx
movq %rdx, 0x10(%rbx)
jmp 0x200b6
movq %r12, (%r14)
movq %rsp, %rdi
movq %r15, %rsi
movq %r12, %rdx
movl $0xa, %ecx
callq 0x1c56e
cmpb $0x0, 0x30(%rsp)
je 0x1ffee
movq %rsp, %rdi
callq 0x24814
movups (%rax), %xmm0
leaq 0xd0(%rsp), %r12
movaps %xmm0, -0x10(%r12)
leaq 0xe0(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq 0x10(%rax), %rsi
movq 0x18(%rax), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0xac68
movq 0xd8(%rsp), %rdx
addq 0xc8(%rsp), %rdx
movq %rdx, (%r14)
leaq 0xf8(%rsp), %rdi
movq %r15, %rsi
movl $0x1c, %ecx
callq 0x1c56e
movb 0x128(%rsp), %bpl
testb %bpl, %bpl
je 0x20025
leaq 0xf8(%rsp), %rdi
callq 0x24814
movups (%rax), %xmm0
leaq 0xa0(%rsp), %rdi
movaps %xmm0, -0x10(%rdi)
leaq 0xb0(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq 0x10(%rax), %rsi
movq 0x18(%rax), %rdx
addq %rsi, %rdx
callq 0xac68
movq 0xa8(%rsp), %rax
addq 0x98(%rsp), %rax
movq %rax, (%r14)
leaq 0x38(%rsp), %rdi
movq %r12, %rsi
callq 0x9170
leaq 0x130(%rsp), %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1ed61
leaq 0x58(%rsp), %rdi
leaq 0x130(%rsp), %r14
movq %r14, %rsi
callq 0x24b50
cmpb $0x0, 0x30(%r14)
jne 0x1ffad
leaq 0x150(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1ffad
movq 0x150(%rsp), %rsi
incq %rsi
callq 0x92e0
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x2003d
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x92e0
jmp 0x2003d
leaq 0x58(%rsp), %rdi
callq 0x2824e
movq %rbx, %rdi
movq %rax, %rsi
callq 0x24ad6
jmp 0x200e0
movq %rsp, %rdi
callq 0x247ba
movq %rbx, %rdi
movq %rax, %rsi
callq 0x24ad6
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x200e0
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x92e0
jmp 0x200e0
leaq 0xf8(%rsp), %rdi
callq 0x247ba
movq %rbx, %rdi
movq %rax, %rsi
callq 0x24ad6
leaq 0x118(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2005e
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x92e0
movq 0xd0(%rsp), %rdi
leaq 0xe0(%rsp), %rax
cmpq %rax, %rdi
je 0x20083
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x92e0
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2009e
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x92e0
testb %bpl, %bpl
je 0x200e0
movb 0x88(%rsp), %al
jmp 0x1fde0
movups (%r14), %xmm0
movups %xmm0, (%rdx)
movq 0x8(%rsp), %rdx
movq %rdx, 0x8(%rbx)
movq %r14, (%rsp)
movq $0x0, 0x8(%rsp)
movb $0x0, 0x10(%rsp)
movl 0x20(%rsp), %edx
movl %edx, 0x20(%rbx)
movq %rcx, 0x28(%rbx)
movq %rax, 0x30(%rbx)
cmpb $0x0, 0x88(%rsp)
jne 0x20105
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x20105
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x92e0
movq 0x38(%rsp), %rdi
cmpq %r13, %rdi
je 0x2011c
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x92e0
movq %rbx, %rax
addq $0x168, %rsp            # imm = 0x168
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x20133
movq %rax, %rbx
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x20162
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x92e0
jmp 0x20162
jmp 0x2015f
movq %rax, %rbx
leaq 0x118(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x20188
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x92e0
jmp 0x20188
movq %rax, %rbx
movq 0xd0(%rsp), %rdi
leaq 0xe0(%rsp), %rax
cmpq %rax, %rdi
je 0x201cb
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x92e0
jmp 0x201cb
jmp 0x201b1
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x201ed
movq 0x10(%rsp), %rsi
jmp 0x201de
jmp 0x201ea
jmp 0x201c8
movq %rax, %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x201ed
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x92e0
jmp 0x201ed
jmp 0x201ea
movq %rax, %rbx
cmpb $0x0, 0x88(%rsp)
jne 0x20217
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x20217
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x92e0
jmp 0x20217
movq %rax, %rbx
movq 0x38(%rsp), %rdi
cmpq %r13, %rdi
je 0x2022e
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x92e0
movq %rbx, %rdi
callq 0x94e0