// File: /workspace/github_cpp_makefile_star2_O3/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 0x3d82e
movl 0x22db7(%rip), %r14d    # 0x622c8
leal 0x1(%r14), %eax
movl %eax, 0x22dad(%rip)     # 0x622c8
leaq 0x30(%rsp), %rdi
callq 0x4017c
leaq 0xa0(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
leaq 0x90(%rsp), %rdi
callq 0xac68
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 0xac68
leaq 0xb89f(%rip), %rsi      # 0x4ae2b
leaq 0x60(%rsp), %rdi
callq 0x9540
leaq 0x88(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x80(%rsp), %rsi
leaq 0x20(%rsp), %rdx
leaq 0x60(%rsp), %rcx
callq 0x40566
leaq 0x140(%rsp), %rcx
leaq 0x58(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x50(%rsp), %rsi
leaq 0xc(%rsp), %rdx
callq 0x40d02
leaq 0x28(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x20(%rsp), %rsi
leaq 0xc(%rsp), %rdx
leaq 0x50(%rsp), %rcx
callq 0x40df2
leaq 0xc(%rsp), %r9
movl $0x8, (%r9)
leaq 0x18(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x10(%rsp), %rsi
leaq 0xb(%rsp), %rdx
leaq 0x80(%rsp), %rcx
leaq 0x20(%rsp), %r8
callq 0x40f5c
movaps 0x10(%rsp), %xmm0
leaq 0xc0(%rsp), %rcx
movaps %xmm0, (%rcx)
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
leaq 0x170(%rsp), %rdi
movl %ebp, %esi
movl %r14d, %edx
callq 0x3cb57
movq 0xc8(%rsp), %rdi
testq %rdi, %rdi
je 0x3f673
callq 0xa946
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x3f682
callq 0xa946
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x3f691
callq 0xa946
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x3f6a0
callq 0xa946
movq 0x88(%rsp), %rdi
testq %rdi, %rdi
je 0x3f6b2
callq 0xa946
movq 0x60(%rsp), %rdi
cmpq %r15, %rdi
je 0x3f6c9
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x92e0
leaq 0x120(%rsp), %rdi
leaq 0x170(%rsp), %rsi
callq 0x40352
leaq 0xf0(%rsp), %r12
leaq 0x90(%rsp), %rsi
movq %r12, %rdi
callq 0x4037c
leaq 0x10(%rbx), %r15
movq %r15, (%rbx)
movq 0xd0(%rsp), %rsi
movq 0xd8(%rsp), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0xac68
leaq 0x20(%rbx), %rbp
movq %rbp, %rdi
movq %r12, %rsi
callq 0x405f6
leaq 0x38(%rbx), %r13
leaq 0x108(%rsp), %rsi
movq %r13, %rdi
callq 0x40692
leaq 0x50(%rbx), %rdi
leaq 0x120(%rsp), %rsi
callq 0x4072c
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 0xac68
leaq 0xb0(%rsp), %r14
movb $0x0, 0x98(%rbx)
leaq 0x180(%rsp), %r13
movq %r13, %rdi
callq 0xa8da
movq -0x8(%r13), %rdi
testq %rdi, %rdi
je 0x3f7a8
callq 0xa946
movq %r14, %rdi
callq 0xaa94
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x3f7d5
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x92e0
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3f7f0
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x92e0
leaq 0x150(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3f811
movq 0x150(%rsp), %rsi
incq %rsi
callq 0x92e0
leaq 0x120(%rsp), %rdi
callq 0xa808
leaq 0x108(%rsp), %rdi
callq 0xa838
movq %r12, %rdi
callq 0xa868
leaq 0xe0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3f854
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 0xa7c4
jmp 0x3f947
movq %rax, %r14
movq %r13, %rdi
callq 0xa838
jmp 0x3f889
movq %rax, %r14
movq %rbp, %rdi
callq 0xa868
jmp 0x3f896
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0x3f947
movq (%r15), %rsi
incq %rsi
callq 0x92e0
jmp 0x3f947
movq %rax, %r14
movq 0xc8(%rsp), %rdi
testq %rdi, %rdi
je 0x3f8c7
callq 0xa946
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x3f8db
callq 0xa946
jmp 0x3f8db
movq %rax, %r14
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x3f8ef
callq 0xa946
jmp 0x3f8ef
movq %rax, %r14
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x3f903
callq 0xa946
jmp 0x3f903
movq %rax, %r14
movq 0x88(%rsp), %rdi
testq %rdi, %rdi
je 0x3f91c
callq 0xa946
jmp 0x3f91c
jmp 0x3f919
movq %rax, %r14
movq 0x60(%rsp), %rdi
cmpq %r15, %rdi
je 0x3f954
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x92e0
jmp 0x3f954
movq %rax, %r14
jmp 0x3f954
movq %rax, %r14
jmp 0x3f961
movq %rax, %r14
jmp 0x3f97c
movq %rax, %r14
leaq 0x170(%rsp), %rdi
callq 0x37d68
leaq 0x90(%rsp), %rdi
callq 0x37daa
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3f97c
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x92e0
leaq 0xd0(%rsp), %rdi
callq 0x37b5c
movq %r14, %rdi
callq 0x94e0