// File: /workspace/github_cpp_makefile_star2_O3/pfnet-research[P]pml/src/translate_to_mdp.cpp
// Function: make_concat(int, int, std::shared_ptr<mdp::expr_t> const&)
mdp::command_t make_concat(int from, int to, ptr<mdp::expr_t> const& update) {
    return mdp::command_t {
        make<mdp::binop_expr_t>(
                make<mdp::var_expr_t>("location"),
                make<mdp::int_expr_t>(from),
                mdp::binop_kind_t::Eq),
        {
            mdp::branch_t{
                make<mdp::int_expr_t>(1),
                make<mdp::binop_expr_t>(
                        make<mdp::binop_expr_t>(
                            make<mdp::var_expr_t>("location'"),
                            make<mdp::int_expr_t>(to),
                            mdp::binop_kind_t::Eq),
                        update,
                        mdp::binop_kind_t::And)
            }
        }
    };
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rcx, %r14
movl %edx, %ebp
movl %esi, %r15d
movq %rdi, 0x38(%rsp)
leaq 0x68(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x85c7(%rip), %rcx      # 0x45150
leaq 0x60(%rsp), %rsi
leaq 0x70(%rsp), %rdx
callq 0x38192
movl $0x20, %edi
callq 0x92d0
movabsq $0x100000001, %r12      # imm = 0x100000001
movq %r12, 0x8(%rax)
leaq 0x24d81(%rip), %r13     # 0x61938
movq %r13, (%rax)
movq %rax, %rcx
addq $0x10, %rcx
leaq 0x24dc0(%rip), %rbx     # 0x61988
movq %rbx, 0x10(%rax)
movl %r15d, 0x18(%rax)
leaq 0xa8(%rsp), %r8
movq %rax, 0x8(%r8)
movq %rcx, (%r8)
leaq 0xa4(%rsp), %r9
movl $0x8, (%r9)
leaq 0x18(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x10(%rsp), %rsi
leaq 0x70(%rsp), %rdx
leaq 0x60(%rsp), %rcx
callq 0x37f76
movaps 0x10(%rsp), %xmm0
xorl %eax, %eax
movq %rax, 0x18(%rsp)
movq 0x38(%rsp), %r15
movups %xmm0, (%r15)
movq %rax, 0x10(%rsp)
movl $0x20, %edi
callq 0x92d0
movq %r12, 0x8(%rax)
movq %r13, (%rax)
movq %rax, %rcx
addq $0x10, %rcx
movq %rbx, 0x10(%rax)
movl $0x1, 0x18(%rax)
movq %rcx, 0x70(%rsp)
movq %rax, 0x78(%rsp)
leaq 0x48(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0xe1b5(%rip), %rcx      # 0x4ae1f
leaq 0x40(%rsp), %rsi
leaq 0x90(%rsp), %rdx
callq 0x385c2
movl $0x20, %edi
callq 0x92d0
movq %r12, 0x8(%rax)
movq %r13, (%rax)
movq %rax, %rcx
addq $0x10, %rcx
movq %rbx, 0x10(%rax)
movl %ebp, 0x18(%rax)
leaq 0x90(%rsp), %r8
movq %rax, 0x8(%r8)
movq %rcx, (%r8)
leaq 0xa0(%rsp), %r9
movl $0x8, (%r9)
leaq 0x58(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x50(%rsp), %rsi
leaq 0xc(%rsp), %rdx
leaq 0x40(%rsp), %rcx
callq 0x37f76
leaq 0xc(%rsp), %r9
movl $0xa, (%r9)
leaq 0x28(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x20(%rsp), %rsi
leaq 0xb(%rsp), %rdx
leaq 0x50(%rsp), %rcx
movq %r14, %r8
callq 0x409dc
leaq 0x10(%r15), %rdi
movaps 0x20(%rsp), %xmm0
leaq 0x70(%rsp), %rsi
movups %xmm0, 0x10(%rsi)
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
leaq 0xb(%rsp), %rcx
movl $0x1, %edx
callq 0x37e1e
movq 0x88(%rsp), %rdi
testq %rdi, %rdi
je 0x3cd45
callq 0xa946
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0x3cd54
callq 0xa946
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x3cd63
callq 0xa946
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x3cd72
callq 0xa946
movq 0x98(%rsp), %rdi
testq %rdi, %rdi
je 0x3cd84
callq 0xa946
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x3cd93
callq 0xa946
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x3cda2
callq 0xa946
movq 0xb0(%rsp), %rdi
testq %rdi, %rdi
je 0x3cdb4
callq 0xa946
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0x3cdc3
callq 0xa946
movq %r15, %rax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq 0x70(%rsp), %rdi
callq 0x37d86
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x3cdf4
callq 0xa946
xorl %ebx, %ebx
jmp 0x3cdfd
movq %rax, %r14
movb $0x1, %bl
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x3ce13
callq 0xa946
jmp 0x3ce13
movq %rax, %r14
movb $0x1, %bl
movq 0x98(%rsp), %rdi
testq %rdi, %rdi
je 0x3ce25
callq 0xa946
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x3ce34
callq 0xa946
testb %bl, %bl
jne 0x3ce51
jmp 0x3ce65
movq %rax, %r14
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x3ce51
callq 0xa946
jmp 0x3ce51
movq %rax, %r14
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0x3ce65
callq 0xa946
jmp 0x3ce65
movq %rax, %r14
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rdi
testq %rdi, %rdi
je 0x3ce78
callq 0xa946
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x3ce8c
callq 0xa946
jmp 0x3ce8c
movq %rax, %r14
movq 0xb0(%rsp), %rdi
testq %rdi, %rdi
je 0x3cea3
callq 0xa946
jmp 0x3cea3
movq %rax, %r14
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0x3ceb2
callq 0xa946
movq %r14, %rdi
callq 0x94e0