// File: ArashPartow[P]exprtk/./exprtk.hpp
// Function: exprtk::parser<double>::expression_generator<double>::synthesize_null_expression(exprtk::details::operator_type const&, exprtk::details::expression_node<double>* (&) [2])
inline expression_node_ptr synthesize_null_expression(const details::operator_type& operation, expression_node_ptr (&branch)[2])
         {
            /*
             Note: The following are the type promotion rules
             that relate to operations that include 'null':
             0. null ==/!=     null --> true false
             1. null operation null --> null
             2. x    ==/!=     null --> true/false
             3. null ==/!=     x    --> true/false
             4. x   operation  null --> x
             5. null operation x    --> x
            */

            typedef typename details::null_eq_node<T> nulleq_node_t;

            const bool b0_null = details::is_null_node(branch[0]);
            const bool b1_null = details::is_null_node(branch[1]);

            if (b0_null && b1_null)
            {
               expression_node_ptr result = error_node();

               if (details::e_eq == operation)
                  result = node_allocator_->allocate_c<literal_node_t>(T(1));
               else if (details::e_ne == operation)
                  result = node_allocator_->allocate_c<literal_node_t>(T(0));

               if (result)
               {
                  details::free_node(*node_allocator_,branch[0]);
                  details::free_node(*node_allocator_,branch[1]);

                  return result;
               }

               details::free_node(*node_allocator_,branch[1]);

               return branch[0];
            }
            else if (details::e_eq == operation)
            {
               expression_node_ptr result = node_allocator_->
                                                allocate_rc<nulleq_node_t>(branch[b0_null ? 0 : 1],true);

               details::free_node(*node_allocator_,branch[b0_null ? 1 : 0]);

               return result;
            }
            else if (details::e_ne == operation)
            {
               expression_node_ptr result = node_allocator_->
                                                allocate_rc<nulleq_node_t>(branch[b0_null ? 0 : 1],false);

               details::free_node(*node_allocator_,branch[b0_null ? 1 : 0]);

               return result;
            }
            else if (b0_null)
            {
               details::free_node(*node_allocator_,branch[0]);
               branch[0] = branch[1];
               branch[1] = error_node();
            }
            else if (b1_null)
            {
               details::free_node(*node_allocator_,branch[1]);
               branch[1] = error_node();
            }

            if (
                 (details::e_add == operation) || (details::e_sub == operation) ||
                 (details::e_mul == operation) || (details::e_div == operation) ||
                 (details::e_mod == operation) || (details::e_pow == operation)
               )
            {
               return branch[0];
            }

            details::free_node(*node_allocator_, branch[0]);

            if (
                 (details::e_lt    == operation) || (details::e_lte  == operation) ||
                 (details::e_gt    == operation) || (details::e_gte  == operation) ||
                 (details::e_and   == operation) || (details::e_nand == operation) ||
                 (details::e_or    == operation) || (details::e_nor  == operation) ||
                 (details::e_xor   == operation) || (details::e_xnor == operation) ||
                 (details::e_in    == operation) || (details::e_like == operation) ||
                 (details::e_ilike == operation)
               )
            {
               return node_allocator_->allocate_c<literal_node_t>(T(0));
            }

            return node_allocator_->allocate<details::null_node<Type> >();
         }

