// File: /workspace/github_cpp_makefile_star2_O1/pfnet-research[P]pml/src/translate_to_mdp.cpp
// Function: create_neg_case(ast::expr_t const&, environment_t<value_info_t> const&)
mdp_with_info_t create_neg_case(ast::expr_t const& inner, var_env_t const& var_env) {
    auto inner_ = trans_impl(inner, var_env);
    auto accept_loc = translation_data::fresh_location();
    auto result_var_name = translation_data::fresh_var();

    auto result_var = mdp::variable_t{result_var_name, true};

    // [] location=accept-of-inner -> 1:location'=accept_loc&result_var_name'=!inner
    auto concat = make_concat(
            inner_.accept, accept_loc,
            make<mdp::binop_expr_t>(
                make<mdp::var_expr_t>(result_var_name+"'"),
                make<mdp::neg_expr_t>(
                    make<mdp::var_expr_t>(inner_.value.name)),
                mdp::binop_kind_t::Eq));

    inner_.mdp.commands.push_back(concat);
    inner_.mdp.variables.push_back(result_var);

    return mdp_with_info_t {
        inner_.mdp, inner_.init, accept_loc,
        value_info_t {
            result_var_name, util::nullopt
        }
    };
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x198, %rsp            # imm = 0x198
movq %rdi, %rbx
leaq 0xd0(%rsp), %rdi
callq 0x3e126
movl 0x234f6(%rip), %r14d    # 0x632c8
leal 0x1(%r14), %eax
movl %eax, 0x234ec(%rip)     # 0x632c8
leaq 0x30(%rsp), %rdi
callq 0x40a42
leaq 0xa0(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
leaq 0x90(%rsp), %rdi
callq 0xad30
movb $0x1, 0xb4(%rsp)
movl $0x1, 0xb0(%rsp)
movl 0x13c(%rsp), %ebp
leaq 0x70(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
leaq 0x60(%rsp), %rdi
callq 0xad30
leaq 0xafde(%rip), %rsi      # 0x4ae2b
leaq 0x60(%rsp), %rdi
callq 0x9540
leaq 0x88(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x80(%rsp), %rsi
leaq 0x10(%rsp), %rdx
leaq 0x60(%rsp), %rcx
callq 0x40e4a
leaq 0x140(%rsp), %rcx
leaq 0x58(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x50(%rsp), %rsi
leaq 0xc(%rsp), %rdx
callq 0x41612
leaq 0x18(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x10(%rsp), %rsi
leaq 0xc(%rsp), %rdx
leaq 0x50(%rsp), %rcx
callq 0x41702
leaq 0xc(%rsp), %r9
movl $0x8, (%r9)
leaq 0x28(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x20(%rsp), %rsi
leaq 0xb(%rsp), %rdx
leaq 0x80(%rsp), %rcx
leaq 0x10(%rsp), %r8
callq 0x41874
movups 0x20(%rsp), %xmm0
leaq 0xc0(%rsp), %rcx
movups %xmm0, (%rcx)
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rsp)
leaq 0x170(%rsp), %rdi
movl %ebp, %esi
movl %r14d, %edx
callq 0x3d42c
movq 0xc8(%rsp), %rdi
testq %rdi, %rdi
je 0x3ff34
callq 0xaa12
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x3ff43
callq 0xaa12
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x3ff52
callq 0xaa12
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x3ff61
callq 0xaa12
movq 0x88(%rsp), %rdi
testq %rdi, %rdi
je 0x3ff73
callq 0xaa12
movq 0x60(%rsp), %rdi
cmpq %r15, %rdi
je 0x3ff8a
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x92e0
leaq 0x120(%rsp), %rdi
leaq 0x170(%rsp), %rsi
callq 0x40c18
leaq 0xf0(%rsp), %r12
leaq 0x90(%rsp), %rsi
movq %r12, %rdi
callq 0x40c42
leaq 0x10(%rbx), %r15
movq %r15, (%rbx)
movq 0xd0(%rsp), %rsi
movq 0xd8(%rsp), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0xad30
leaq 0x20(%rbx), %rbp
movq %rbp, %rdi
movq %r12, %rsi
callq 0x40eda
leaq 0x38(%rbx), %r13
leaq 0x108(%rsp), %rsi
movq %r13, %rdi
callq 0x40f76
leaq 0x50(%rbx), %rdi
leaq 0x120(%rsp), %rsi
callq 0x41010
movl 0x138(%rsp), %eax
movl %eax, 0x68(%rbx)
movl %r14d, 0x6c(%rbx)
leaq 0x70(%rbx), %rdi
leaq 0x80(%rbx), %rax
movq %rax, 0x70(%rbx)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
callq 0xad30
leaq 0xb0(%rsp), %r14
movb $0x0, 0x98(%rbx)
leaq 0x180(%rsp), %r13
movq %r13, %rdi
callq 0xa9a6
movq -0x8(%r13), %rdi
testq %rdi, %rdi
je 0x40069
callq 0xaa12
movq %r14, %rdi
callq 0xab60
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x40096
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x92e0
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x400b1
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x92e0
leaq 0x150(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x400d2
movq 0x150(%rsp), %rsi
incq %rsi
callq 0x92e0
leaq 0x120(%rsp), %rdi
callq 0xa8d4
leaq 0x108(%rsp), %rdi
callq 0xa904
movq %r12, %rdi
callq 0xa934
leaq 0xe0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x40115
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x92e0
movq %rbx, %rax
addq $0x198, %rsp            # imm = 0x198
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0xa890
jmp 0x40208
movq %rax, %r14
movq %r13, %rdi
callq 0xa904
jmp 0x4014a
movq %rax, %r14
movq %rbp, %rdi
callq 0xa934
jmp 0x40157
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0x40208
movq (%r15), %rsi
incq %rsi
callq 0x92e0
jmp 0x40208
movq %rax, %r14
movq 0xc8(%rsp), %rdi
testq %rdi, %rdi
je 0x40188
callq 0xaa12
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x4019c
callq 0xaa12
jmp 0x4019c
movq %rax, %r14
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x401b0
callq 0xaa12
jmp 0x401b0
movq %rax, %r14
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x401c4
callq 0xaa12
jmp 0x401c4
movq %rax, %r14
movq 0x88(%rsp), %rdi
testq %rdi, %rdi
je 0x401dd
callq 0xaa12
jmp 0x401dd
jmp 0x401da
movq %rax, %r14
movq 0x60(%rsp), %rdi
cmpq %r15, %rdi
je 0x40215
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x92e0
jmp 0x40215
movq %rax, %r14
jmp 0x40215
movq %rax, %r14
jmp 0x40222
movq %rax, %r14
jmp 0x4023d
movq %rax, %r14
leaq 0x170(%rsp), %rdi
callq 0x384ec
leaq 0x90(%rsp), %rdi
callq 0x3852e
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4023d
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x92e0
leaq 0xd0(%rsp), %rdi
callq 0x382e4
movq %r14, %rdi
callq 0x94e0