// File: /workspace/github_cpp_makefile_star2_O1/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, 0x98(%rsp)
movl %edx, %ebp
movl %esi, %r15d
movq %rdi, %rbx
xorl %r14d, %r14d
leaq 0x70(%rsp), %rdi
movq %r14, -0x8(%rdi)
leaq 0x7cf0(%rip), %rcx      # 0x45150
leaq 0x68(%rsp), %rsi
leaq 0x78(%rsp), %rdx
callq 0x38934
movq %r14, 0xa0(%rsp)
movl $0x20, %edi
callq 0x92d0
movabsq $0x100000001, %r12      # imm = 0x100000001
movq %r12, 0x8(%rax)
leaq 0x254a2(%rip), %r13     # 0x62938
movq %r13, (%rax)
movq %rax, %rcx
addq $0x10, %rcx
leaq 0x254e1(%rip), %r14     # 0x62988
movq %r14, 0x10(%rax)
movl %r15d, 0x18(%rax)
leaq 0xa0(%rsp), %r8
movq %rax, 0x8(%r8)
movq %rcx, (%r8)
leaq 0xb4(%rsp), %r9
movl $0x8, (%r9)
leaq 0x18(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x10(%rsp), %rsi
leaq 0x78(%rsp), %rdx
leaq 0x68(%rsp), %rcx
callq 0x386fa
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)
movl $0x20, %edi
callq 0x92d0
movq %r12, 0x8(%rax)
movq %r13, (%rax)
movq %rax, %rcx
addq $0x10, %rcx
movq %r14, 0x10(%rax)
movl $0x1, 0x18(%rax)
movq %rcx, 0x78(%rsp)
movq %rax, 0x80(%rsp)
leaq 0x50(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0xd8cc(%rip), %rcx      # 0x4ae1f
leaq 0x48(%rsp), %rsi
leaq 0x38(%rsp), %rdx
callq 0x38da0
movq $0x0, 0x38(%rsp)
movl $0x20, %edi
callq 0x92d0
movq %r12, 0x8(%rax)
movq %r13, (%rax)
movq %rax, %rcx
addq $0x10, %rcx
movq %r14, 0x10(%rax)
movl %ebp, 0x18(%rax)
leaq 0x38(%rsp), %r8
movq %rax, 0x8(%r8)
movq %rcx, (%r8)
leaq 0xb0(%rsp), %r9
movl $0x8, (%r9)
leaq 0x60(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x58(%rsp), %rsi
leaq 0x24(%rsp), %rdx
leaq 0x48(%rsp), %rcx
callq 0x386fa
leaq 0x24(%rsp), %r9
movl $0xa, (%r9)
leaq 0x30(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x28(%rsp), %rsi
leaq 0xf(%rsp), %rdx
leaq 0x58(%rsp), %rcx
movq 0x98(%rsp), %r8
callq 0x412c0
leaq 0x10(%rbx), %rdi
movups 0x28(%rsp), %xmm0
leaq 0x78(%rsp), %rsi
movups %xmm0, 0x10(%rsi)
xorps %xmm0, %xmm0
movups %xmm0, 0x28(%rsp)
leaq 0xf(%rsp), %rcx
movl $0x1, %edx
callq 0x385a2
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0x3d636
callq 0xaa12
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0x3d648
callq 0xaa12
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x3d657
callq 0xaa12
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x3d666
callq 0xaa12
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x3d675
callq 0xaa12
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x3d684
callq 0xaa12
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x3d693
callq 0xaa12
movq 0xa8(%rsp), %rdi
testq %rdi, %rdi
je 0x3d6a5
callq 0xaa12
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x3d6b4
callq 0xaa12
movq %rbx, %rax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq 0x78(%rsp), %rdi
callq 0x3850a
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x3d6e5
callq 0xaa12
xorl %ebp, %ebp
jmp 0x3d6ef
movq %rax, %r14
movb $0x1, %bpl
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x3d706
callq 0xaa12
jmp 0x3d706
movq %rax, %r14
movb $0x1, %bpl
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x3d71d
callq 0xaa12
jmp 0x3d71d
movq %rax, %r14
movb $0x1, %bpl
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x3d734
callq 0xaa12
jmp 0x3d734
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
je 0x3d750
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0x3d750
callq 0xaa12
jmp 0x3d750
movq %rax, %r14
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0x3d75e
callq 0xaa12
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x3d772
callq 0xaa12
jmp 0x3d772
movq %rax, %r14
movq 0xa8(%rsp), %rdi
testq %rdi, %rdi
je 0x3d789
callq 0xaa12
jmp 0x3d789
movq %rax, %r14
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x3d798
callq 0xaa12
movq %r14, %rdi
callq 0x94e0