// Assembly:
subq $0x78, %rsp
movq %rdi, 0x68(%rsp)
movq %rsi, 0x60(%rsp)
movq %rdx, 0x58(%rsp)
movq 0x68(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x58(%rsp), %rax
movq (%rax), %rdi
callq 0x3af620
andb $0x1, %al
movb %al, 0x57(%rsp)
movq 0x58(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x3af620
andb $0x1, %al
movb %al, 0x56(%rsp)
testb $0x1, 0x57(%rsp)
je 0x3e21b5
testb $0x1, 0x56(%rsp)
je 0x3e21b5
callq 0x2821f0
movq %rax, 0x48(%rsp)
movq 0x60(%rsp), %rcx
movl $0x10, %eax
cmpl (%rcx), %eax
jne 0x3e211a
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rdi
movsd 0x1b8f3d(%rip), %xmm0   # 0x59b040
movsd %xmm0, 0x40(%rsp)
leaq 0x40(%rsp), %rsi
callq 0x287b60
movq %rax, 0x48(%rsp)
jmp 0x3e214b
movq 0x60(%rsp), %rcx
movl $0x12, %eax
cmpl (%rcx), %eax
jne 0x3e2149
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rdi
xorps %xmm0, %xmm0
movsd %xmm0, 0x38(%rsp)
leaq 0x38(%rsp), %rsi
callq 0x287b60
movq %rax, 0x48(%rsp)
jmp 0x3e214b
cmpq $0x0, 0x48(%rsp)
je 0x3e218c
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x58(%rsp), %rsi
callq 0x284bd0
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x58(%rsp), %rsi
addq $0x8, %rsi
callq 0x284bd0
movq 0x48(%rsp), %rax
movq %rax, 0x70(%rsp)
jmp 0x3e24ad
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x58(%rsp), %rsi
addq $0x8, %rsi
callq 0x284bd0
movq 0x58(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x70(%rsp)
jmp 0x3e24ad
movq 0x60(%rsp), %rcx
movl $0x10, %eax
cmpl (%rcx), %eax
jne 0x3e223e
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x58(%rsp), %rsi
movb 0x57(%rsp), %dl
movl $0x1, %eax
xorl %ecx, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
cltq
shlq $0x3, %rax
addq %rax, %rsi
movb $0x1, 0x2f(%rsp)
leaq 0x2f(%rsp), %rdx
callq 0x46fe10
movq %rax, %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x30(%rsp)
movq 0x8(%rax), %rdi
movq 0x58(%rsp), %rsi
movb 0x57(%rsp), %dl
xorl %eax, %eax
movl $0x1, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
cltq
shlq $0x3, %rax
addq %rax, %rsi
callq 0x284bd0
movq 0x30(%rsp), %rax
movq %rax, 0x70(%rsp)
jmp 0x3e24ad
movq 0x60(%rsp), %rcx
movl $0x12, %eax
cmpl (%rcx), %eax
jne 0x3e22c7
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x58(%rsp), %rsi
movb 0x57(%rsp), %dl
movl $0x1, %eax
xorl %ecx, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
cltq
shlq $0x3, %rax
addq %rax, %rsi
movb $0x0, 0x1f(%rsp)
leaq 0x1f(%rsp), %rdx
callq 0x46fe10
movq %rax, %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x20(%rsp)
movq 0x8(%rax), %rdi
movq 0x58(%rsp), %rsi
movb 0x57(%rsp), %dl
xorl %eax, %eax
movl $0x1, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
cltq
shlq $0x3, %rax
addq %rax, %rsi
callq 0x284bd0
movq 0x20(%rsp), %rax
movq %rax, 0x70(%rsp)
jmp 0x3e24ad
testb $0x1, 0x57(%rsp)
je 0x3e2305
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x58(%rsp), %rsi
callq 0x284bd0
movq 0x58(%rsp), %rax
movq 0x8(%rax), %rcx
movq 0x58(%rsp), %rax
movq %rcx, (%rax)
callq 0x2821f0
movq %rax, %rcx
movq 0x58(%rsp), %rax
movq %rcx, 0x8(%rax)
jmp 0x3e2336
testb $0x1, 0x56(%rsp)
je 0x3e2334
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x58(%rsp), %rsi
addq $0x8, %rsi
callq 0x284bd0
callq 0x2821f0
movq %rax, %rcx
movq 0x58(%rsp), %rax
movq %rcx, 0x8(%rax)
jmp 0x3e2336
jmp 0x3e2338
jmp 0x3e233a
jmp 0x3e233c
movq 0x60(%rsp), %rcx
movl $0x2, %eax
cmpl (%rcx), %eax
je 0x3e2390
movq 0x60(%rsp), %rcx
movl $0x3, %eax
cmpl (%rcx), %eax
je 0x3e2390
movq 0x60(%rsp), %rcx
movl $0x4, %eax
cmpl (%rcx), %eax
je 0x3e2390
movq 0x60(%rsp), %rcx
movl $0x5, %eax
cmpl (%rcx), %eax
je 0x3e2390
movq 0x60(%rsp), %rcx
movl $0x6, %eax
cmpl (%rcx), %eax
je 0x3e2390
movq 0x60(%rsp), %rcx
movl $0x7, %eax
cmpl (%rcx), %eax
jne 0x3e23a2
movq 0x58(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x70(%rsp)
jmp 0x3e24ad
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x58(%rsp), %rsi
callq 0x284bd0
movq 0x60(%rsp), %rcx
movl $0xe, %eax
cmpl (%rcx), %eax
je 0x3e2477
movq 0x60(%rsp), %rcx
movl $0xf, %eax
cmpl (%rcx), %eax
je 0x3e2477
movq 0x60(%rsp), %rcx
movl $0x15, %eax
cmpl (%rcx), %eax
je 0x3e2477
movq 0x60(%rsp), %rcx
movl $0x14, %eax
cmpl (%rcx), %eax
je 0x3e2477
movq 0x60(%rsp), %rcx
movl $0x16, %eax
cmpl (%rcx), %eax
je 0x3e2477
movq 0x60(%rsp), %rcx
movl $0x17, %eax
cmpl (%rcx), %eax
je 0x3e2477
movq 0x60(%rsp), %rcx
movl $0x18, %eax
cmpl (%rcx), %eax
je 0x3e2477
movq 0x60(%rsp), %rcx
movl $0x19, %eax
cmpl (%rcx), %eax
je 0x3e2477
movq 0x60(%rsp), %rcx
movl $0x1a, %eax
cmpl (%rcx), %eax
je 0x3e2477
movq 0x60(%rsp), %rcx
movl $0x1b, %eax
cmpl (%rcx), %eax
je 0x3e2477
movq 0x60(%rsp), %rcx
movl $0x57, %eax
cmpl (%rcx), %eax
je 0x3e2477
movq 0x60(%rsp), %rcx
movl $0x58, %eax
cmpl (%rcx), %eax
je 0x3e2477
movq 0x60(%rsp), %rcx
movl $0x59, %eax
cmpl (%rcx), %eax
jne 0x3e249a
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rdi
xorps %xmm0, %xmm0
movsd %xmm0, 0x10(%rsp)
leaq 0x10(%rsp), %rsi
callq 0x287b60
movq %rax, 0x70(%rsp)
jmp 0x3e24ad
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x39c7b0
movq %rax, 0x70(%rsp)
movq 0x70(%rsp), %rax
addq $0x78, %rsp
retq
nopw (%rax,%rax)