// File: vsklad[P]cgen/./bal/anf/anf.hpp
// Function: bal::process(bal::Anf&, bal::VariablesArray const&, bool, bal::FormulaProcessingMode)
inline bool process(Anf& anf, const VariablesArray& variables,
                                   const bool b_reindex_variables, const FormulaProcessingMode mode) {
            _assert_level_0(mode == fpmUnoptimized); // other modes not supported
            _assert_level_1(anf.variables_size() == variables.size());
            
            const literalid_t* const values = variables.data();
            
            for (variableid_t i = 0; i < variables.size(); i++) {
                if (variable_t__literal_id(i) != values[i]) {
                    anf.append_equation();
                    anf.append_equation_term(values[i]);
                    literalid_t first_id = anf.symbols_[anf.terms_[anf.equations_[anf.equations_.size() - 1]]];
                    first_id = literal_t__substitute_literal(literal_t__negated(first_id), variable_t__literal_id(i));
                    anf.symbols_[anf.terms_[anf.equations_[anf.equations_.size() - 1]]] = first_id;
                };
            };
            
            return true;
        }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movb %dl, %al
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
andb $0x1, %al
movb %al, -0x11(%rbp)
movl %ecx, -0x18(%rbp)
cmpl $0x0, -0x18(%rbp)
jne 0x46922
jmp 0x46941
leaq 0x1f78c(%rip), %rdi     # 0x660b5
leaq 0x1cefa(%rip), %rsi     # 0x6382a
movl $0x6c, %edx
leaq 0x1f790(%rip), %rcx     # 0x660cc
callq 0xd1c0
movq -0x8(%rbp), %rdi
movq (%rdi), %rax
callq *0x58(%rax)
movl %eax, -0x2c(%rbp)
movq -0x10(%rbp), %rdi
callq 0x102f0
movl %eax, %ecx
movl -0x2c(%rbp), %eax
cmpl %ecx, %eax
jne 0x46962
jmp 0x46981
leaq 0x1f7bd(%rip), %rdi     # 0x66126
leaq 0x1ceba(%rip), %rsi     # 0x6382a
movl $0x6d, %edx
leaq 0x1f750(%rip), %rcx     # 0x660cc
callq 0xd1c0
movq -0x10(%rbp), %rdi
callq 0x2e180
movq %rax, -0x20(%rbp)
movl $0x0, -0x24(%rbp)
movl -0x24(%rbp), %eax
movl %eax, -0x30(%rbp)
movq -0x10(%rbp), %rdi
callq 0x102f0
movl %eax, %ecx
movl -0x30(%rbp), %eax
cmpl %ecx, %eax
jae 0x46af5
movl -0x24(%rbp), %eax
addl $0x1, %eax
shll %eax
orl $0x1, %eax
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %edx
cmpl (%rcx,%rdx,4), %eax
je 0x46ae5
movq -0x8(%rbp), %rdi
callq 0xde70
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rax
movl -0x24(%rbp), %ecx
movl (%rax,%rcx,4), %esi
callq 0xe600
movq -0x8(%rbp), %rax
addq $0x78, %rax
movq %rax, -0x58(%rbp)
movq -0x8(%rbp), %rax
addq $0x90, %rax
movq %rax, -0x60(%rbp)
movq -0x8(%rbp), %rax
addq $0xa8, %rax
movq %rax, -0x68(%rbp)
movq -0x8(%rbp), %rdi
addq $0xa8, %rdi
callq 0xf9f0
movq -0x68(%rbp), %rdi
movq %rax, %rsi
subq $0x1, %rsi
callq 0xfd50
movq -0x60(%rbp), %rdi
movl (%rax), %eax
movl %eax, %esi
callq 0xfd50
movq -0x58(%rbp), %rdi
movl (%rax), %eax
movl %eax, %esi
callq 0xfd50
movl (%rax), %eax
movl %eax, -0x28(%rbp)
movl -0x24(%rbp), %eax
addl $0x1, %eax
shll %eax
orl $0x1, %eax
movl -0x28(%rbp), %esi
xorl $0x1, %esi
xorl $-0x1, %esi
andl $0x1, %esi
xorl %ecx, %ecx
movl $0x1, %edx
cmpl $0x0, %esi
cmovnel %edx, %ecx
xorl %ecx, %eax
movl %eax, -0x28(%rbp)
movl -0x28(%rbp), %eax
movl %eax, -0x34(%rbp)
movq -0x8(%rbp), %rax
addq $0x78, %rax
movq %rax, -0x40(%rbp)
movq -0x8(%rbp), %rax
addq $0x90, %rax
movq %rax, -0x48(%rbp)
movq -0x8(%rbp), %rax
addq $0xa8, %rax
movq %rax, -0x50(%rbp)
movq -0x8(%rbp), %rdi
addq $0xa8, %rdi
callq 0xf9f0
movq -0x50(%rbp), %rdi
movq %rax, %rsi
subq $0x1, %rsi
callq 0xfd50
movq -0x48(%rbp), %rdi
movl (%rax), %eax
movl %eax, %esi
callq 0xfd50
movq -0x40(%rbp), %rdi
movl (%rax), %eax
movl %eax, %esi
callq 0xfd50
movl -0x34(%rbp), %ecx
movl %ecx, (%rax)
jmp 0x46ae7
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x46995
movb $0x1, %al
andb $0x1, %al
addq $0x70, %rsp
popq %rbp
retq
nop