LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/pfnet-research[P]pml/src/parser.cpp
// Function: ident_len(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long)
size_t ident_len(std::string const& input, size_t pos) {
    if (!std::isalpha(input[pos]) || pos >= input.size())
        return 0;
    size_t len = 1;
    while ((std::isalnum(input[pos+len]) || input[pos+len] == '_') && pos < input.size()) {
        ++len;
    }
    return len;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %r12
movsbl (%r12,%rsi), %edi
callq 0x9450
testl %eax, %eax
je 0x1bc8a
movq 0x8(%r14), %r15
cmpq %rbx, %r15
ja 0x1bc99
xorl %r14d, %r14d
movq %r14, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
addq %rbx, %r12
incq %r12
xorl %r14d, %r14d
movsbl (%r12,%r14), %edi
cmpl $0x5f, %edi
setne %bpl
callq 0x92f0
testl %eax, %eax
sete %al
incq %r14
cmpq %rbx, %r15
jbe 0x1bc8d
andb %al, %bpl
je 0x1bca2
jmp 0x1bc8d
// File: /workspace/github_cpp_makefile_star2_O1/pfnet-research[P]pml/src/parser.cpp
// Function: parser::neg_formula(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long&)
formula_result_t neg_formula(std::string const& input, size_t& pos) {
    auto not_token = next_token(input, pos);
    if (not_token.kind != token_t::kind_t::Not)
        return primary_formula(input, pos);
    pos = not_token.pos + not_token.lexime.size();

    auto inner_result = neg_formula(input, pos);
    if (inner_result.is_error())
        return inner_result;
    return formula_result_t::ok(make<logic::neg_formula_t>(inner_result.ok()));
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq (%rdx), %rdx
leaq 0x58(%rsp), %r12
movq %r12, %rdi
callq 0x1bcc7
cmpl $0x24, (%r12)
jne 0x1e968
movq 0x70(%rsp), %rax
addq 0x60(%rsp), %rax
movq %rax, (%r14)
leaq 0x20(%rsp), %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1e8c7
movb 0x50(%rsp), %al
testb %al, %al
je 0x1e978
leaq 0x20(%rsp), %rdi
callq 0x249a6
leaq 0x18(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x10(%rsp), %rsi
leaq 0xf(%rsp), %rdx
movq %rax, %rcx
callq 0x25634
movaps 0x10(%rsp), %xmm0
xorps %xmm1, %xmm1
movaps %xmm1, 0x10(%rsp)
movb $0x1, 0x30(%rbx)
movups %xmm0, (%rbx)
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x1e9c9
callq 0xaa12
jmp 0x1e9c9
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1e1b1
jmp 0x1e9d3
movb %al, 0x30(%rbx)
leaq 0x40(%rsp), %rax
movups -0x20(%rax), %xmm0
movups %xmm0, (%rbx)
leaq 0x20(%rbx), %rcx
movq %rcx, 0x10(%rbx)
movq -0x10(%rax), %rdx
cmpq %rax, %rdx
je 0x1e9a7
movq %rdx, 0x10(%rbx)
movq 0x40(%rsp), %rcx
movq %rcx, 0x20(%rbx)
jmp 0x1e9ad
movups (%rax), %xmm0
movups %xmm0, (%rcx)
movq 0x38(%rsp), %rcx
movq %rcx, 0x18(%rbx)
movq %rax, 0x30(%rsp)
movq $0x0, 0x38(%rsp)
movb $0x0, 0x40(%rsp)
leaq 0x20(%rsp), %rdi
callq 0x28264
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1e9ee
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x92e0
movq %rbx, %rax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x28264
jmp 0x1ea14
jmp 0x1ea11
movq %rax, %rbx
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1ea2f
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x92e0
movq %rbx, %rdi
callq 0x94e0
// File: /workspace/github_cpp_makefile_star2_O1/pfnet-research[P]pml/src/parser.cpp
// Function: parser::simple_type(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long&)
result_t<logic::domain_kind_t> simple_type(std::string const& input, size_t& pos) {
    auto sty_result = expect_token(input, pos, token_t::kind_t::Ident);
    if (sty_result.is_error())
        return sty_result.convert<logic::domain_kind_t>();
    auto sty = sty_result.ok();
    pos = sty.pos + sty.lexime.size();

    if (sty.lexime == "int")
        return result_t<logic::domain_kind_t>::ok(logic::domain_kind_t::Int);
    else if (sty.lexime == "bool")
        return result_t<logic::domain_kind_t>::ok(logic::domain_kind_t::Bool);
    else
        return result_t<logic::domain_kind_t>::error(error_t {
                error_t::kind_t::UnexpectedToken, pos,
                "expected was 'int' or 'bool', but coming is " + sty.lexime
                });
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rdx, %r14
movq %rdi, %rbx
movq (%rdx), %rdx
leaq 0x30(%rsp), %r15
movq %r15, %rdi
movl $0xa, %ecx
callq 0x1c868
cmpb $0x0, 0x30(%r15)
je 0x1f29f
leaq 0x30(%rsp), %rdi
callq 0x2494c
movups (%rax), %xmm0
leaq 0x10(%rsp), %r15
movaps %xmm0, -0x10(%r15)
leaq 0x20(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x10(%rax), %rsi
movq 0x18(%rax), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0xad30
movq 0x18(%rsp), %rax
addq 0x8(%rsp), %rax
movq %rax, (%r14)
leaq 0x2bd91(%rip), %rsi     # 0x4afb5
movq %r15, %rdi
callq 0x90c0
testl %eax, %eax
je 0x1f2b6
leaq 0x2bce5(%rip), %rsi     # 0x4af20
movq %r15, %rdi
callq 0x90c0
testl %eax, %eax
je 0x1f2c2
leaq 0x78(%rsp), %rdi
movl $0x1, -0x10(%rdi)
movq (%r14), %rax
movq %rax, -0x8(%rdi)
leaq 0x2910a(%rip), %rsi     # 0x4836b
movq %r15, %rdx
callq 0x116cf
movb $0x0, 0x30(%rbx)
leaq 0x88(%rsp), %rax
movups -0x20(%rax), %xmm0
movups %xmm0, (%rbx)
leaq 0x20(%rbx), %rcx
movq %rcx, 0x10(%rbx)
movq -0x10(%rax), %rdx
cmpq %rax, %rdx
je 0x1f2ce
movq %rdx, 0x10(%rbx)
movq 0x88(%rsp), %rax
movq %rax, 0x20(%rbx)
jmp 0x1f2d4
leaq 0x30(%rsp), %rdi
callq 0x248f2
movq %rbx, %rdi
movq %rax, %rsi
callq 0x28348
jmp 0x1f2f7
movb $0x1, 0x30(%rbx)
movl $0x0, (%rbx)
jmp 0x1f2e0
movb $0x1, 0x30(%rbx)
movl $0x1, (%rbx)
jmp 0x1f2e0
movups (%rax), %xmm0
movups %xmm0, (%rcx)
movq 0x80(%rsp), %rax
movq %rax, 0x18(%rbx)
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x1f2f7
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x92e0
leaq 0x30(%rsp), %rdi
callq 0x28218
movq %rbx, %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x1f334
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x92e0
jmp 0x1f334
jmp 0x1f331
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x28218
movq %rbx, %rdi
callq 0x94e0
// File: /workspace/github_cpp_makefile_star2_O1/pfnet-research[P]pml/src/parser.cpp
// Function: parser::refinement_type(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long&)
refty_result_t refinement_type(std::string const& input, size_t& pos) {
    size_t prev_pos= pos;
    auto refty_result = refty_detail(input, pos);
    if (refty_result.is_ok())
        return refty_result;
    pos = prev_pos;
    return refty_abbreviation(input, pos);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq (%rdx), %r13
movq %rsp, %r12
movq %r12, %rdi
callq 0x1f9aa
cmpb $0x1, 0x38(%r12)
jne 0x20517
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x24d38
jmp 0x20528
movq %r13, (%r14)
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x20058
movq %rsp, %rdi
callq 0x28440
movq %rbx, %rax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x28440
movq %rbx, %rdi
callq 0x94e0
// File: /workspace/github_cpp_makefile_star2_O1/pfnet-research[P]pml/src/parser.cpp
// Function: parser::expr(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long&)
expr_result_t expr(std::string const& input, size_t& pos) {
    auto token = next_token(input, pos);
    switch (token.kind) {
    case token_t::kind_t::Let:
        return let_expr(input, pos);
    case token_t::kind_t::LetFun:
        return letfun_expr(input, pos);
    case token_t::kind_t::If:
        return if_expr(input, pos);
    default:
        return or_expr(input, pos);
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq (%rdx), %rdx
leaq 0x8(%rsp), %r12
movq %r12, %rdi
callq 0x1bcc7
movl (%r12), %eax
cmpl $0x3, %eax
je 0x213bd
cmpl $0x1, %eax
je 0x213ad
testl %eax, %eax
jne 0x213cd
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x20d1e
jmp 0x213db
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x2142b
jmp 0x213db
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x21c2a
jmp 0x213db
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x24457
leaq 0x28(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x213f6
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x92e0
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x28(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x21423
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x92e0
movq %rbx, %rdi
callq 0x94e0
// File: /workspace/github_cpp_makefile_star2_O1/pfnet-research[P]pml/src/parser.cpp
// Function: parser::neg_expr_t(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long&)
expr_result_t neg_expr_t(std::string const& input, size_t& pos) {
    auto minus_token = next_token(input, pos);
    if (minus_token.kind != token_t::kind_t::Not)
        return primary_expr(input, pos);
    pos = minus_token.pos + minus_token.lexime.size();

    auto inner_result = neg_expr_t(input, pos);
    if (inner_result.is_ok())
        return expr_result_t::ok(make<ast::neg_expr_t>(inner_result.ok()));
    else
        return inner_result;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq (%rdx), %rdx
leaq 0x58(%rsp), %r12
movq %r12, %rdi
callq 0x1bcc7
cmpl $0x24, (%r12)
jne 0x23168
movq 0x70(%rsp), %rax
addq 0x60(%rsp), %rax
movq %rax, (%r14)
leaq 0x20(%rsp), %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x230c7
movb 0x50(%rsp), %al
cmpb $0x1, %al
jne 0x23178
leaq 0x20(%rsp), %rdi
callq 0x24ee2
leaq 0x18(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x10(%rsp), %rsi
leaq 0xf(%rsp), %rdx
movq %rax, %rcx
callq 0x2618c
movaps 0x10(%rsp), %xmm0
xorps %xmm1, %xmm1
movaps %xmm1, 0x10(%rsp)
movb $0x1, 0x30(%rbx)
movups %xmm0, (%rbx)
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x231c9
callq 0xaa12
jmp 0x231c9
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x2226f
jmp 0x231d3
movb %al, 0x30(%rbx)
leaq 0x40(%rsp), %rax
movups -0x20(%rax), %xmm0
movups %xmm0, (%rbx)
leaq 0x20(%rbx), %rcx
movq %rcx, 0x10(%rbx)
movq -0x10(%rax), %rdx
cmpq %rax, %rdx
je 0x231a7
movq %rdx, 0x10(%rbx)
movq 0x40(%rsp), %rcx
movq %rcx, 0x20(%rbx)
jmp 0x231ad
movups (%rax), %xmm0
movups %xmm0, (%rcx)
movq 0x38(%rsp), %rcx
movq %rcx, 0x18(%rbx)
movq %rax, 0x30(%rsp)
movq $0x0, 0x38(%rsp)
movb $0x0, 0x40(%rsp)
leaq 0x20(%rsp), %rdi
callq 0x1a10e
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x231ee
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x92e0
movq %rbx, %rax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x1a10e
jmp 0x23214
jmp 0x23211
movq %rax, %rbx
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2322f
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x92e0
movq %rbx, %rdi
callq 0x94e0
// File: /workspace/github_cpp_makefile_star2_O1/pfnet-research[P]pml/src/parser.cpp
// Function: parser::applicative_expr(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long&)
expr_result_t applicative_expr(std::string const& input, size_t& pos) {
    auto f_result = typed_expr(input, pos);
    if (f_result.is_error())
        return f_result;
    auto f = f_result.ok();

    std::vector<ptr<ast::expr_t>> args;
    while (true) {
        auto e_result = typed_expr(input, pos);
        if (e_result.is_error())
            break;
        args.push_back(e_result.ok());
    }

    if (args.empty())
        return f;
    else
        return expr_result_t::ok(make<ast::app_expr_t>(f, args));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x38(%rsp), %r12
movq %r12, %rdi
callq 0x23237
movb 0x30(%r12), %al
testb %al, %al
je 0x235fc
leaq 0x38(%rsp), %rdi
callq 0x24ee2
movq (%rax), %rcx
movq %rcx, 0x10(%rsp)
movq 0x8(%rax), %rax
movq %rax, 0x18(%rsp)
testq %rax, %rax
je 0x23656
movq 0x3f9be(%rip), %rcx     # 0x62fb0
cmpb $0x0, (%rcx)
je 0x23652
incl 0x8(%rax)
jmp 0x23656
movb %al, 0x30(%rbx)
leaq 0x58(%rsp), %rax
movups -0x20(%rax), %xmm0
movups %xmm0, (%rbx)
leaq 0x20(%rbx), %rcx
movq %rcx, 0x10(%rbx)
movq -0x10(%rax), %rdx
cmpq %rax, %rdx
je 0x2362b
movq %rdx, 0x10(%rbx)
movq 0x58(%rsp), %rcx
movq %rcx, 0x20(%rbx)
jmp 0x23631
movups (%rax), %xmm0
movups %xmm0, (%rcx)
movq 0x50(%rsp), %rcx
movq %rcx, 0x18(%rbx)
movq %rax, 0x48(%rsp)
movq $0x0, 0x50(%rsp)
movb $0x0, 0x58(%rsp)
jmp 0x2374d
lock
incl 0x8(%rax)
xorps %xmm0, %xmm0
leaq 0x20(%rsp), %r12
movaps %xmm0, (%r12)
movq $0x0, 0x10(%r12)
leaq 0x70(%rsp), %r13
movq %r13, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x23237
movb 0xa0(%rsp), %bpl
testb %bpl, %bpl
je 0x236ae
movq %r13, %rdi
callq 0x24ee2
movq %r12, %rdi
movq %rax, %rsi
callq 0x24f96
movq %r13, %rdi
callq 0x1a10e
testb %bpl, %bpl
jne 0x23671
jmp 0x236b8
leaq 0x70(%rsp), %rdi
callq 0x1a10e
movq 0x20(%rsp), %rax
cmpq 0x28(%rsp), %rax
je 0x2370f
leaq 0x78(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x70(%rsp), %rsi
leaq 0xf(%rsp), %rdx
leaq 0x10(%rsp), %rcx
leaq 0x20(%rsp), %r8
callq 0x265bc
movaps 0x70(%rsp), %xmm0
xorps %xmm1, %xmm1
movaps %xmm1, 0x70(%rsp)
movb $0x1, 0x30(%rbx)
movups %xmm0, (%rbx)
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0x23734
callq 0xaa12
jmp 0x23734
movb $0x1, 0x30(%rbx)
movq 0x10(%rsp), %rax
movq %rax, (%rbx)
xorl %eax, %eax
movq %rax, 0x8(%rbx)
movq 0x18(%rsp), %rcx
movq %rax, 0x18(%rsp)
movq %rcx, 0x8(%rbx)
movq %rax, 0x10(%rsp)
leaq 0x20(%rsp), %rdi
callq 0x24fd6
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x2374d
callq 0xaa12
leaq 0x38(%rsp), %rdi
callq 0x1a10e
movq %rbx, %rax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x23773
movq %rax, %rbx
jmp 0x2379e
movq %rax, %rbx
jmp 0x23785
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0x1a10e
leaq 0x20(%rsp), %rdi
callq 0x24fd6
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x2379e
callq 0xaa12
leaq 0x38(%rsp), %rdi
callq 0x1a10e
movq %rbx, %rdi
callq 0x94e0
// File: /workspace/github_cpp_makefile_star2_O1/pfnet-research[P]pml/./include/result.hpp
// Function: result_t<logic::domain_kind_t, parser::error_t>::error(parser::error_t const&)
static result_t error(error_t const& e) {
        result_t result;
        result.m_is_ok = false;
        result.assign_err(e);
        return result;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movb $0x0, 0x30(%rdi)
movups (%rsi), %xmm0
movups %xmm0, (%rdi)
leaq 0x10(%rdi), %r14
leaq 0x20(%rdi), %r15
movq %r15, 0x10(%rdi)
movq 0x10(%rsi), %rax
movq 0x18(%rsi), %rdx
addq %rax, %rdx
movq %r14, %rdi
movq %rax, %rsi
callq 0xad30
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %r12
cmpb $0x0, 0x30(%rbx)
jne 0x283a2
movq %r14, %rdi
movq %r15, %rsi
callq 0x970a
movq %r12, %rdi
callq 0x94e0
// File: /workspace/github_cpp_makefile_star2_O1/pfnet-research[P]pml/./include/result.hpp
// Function: result_t<logic::domain_kind_t, parser::error_t>::operator=(result_t<logic::domain_kind_t, parser::error_t>&&)
result_t& operator=(result_t&& rhs) {
        if (m_is_ok == rhs.m_is_ok) {
            if (m_is_ok)
                m_ok = std::move(rhs.m_ok);
            else
                m_error = std::move(rhs.m_error);
        } else {
            clear();
            m_is_ok = rhs.m_is_ok;
            if (m_is_ok)
                assign_ok(std::move(rhs.m_ok));
            else
                assign_err(std::move(rhs.m_error));
        }
        return *this;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movb 0x30(%rdi), %al
cmpb 0x30(%rsi), %al
jne 0x24cb7
testb %al, %al
jne 0x24cde
movups (%r14), %xmm0
movups %xmm0, (%rbx)
leaq 0x10(%rbx), %rdi
addq $0x10, %r14
movq %r14, %rsi
callq 0x9380
jmp 0x24d2d
testb %al, %al
jne 0x24cd3
movq 0x10(%rbx), %rdi
leaq 0x20(%rbx), %rax
cmpq %rax, %rdi
je 0x24cd3
movq (%rax), %rsi
incq %rsi
callq 0x92e0
movb 0x30(%r14), %al
movb %al, 0x30(%rbx)
cmpb $0x1, %al
jne 0x24ce5
movl (%r14), %eax
movl %eax, (%rbx)
jmp 0x24d2d
movups (%r14), %xmm0
movups %xmm0, (%rbx)
leaq 0x20(%rbx), %rcx
movq %rcx, 0x10(%rbx)
movq 0x10(%r14), %rdx
leaq 0x20(%r14), %rax
cmpq %rax, %rdx
je 0x24d0e
movq %rdx, 0x10(%rbx)
movq (%rax), %rcx
movq %rcx, 0x20(%rbx)
jmp 0x24d14
movups (%rax), %xmm0
movups %xmm0, (%rcx)
movq 0x18(%r14), %rcx
movq %rcx, 0x18(%rbx)
movq %rax, 0x10(%r14)
movq $0x0, 0x18(%r14)
movb $0x0, 0x20(%r14)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/pfnet-research[P]pml/./include/result.hpp
// Function: result_t<ast::refinement_type_t, parser::error_t>::result_t(result_t<ast::refinement_type_t, parser::error_t>&&)
result_t(result_t&& src) :
        m_is_ok{src.m_is_ok}
    {
        if (m_is_ok)
            assign_ok(std::move(src.m_ok));
        else
            assign_err(std::move(src.m_error));
    }

// Assembly:
movb 0x38(%rsi), %al
movb %al, 0x38(%rdi)
cmpb $0x1, %al
je 0x2847c
movups (%rsi), %xmm0
movups %xmm0, (%rdi)
leaq 0x20(%rdi), %rcx
movq %rcx, 0x10(%rdi)
movq 0x10(%rsi), %rdx
leaq 0x20(%rsi), %rax
cmpq %rax, %rdx
je 0x24d6e
movq %rdx, 0x10(%rdi)
movq (%rax), %rcx
movq %rcx, 0x20(%rdi)
jmp 0x24d74
movups (%rax), %xmm0
movups %xmm0, (%rcx)
movq 0x18(%rsi), %rcx
movq %rcx, 0x18(%rdi)
movq %rax, 0x10(%rsi)
movq $0x0, 0x18(%rsi)
movb $0x0, 0x20(%rsi)
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/pfnet-research[P]pml/src/simple_type.cpp
// Function: simty::type_t::from(ast::dependent_type_t const&)
ptr<type_t> type_t::from(ast::dependent_type_t const& ty) {
    std::vector<ptr<type_t>> args;
    for (auto const& arg : ty.args)
        args.push_back(type_t::from(arg));
    auto ret_ty = type_t::from(ty.ret_type);
    return make<fun_type_t>(args, ret_ty);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movq $0x0, 0x40(%rsp)
movq (%rsi), %r15
movq 0x8(%rsi), %rbp
cmpq %rbp, %r15
je 0x28ac9
leaq 0x10(%rsp), %r12
leaq 0x30(%rsp), %r13
movq %r12, %rdi
movq %r15, %rsi
callq 0x289fc
movq %r13, %rdi
movq %r12, %rsi
callq 0x2c390
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x28ac0
callq 0xaa12
addq $0x38, %r15
cmpq %rbp, %r15
jne 0x28a9b
addq $0x18, %r14
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
callq 0x289fc
leaq 0x28(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x20(%rsp), %rsi
leaq 0xf(%rsp), %rdx
leaq 0x30(%rsp), %rcx
leaq 0x10(%rsp), %r8
callq 0x2bf86
movq 0x20(%rsp), %rax
movq %rax, (%rbx)
xorl %eax, %eax
movq %rax, 0x8(%rbx)
movq 0x28(%rsp), %rcx
movq %rax, 0x28(%rsp)
movq %rcx, 0x8(%rbx)
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x28b2b
callq 0xaa12
leaq 0x30(%rsp), %rdi
callq 0x2bc82
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x28b50
jmp 0x28b4b
movq %rax, %rbx
jmp 0x28b62
movq %rax, %rbx
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x28b62
callq 0xaa12
leaq 0x30(%rsp), %rdi
callq 0x2bc82
movq %rbx, %rdi
callq 0x94e0
// File: /workspace/github_cpp_makefile_star2_O1/pfnet-research[P]pml/./include/simple_type.hpp
// Function: simty::operator==(simty::type_t const&, simty::type_t const&)
inline static bool operator==(type_t const& lhs, type_t const& rhs) {
    if (lhs.kind() != rhs.kind())
        return false;
    if (lhs.kind() != kind_t::Fun)
        return true;
    auto const& l = cast<fun_type_t>(lhs);
    auto const& r = cast<fun_type_t>(rhs);
    if (!(*l.ret == *r.ret))
        return false;
    if (l.args.size() != r.args.size())
        return false;
    for (size_t i=0; i<l.args.size(); ++i) {
        if (!(l.args[i] == r.args[i]))
            return false;
    }
    return true;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %rax
callq *(%rax)
movl %eax, %ebp
movq (%rbx), %rax
movq %rbx, %rdi
callq *(%rax)
cmpl %eax, %ebp
jne 0x2bc34
movq (%r14), %rax
movq %r14, %rdi
callq *(%rax)
movl %eax, %ecx
movb $0x1, %al
cmpl $0x2, %ecx
jne 0x2bc36
leaq 0x3694b(%rip), %rsi     # 0x624c0
leaq 0x36954(%rip), %rdx     # 0x624d0
movq %r14, %rdi
xorl %ecx, %ecx
callq 0x9340
testq %rax, %rax
je 0x2bc3b
movq %rax, %r14
leaq 0x36927(%rip), %rsi     # 0x624c0
leaq 0x36930(%rip), %rdx     # 0x624d0
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x9340
testq %rax, %rax
je 0x2bc3b
movq %rax, %rbx
movq 0x20(%r14), %rdi
movq 0x20(%rax), %rsi
callq 0x2bb38
testb %al, %al
je 0x2bc34
movq 0x8(%r14), %rcx
movq 0x10(%r14), %rax
movq %rax, %rdx
subq %rcx, %rdx
movq 0x8(%rbx), %rsi
movq 0x10(%rbx), %rdi
subq %rsi, %rdi
cmpq %rdi, %rdx
jne 0x2bc34
cmpq %rcx, %rax
sete %al
je 0x2bc36
sarq $0x4, %rdx
cmpq $0x1, %rdx
movq %rdx, %rdi
adcq $0x0, %rdi
movq (%rcx), %r8
cmpq (%rsi), %r8
jne 0x2bc36
movl $0x1, %r9d
movl $0x10, %eax
movq %r9, %r8
cmpq %r9, %rdi
je 0x2bc2c
movq (%rcx,%rax), %r10
leaq 0x1(%r8), %r9
leaq 0x10(%rax), %r11
cmpq (%rsi,%rax), %r10
movq %r11, %rax
je 0x2bc0f
cmpq %rdx, %r8
setae %al
jmp 0x2bc36
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
callq 0x9530
// File: /workspace/github_cpp_makefile_star2_O1/pfnet-research[P]pml/./include/result.hpp
// Function: result_t<std::shared_ptr<simty::type_t>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>::result_t(result_t<std::shared_ptr<simty::type_t>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>> const&)
result_t(result_t const& src) :
        m_is_ok{src.m_is_ok}
    {
        if (m_is_ok)
            assign_ok(src.m_ok);
        else
            assign_err(src.m_error);
    }

// Assembly:
movb 0x20(%rsi), %al
movb %al, 0x20(%rdi)
cmpb $0x1, %al
jne 0x2bd75
movq (%rsi), %rax
movq %rax, (%rdi)
movq 0x8(%rsi), %rax
movq %rax, 0x8(%rdi)
testq %rax, %rax
je 0x2bd92
movq 0x37244(%rip), %rcx     # 0x62fb0
cmpb $0x0, (%rcx)
je 0x2bd8e
incl 0x8(%rax)
retq
leaq 0x10(%rdi), %rax
movq %rax, (%rdi)
movq (%rsi), %rax
movq 0x8(%rsi), %rdx
addq %rax, %rdx
movq %rax, %rsi
jmp 0xad30
lock
incl 0x8(%rax)
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/pfnet-research[P]pml/src/test.cpp
// Function: rand_test::~rand_test()
PML_CUSTOM_TEST(rand_test, lang_feature_test) {
    using namespace ast;
    using namespace evaluator;
    parse_test("rand(1, 4)", "Rand(1, 4)");

    for (int i=0; i<16; ++i) {
        auto n1 = cast<int_expr_t>(*eval(make<rand_expr_t>(1, 4))).n;
        assert_(1 <= n1 && n1 <= 4, "1 <= rand(1, 4) <= 4");
    }

    parse_test("rand(1, 4) + 42", "Add(Rand(1, 4), 42)");
    auto n2 = cast<int_expr_t>(*eval(
                make<add_expr_t>(
                    make<rand_expr_t>(1, 4),
                    make<int_expr_t>(42)))).n;
    assert_(43 <= n2 && n2 <= 46, "43 <= rand(1, 4) + 42 <= 46");
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x314eb(%rip), %rax     # 0x62748
movq %rax, (%rdi)
movq 0x31d81(%rip), %rdi     # 0x62fe8
leaq 0x198eb(%rip), %rsi     # 0x4ab59
movl $0xd, %edx
callq 0x9350
movq (%rbx), %rax
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq *0x10(%rax)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq 0x31d51(%rip), %rdi     # 0x62fe8
callq 0x9350
movq %rax, %r14
leaq 0x16c07(%rip), %rsi     # 0x47ead
movl $0x1, %edx
movq %rax, %rdi
callq 0x9350
movl 0x8(%rbx), %esi
movq %r14, %rdi
callq 0x94c0
movq %rax, %rbx
leaq 0x1989f(%rip), %rsi     # 0x4ab67
movl $0x6, %edx
movq %rax, %rdi
callq 0x9350
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x92c0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x9030
movq %rax, %rdi
callq 0x91c0
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x31317
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x92e0
addq $0x28, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rdi
callq 0xa8c9
nop
// File: /workspace/github_cpp_makefile_star2_O1/pfnet-research[P]pml/src/test.cpp
// Function: translation_test::translation_test()
PML_TEST(translation_test) {
    using namespace ast;
    using namespace mdp;
    assert_eq(
            translate_to_mdp(ast::int_expr_t{42}).mdp,
            mdp_t {
                "default",
                {},
                {
                    mdp::constant_t{"c42", 42}
                },
                {}
            });
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x168, %rsp            # imm = 0x168
movq %rdi, %r14
movl $0x0, 0x8(%rdi)
leaq 0x312c0(%rip), %rax     # 0x627c8
movq %rax, (%rdi)
leaq 0x2f5fe(%rip), %rax     # 0x60b10
leaq 0xb8(%rsp), %rsi
movq %rax, (%rsi)
movl $0x2a, 0x8(%rsi)
leaq 0xc8(%rsp), %rdi
callq 0x408aa
leaq 0x60(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x198a4(%rip), %rsi     # 0x4ade6
leaq 0x198a4(%rip), %rdx     # 0x4aded
leaq 0x50(%rsp), %rdi
callq 0x11866
leaq 0x70(%rsp), %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x19878(%rip), %rsi     # 0x4adee
leaq 0x19874(%rip), %rdx     # 0x4adf1
leaq 0x8(%rsp), %rdi
callq 0x11866
leaq 0x38(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x28(%rsp), %rdi
callq 0xad30
leaq 0x88(%rsp), %r15
movabsq $0x2a00000000, %rax     # imm = 0x2A00000000
leaq 0x28(%rsp), %rsi
movq %rax, 0x20(%rsi)
leaq 0x7(%rsp), %rcx
movl $0x1, %edx
movq %r15, %rdi
callq 0x38272
xorps %xmm0, %xmm0
leaq 0x50(%rsp), %rdx
movups %xmm0, 0x50(%rdx)
movq $0x0, 0x60(%rdx)
leaq 0xc8(%rsp), %rsi
movq %r14, %rdi
callq 0x380ba
leaq 0xa0(%rsp), %r14
movq %r14, %rdi
callq 0xa8d4
movq %r15, %rdi
callq 0xa904
movq %rbx, %rdi
callq 0xa934
movq -0x50(%r14), %rdi
cmpq %r12, %rdi
je 0x3162e
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x92e0
leaq 0x48(%rsp), %rbx
movq %rbx, %rdi
callq 0xaaca
movq -0x20(%rbx), %rdi
cmpq %rbp, %rdi
je 0x31651
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x92e0
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x31668
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x92e0
leaq 0x148(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x31689
movq 0x148(%rsp), %rsi
incq %rsi
callq 0x92e0
leaq 0x118(%rsp), %rdi
callq 0xa8d4
leaq 0x100(%rsp), %rdi
callq 0xa904
leaq 0xe8(%rsp), %rbx
movq %rbx, %rdi
callq 0xa934
movq -0x20(%rbx), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
je 0x316d4
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x92e0
addq $0x168, %rsp            # imm = 0x168
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq 0x50(%rsp), %rdi
callq 0xa890
xorl %ebp, %ebp
jmp 0x316fd
movq %rax, %r14
movb $0x1, %bpl
leaq 0x28(%rsp), %rdi
callq 0x382bc
jmp 0x3170f
movq %rax, %r14
movb $0x1, %bpl
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x3172e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x92e0
jmp 0x3172e
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
je 0x31757
movq %rbx, %rdi
callq 0xa934
movq 0x50(%rsp), %rdi
cmpq %r12, %rdi
je 0x31757
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x92e0
jmp 0x31757
movq %rax, %r14
leaq 0xc8(%rsp), %rdi
callq 0x382e4
movq %r14, %rdi
callq 0x94e0
// File: /workspace/github_cpp_makefile_star2_O1/pfnet-research[P]pml/src/test.cpp
// Function: parsing_formula_test::parsing_formula_test()
PML_TEST(parsing_formula_test) {
    std::string input = "true \\/ true /\\ false";
    parser::parse_formula(input).case_of(
        ok >> [&](ptr<logic::formula_t> const& formula) {
            assert_(formula != nullptr, "\"" + input + "\" was parsed to nullptr");
            assert_eq(
                    logic::to_debug_string(*formula),
                    "Or(Top, And(Top, Bot))");
        },
        error >> [this](parser::error_t err) {
            std::string msg = "parse error at " +
                std::to_string(err.pos) + " : " +
                err.message;
            assert_(false, msg);
        });
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x80, %rsp
movq %rdi, %rbx
movl $0x0, 0x8(%rdi)
leaq 0x30009(%rip), %rax     # 0x629b0
movq %rax, (%rdi)
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x18489(%rip), %rsi     # 0x4ae43
leaq 0x18497(%rip), %rdx     # 0x4ae58
movq %rsp, %r14
movq %r14, %rdi
callq 0x11866
leaq 0x38(%rsp), %rdi
movq %r14, %rsi
callq 0x24727
leaq 0x70(%rsp), %rax
movq %rbx, (%rax)
movq %r14, 0x8(%rax)
leaq 0x30(%rsp), %rsi
movq %rax, (%rsi)
leaq 0x20(%rsp), %rax
movq %rbx, (%rax)
leaq 0x28(%rsp), %rdx
movq %rax, (%rdx)
leaq 0x38(%rsp), %rdi
callq 0x392dc
leaq 0x38(%rsp), %rdi
callq 0x28264
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x32a27
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x92e0
addq $0x80, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x28264
jmp 0x32a46
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x32a5c
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x92e0
movq %rbx, %rdi
callq 0x94e0
// File: /workspace/github_cpp_makefile_star2_O1/pfnet-research[P]pml/src/test.cpp
// Function: parsing_term_test::parsing_term_test()
PML_TEST(parsing_term_test) {
    std::string input = "a+b*c";
    parser::parse_term(input).case_of(
        ok >> [&](ptr<logic::term_t> const& term) {
            assert_(term != nullptr, "\"" + input + "\" was parsed to nullptr");
            assert_eq(
                    logic::to_debug_string(*term),
                    "Add(a, Mul(b, c))");
        },
        error >> [this](parser::error_t err) {
            std::string msg = "parse error at " +
                std::to_string(err.pos) + " : " +
                err.message;
            assert_(false, msg);
        });
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x80, %rsp
movq %rdi, %rbx
movl $0x0, 0x8(%rdi)
leaq 0x2fe93(%rip), %rax     # 0x629f0
movq %rax, (%rdi)
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x18325(%rip), %rsi     # 0x4ae95
leaq 0x18323(%rip), %rdx     # 0x4ae9a
movq %rsp, %r14
movq %r14, %rdi
callq 0x11866
leaq 0x38(%rsp), %rdi
movq %r14, %rsi
callq 0x24749
leaq 0x70(%rsp), %rax
movq %rbx, (%rax)
movq %r14, 0x8(%rax)
leaq 0x30(%rsp), %rsi
movq %rax, (%rsi)
leaq 0x20(%rsp), %rax
movq %rbx, (%rax)
leaq 0x28(%rsp), %rdx
movq %rax, (%rdx)
leaq 0x38(%rsp), %rdi
callq 0x3996a
leaq 0x38(%rsp), %rdi
callq 0x28234
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x32bdd
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x92e0
addq $0x80, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x28234
jmp 0x32bfc
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x32c12
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x92e0
movq %rbx, %rdi
callq 0x94e0
// File: /workspace/github_cpp_makefile_star2_O1/pfnet-research[P]pml/src/test.cpp
// Function: parsing_deptype_test::parsing_deptype_test()
PML_TEST(parsing_deptype_test) {
    std::unordered_map<std::string, std::string> inputs = {
        {"{n:int|true} -> {x:bool|x}", "Dep([Ref(n, Int, Top)], Ref(x, Bool, x))"},
        {"(int, int) -> int", "Dep([Ref(@blah, Int, Top), Ref(@blah, Int, Top)], Ref(@blah, Int, Top))"}
    };
    for (auto const& input : inputs) {
        parser::parse_deptype(input.first).case_of(
            ok >> [&](ast::dependent_type_t const& ty) {
                assert_eq(
                    ast::to_debug_string(ty),
                    input.second);
            },
            error >> [&](parser::error_t err) {
                assert_(false, format("parse error at {} : {}",
                        std::to_string(err.pos), err.message));
            });
    }

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movq %rdi, %rbx
movl $0x0, 0x8(%rdi)
leaq 0x2fa46(%rip), %rax     # 0x62a70
movq %rax, (%rdi)
leaq 0x68(%rsp), %r15
leaq 0x17f2a(%rip), %rsi     # 0x4af63
leaq 0x17f3e(%rip), %rdx     # 0x4af7e
movq %r15, %r14
movq %r15, %rdi
callq 0x3abf2
leaq 0xa8(%rsp), %r14
leaq 0x17f4d(%rip), %rsi     # 0x4afa7
leaq 0x17f58(%rip), %rdx     # 0x4afb9
movq %r14, %rdi
callq 0x3ac70
leaq 0xe8(%rsp), %rdx
leaq 0x8(%rsp), %rax
movq %rax, (%rsp)
leaq 0x30(%rsp), %rdi
leaq 0x68(%rsp), %rsi
leaq 0x20(%rsp), %r8
leaq 0x10(%rsp), %r9
xorl %ecx, %ecx
callq 0x3a43c
movq $-0x80, %r14
leaq 0xd8(%rsp), %r15
movq -0x10(%r15), %rdi
cmpq %rdi, %r15
je 0x330b8
movq (%r15), %rsi
incq %rsi
callq 0x92e0
movq -0x30(%r15), %rdi
leaq -0x20(%r15), %rax
cmpq %rdi, %rax
je 0x330d0
movq (%rax), %rsi
incq %rsi
callq 0x92e0
addq $-0x40, %r15
addq $0x40, %r14
jne 0x330a4
movq 0x40(%rsp), %r14
testq %r14, %r14
je 0x33143
leaq 0x68(%rsp), %r15
leaq 0x10(%rsp), %r12
leaq 0x8(%rsp), %r13
leaq 0x8(%r14), %rbp
movq %r15, %rdi
movq %rbp, %rsi
callq 0x24705
movq %rbx, 0x20(%rsp)
movq %rbp, 0x28(%rsp)
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
movq %rbx, 0x18(%rsp)
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x3acee
movq %r15, %rdi
callq 0x284da
movq (%r14), %r14
testq %r14, %r14
jne 0x330f3
leaq 0x30(%rsp), %rdi
callq 0x3abcc
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movl $0x40, %r14d
leaq (%rsp,%r14), %rdi
addq $0x68, %rdi
callq 0x3a2ec
addq $-0x40, %r14
cmpq $-0x40, %r14
jne 0x33168
jmp 0x331bd
movq %rax, %rbx
cmpq %r14, %r15
je 0x331bd
leaq 0x68(%rsp), %r15
addq $-0x40, %r14
movq %r14, %rdi
callq 0x3a2ec
cmpq %r15, %r14
jne 0x3318e
jmp 0x331bd
movq %rax, %rbx
jmp 0x331b3
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
callq 0x284da
leaq 0x30(%rsp), %rdi
callq 0x3abcc
movq %rbx, %rdi
callq 0x94e0
nop
// File: /workspace/github_cpp_makefile_star2_O1/pfnet-research[P]pml/src/test.cpp
// Function: lang_feature_test::parse_test(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void parse_test(std::string const& input, std::string const& output) {
        parser::parse(input).case_of(
            ok >> [&](ptr<ast::expr_t> const& ast) {
                assert_(
                    ast != nullptr,
                    "\"" + input + "\" was parsed to nullptr");
                assert_eq(ast::to_debug_string(*ast), output);
            },
            error >> [this](parser::error_t err) {
                std::string msg = "parse error at" +
                    std::to_string(err.pos) + " : " +
                    err.message;
                assert_(false, msg);
            });
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
leaq 0x18(%rsp), %r12
movq %r12, %rdi
callq 0x246c1
leaq 0x50(%rsp), %rax
movq %r15, (%rax)
movq %r14, 0x8(%rax)
movq %rbx, 0x10(%rax)
leaq 0x10(%rsp), %rsi
movq %rax, (%rsi)
movq %rsp, %rax
movq %r15, (%rax)
leaq 0x8(%rsp), %rdx
movq %rax, (%rdx)
movq %r12, %rdi
callq 0x35bf4
leaq 0x18(%rsp), %rdi
callq 0x1a10e
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x1a10e
movq %rbx, %rdi
callq 0x94e0
// File: /workspace/github_cpp_makefile_star2_O1/pfnet-research[P]pml/./include/result.hpp
// Function: auto result_t<ast::refinement_type_t, parser::error_t>::case_of<parsing_reftype_test::parsing_reftype_test()::'lambda'(ast::refinement_type_t const&), parsing_reftype_test::parsing_reftype_test()::'lambda'(parser::error_t)>(ok_adaptor<parsing_reftype_test::parsing_reftype_test()::'lambda'(ast::refinement_type_t const&)> const&, error_adaptor<parsing_reftype_test::parsing_reftype_test()::'lambda'(parser::error_t)> const&) const
auto case_of(ok_adaptor<F> const& ok_adap, error_adaptor<G> const& err_adap) const {
        using ok_ret_type = decltype(ok_adap.f(std::declval<ok_t>()));
        using err_ret_type = decltype(err_adap.f(std::declval<error_t>()));
        static_assert(std::is_same<ok_ret_type, err_ret_type>::value, "result_t::case_of: return types are different!");
        if (m_is_ok)
            return ok_adap.f(m_ok);
        else
            return err_adap.f(m_error);
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x50, %rsp
movq %rdi, %rax
cmpb $0x1, 0x38(%rdi)
jne 0x3a370
movq (%rsi), %r15
movq (%r15), %rbx
movq %rsp, %r14
movq %r14, %rdi
movq %rax, %rsi
callq 0x43427
movq 0x8(%r15), %rdx
addq $0x20, %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x361fa
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3a3bc
movq 0x10(%rsp), %rsi
jmp 0x3a3b4
movq (%rdx), %rbx
movups (%rax), %xmm0
leaq 0x30(%rsp), %rdi
movaps %xmm0, -0x10(%rdi)
leaq 0x40(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x10(%rax), %rsi
movq 0x18(%rax), %rdx
addq %rsi, %rdx
callq 0xad30
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
callq 0x3aa2e
movq 0x30(%rsp), %rdi
cmpq %r14, %rdi
je 0x3a3bc
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x92e0
addq $0x50, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %r14, %rdi
je 0x3a3f8
movq 0x40(%rsp), %rsi
jmp 0x3a3f0
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3a3f8
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x92e0
movq %rbx, %rdi
callq 0x94e0
// File: /workspace/github_cpp_makefile_star2_O1/pfnet-research[P]pml/./include/test.hpp
// Function: test::test_base::assert_(bool, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void assert_(bool is_ok, std::string const& msg = "") {
        assert_count++;
        if (is_ok)
            return;
        std::stringstream ss;
        ss << "\033[31mtest[" << name() <<  "] fail.. \033[39m ";
        ss << "assertion: " << msg << std::endl;
        throw test_fail_exception{ss.str()};
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x1a8, %rsp            # imm = 0x1A8
incl 0x8(%rdi)
testl %esi, %esi
je 0x3609e
addq $0x1a8, %rsp            # imm = 0x1A8
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rdx, %rbx
movq %rdi, %r15
leaq 0x20(%rsp), %rdi
callq 0x91d0
leaq 0x30(%rsp), %r14
leaq 0x14a3d(%rip), %rsi     # 0x4aaf7
movl $0xa, %edx
movq %r14, %rdi
callq 0x9350
movq (%r15), %rax
movq %rsp, %rdi
movq %r15, %rsi
callq *0x10(%rax)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %r14, %rdi
callq 0x9350
leaq 0x14a17(%rip), %rsi     # 0x4ab02
movl $0xf, %edx
movq %rax, %rdi
callq 0x9350
leaq 0x10(%rsp), %r15
movq -0x10(%r15), %rdi
cmpq %r15, %rdi
je 0x36113
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x92e0
leaq 0x149f8(%rip), %rsi     # 0x4ab12
movl $0xb, %edx
movq %r14, %rdi
callq 0x9350
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq %r14, %rdi
callq 0x9350
movq %rax, %rdi
callq 0x9140
movl $0x28, %edi
callq 0x9150
movq %rax, %r14
leaq 0x38(%rsp), %rsi
movq %rsp, %rdi
callq 0x9440
movb $0x1, %bpl
movq %rsp, %rsi
movq %r14, %rdi
callq 0x363c8
xorl %ebp, %ebp
leaq 0x2c489(%rip), %rsi     # 0x625f8
leaq 0x29c(%rip), %rdx       # 0x36412
movq %r14, %rdi
callq 0x94b0
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x3619f
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x92e0
jmp 0x3619f
movq %rax, %rbx
movb $0x1, %bpl
testb %bpl, %bpl
je 0x361d3
movq %r14, %rdi
callq 0x9200
jmp 0x361d3
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x361d3
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x92e0
jmp 0x361d3
jmp 0x361d0
movq %rax, %rbx
movq 0x2cd9e(%rip), %rsi     # 0x62f78
leaq 0x20(%rsp), %rdi
callq 0x9210
leaq 0xa0(%rsp), %rdi
callq 0x90e0
movq %rbx, %rdi
callq 0x94e0
nop
// File: /workspace/github_cpp_makefile_star2_O1/pfnet-research[P]pml/./include/test.hpp
// Function: void test::test_base::assert_eq<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void assert_eq(T1 const& lhs, T2 const& rhs) {
        assert_count++;
        if (lhs == rhs)
            return;
        std::stringstream ss;
        ss << "\033[31mtest[" << name() <<  "] fail.. \033[39m ";
        ss << "assertion: " << lhs << " == " << rhs << std::endl;
        throw test_fail_exception{ss.str()};
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1b0, %rsp            # imm = 0x1B0
movq %rdx, %rbx
movq %rdi, %r12
incl 0x8(%rdi)
movq %rsi, %r14
movq 0x8(%rsi), %rdx
cmpq 0x8(%rbx), %rdx
jne 0x36243
testq %rdx, %rdx
je 0x36233
movq (%rbx), %rsi
movq (%r14), %rdi
callq 0x9300
testl %eax, %eax
jne 0x36243
addq $0x1b0, %rsp            # imm = 0x1B0
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x28(%rsp), %rdi
callq 0x91d0
leaq 0x38(%rsp), %r15
leaq 0x1489e(%rip), %rsi     # 0x4aaf7
movl $0xa, %edx
movq %r15, %rdi
callq 0x9350
movq (%r12), %rax
leaq 0x8(%rsp), %rdi
movq %r12, %rsi
callq *0x10(%rax)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %r15, %rdi
callq 0x9350
leaq 0x14874(%rip), %rsi     # 0x4ab02
movl $0xf, %edx
movq %rax, %rdi
callq 0x9350
leaq 0x18(%rsp), %r12
movq -0x10(%r12), %rdi
cmpq %r12, %rdi
je 0x362b7
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x92e0
leaq 0x14854(%rip), %rsi     # 0x4ab12
movl $0xb, %edx
movq %r15, %rdi
callq 0x9350
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %r15, %rdi
callq 0x9350
movq %rax, %r14
leaq 0x1483a(%rip), %rsi     # 0x4ab1e
movl $0x4, %edx
movq %rax, %rdi
callq 0x9350
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq %r14, %rdi
callq 0x9350
movq %rax, %rdi
callq 0x9140
movl $0x28, %edi
callq 0x9150
movq %rax, %r14
leaq 0x40(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0x9440
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x363c8
xorl %ebp, %ebp
leaq 0x2c2bb(%rip), %rsi     # 0x625f8
leaq 0xce(%rip), %rdx        # 0x36412
movq %r14, %rdi
callq 0x94b0
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x3636e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x92e0
jmp 0x3636e
movq %rax, %rbx
movb $0x1, %bpl
testb %bpl, %bpl
je 0x363a2
movq %r14, %rdi
callq 0x9200
jmp 0x363a2
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x363a2
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x92e0
jmp 0x363a2
jmp 0x3639f
movq %rax, %rbx
movq 0x2cbcf(%rip), %rsi     # 0x62f78
leaq 0x28(%rsp), %rdi
callq 0x9210
leaq 0xa8(%rsp), %rdi
callq 0x90e0
movq %rbx, %rdi
callq 0x94e0
// File: /workspace/github_cpp_makefile_star2_O1/pfnet-research[P]pml/src/translate_to_mdp.cpp
// Function: create_bool_case(bool)
mdp_with_info_t create_bool_case(bool b) {
    auto const_name = "c" + std::to_string(b);
    int current = translation_data::current_location();
    return mdp_with_info_t {
        mdp::mdp_t {
            "default",
            {},
            { mdp::constant_t{const_name, b} },
            {}
        },
        current, current,
        value_info_t {
            const_name, util::nullopt
        }
    };
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x40(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x30(%rsp), %r14
movl $0x1, %esi
movq %r14, %rdi
movl $0x2d, %edx
callq 0x9360
movq (%r14), %rdi
movl $0x1, %esi
movl %ebp, %edx
callq 0x117f9
leaq 0xa944(%rip), %rcx      # 0x4ae99
movl $0x1, %r8d
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x9330
leaq 0x20(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4058e
movq %rdx, 0x10(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x20(%rsp)
jmp 0x40595
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
movq %rdx, 0x18(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x30(%rsp), %rdi
cmpq %r12, %rdi
je 0x405c4
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x92e0
movl 0x22cfd(%rip), %r14d    # 0x632c8
leaq 0x10(%rbx), %r13
movq %r13, (%rbx)
leaq 0xa80d(%rip), %rsi      # 0x4ade6
leaq 0xa80d(%rip), %rdx      # 0x4aded
movq %rbx, %rdi
callq 0x11866
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rbx)
movq $0x0, 0x30(%rbx)
leaq 0x30(%rsp), %rdi
movq %r12, (%rdi)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
addq %rsi, %rdx
callq 0xad30
leaq 0x30(%rsp), %rsi
movb %bpl, 0x24(%rsi)
movl $0x1, 0x20(%rsi)
leaq 0x38(%rbx), %rdi
leaq 0xf(%rsp), %rcx
movl $0x1, %edx
callq 0x38272
xorps %xmm0, %xmm0
movups %xmm0, 0x50(%rbx)
movq $0x0, 0x60(%rbx)
movl %r14d, 0x68(%rbx)
movl %r14d, 0x6c(%rbx)
leaq 0x70(%rbx), %rdi
leaq 0x80(%rbx), %rax
movq %rax, 0x70(%rbx)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
addq %rsi, %rdx
callq 0xad30
movb $0x0, 0x98(%rbx)
leaq 0x50(%rsp), %r14
movq %r14, %rdi
callq 0xaaca
movq -0x20(%r14), %rdi
cmpq %r12, %rdi
je 0x40696
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x92e0
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x406ad
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x92e0
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0xa890
xorl %ebp, %ebp
jmp 0x406d4
movq %rax, %r14
movb $0x1, %bpl
leaq 0x30(%rsp), %rdi
callq 0x382bc
jmp 0x406e6
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
je 0x4070d
leaq 0x20(%rbx), %rdi
callq 0xa934
movq (%rbx), %rdi
cmpq %r13, %rdi
je 0x4070d
movq (%r13), %rsi
incq %rsi
callq 0x92e0
jmp 0x4070d
movq %rax, %r14
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x40738
movq 0x20(%rsp), %rsi
jmp 0x40730
movq %rax, %r14
movq 0x30(%rsp), %rdi
cmpq %r12, %rdi
je 0x40738
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x92e0
movq %r14, %rdi
callq 0x94e0
// File: /workspace/github_cpp_makefile_star2_O1/pfnet-research[P]pml/src/translate_to_mdp.cpp
// Function: create_var_case(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, environment_t<value_info_t> const&)
mdp_with_info_t create_var_case(std::string const& name, var_env_t const& var_env) {
    auto result_var = *var_env.lookup(name);
    result_var.name = name;
    int current = translation_data::current_location();
    return mdp_with_info_t {
        mdp::mdp_t {
            "default", {}, {}, {}
        },
        current, current,
        result_var
    };
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x30(%rsp), %r15
movq %r15, %rdi
movq %rdx, %rsi
movq %r14, %rdx
callq 0x40c6c
movq (%r15), %r12
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%r12), %rsi
movq 0x8(%r12), %rdx
addq %rsi, %rdx
movq %rsp, %rdi
callq 0xad30
movb $0x0, 0x28(%rsp)
cmpb $0x1, 0x28(%r12)
jne 0x407a1
movq 0x20(%r12), %rax
movq %rax, 0x20(%rsp)
movb $0x1, 0x28(%rsp)
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x407b0
callq 0xaa12
movq %rsp, %rdi
movq %r14, %rsi
callq 0x9170
movl 0x22b07(%rip), %ebp     # 0x632c8
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0xa617(%rip), %rsi      # 0x4ade6
leaq 0xa617(%rip), %rdx      # 0x4aded
movq %rbx, %rdi
callq 0x11866
xorps %xmm0, %xmm0
movups %xmm0, 0x50(%rbx)
movups %xmm0, 0x40(%rbx)
movups %xmm0, 0x30(%rbx)
movups %xmm0, 0x20(%rbx)
movq $0x0, 0x60(%rbx)
movl %ebp, 0x68(%rbx)
movl %ebp, 0x6c(%rbx)
leaq 0x70(%rbx), %rdi
leaq 0x80(%rbx), %rax
movq %rax, 0x70(%rbx)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
callq 0xad30
movb $0x0, 0x98(%rbx)
cmpb $0x1, 0x28(%rsp)
jne 0x40840
movq 0x20(%rsp), %rax
movq %rax, 0x90(%rbx)
movb $0x1, 0x98(%rbx)
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x40856
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x92e0
movq %rbx, %rax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0xa890
jmp 0x40878
jmp 0x40875
movq %rax, %r14
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x408a2
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x92e0
jmp 0x408a2
movq %rax, %r14
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x408a2
callq 0xaa12
movq %r14, %rdi
callq 0x94e0