// File: /workspace/github_cpp_makefile_star2_O2/ArashPartow[P]exprtk/./exprtk.hpp
// Function: exprtk::parser<double>::expression_generator<double>::synthesize_cocob_expression::process(exprtk::parser<double>::expression_generator<double>&, exprtk::details::operator_type const&, exprtk::details::expression_node<double>* (&) [2])
static inline expression_node_ptr process(expression_generator<Type>& expr_gen,
                                                      const details::operator_type& operation,
                                                      expression_node_ptr (&branch)[2])
            {
               expression_node_ptr result = error_node();

               // (cob) o c --> cob
               if (details::is_cob_node(branch[0]))
               {
                  details::cob_base_node<Type>* cobnode = static_cast<details::cob_base_node<Type>*>(branch[0]);

                  const Type c = static_cast<details::literal_node<Type>*>(branch[1])->value();

                  if (std::equal_to<T>()(T(0),c) && (details::e_mul == operation))
                  {
                     details::free_node(*expr_gen.node_allocator_, branch[0]);
                     details::free_node(*expr_gen.node_allocator_, branch[1]);

                     return expr_gen(T(0));
                  }
                  else if (std::equal_to<T>()(T(0),c) && (details::e_div == operation))
                  {
                     details::free_node(*expr_gen.node_allocator_, branch[0]);
                     details::free_node(*expr_gen.node_allocator_, branch[1]);

                     return expr_gen(T(std::numeric_limits<T>::quiet_NaN()));
                  }
                  else if (std::equal_to<T>()(T(0),c) && (details::e_add == operation))
                  {
                     details::free_node(*expr_gen.node_allocator_, branch[1]);

                     return branch[0];
                  }
                  else if (std::equal_to<T>()(T(1),c) && (details::e_mul == operation))
                  {
                     details::free_node(*expr_gen.node_allocator_, branch[1]);

                     return branch[0];
                  }
                  else if (std::equal_to<T>()(T(1),c) && (details::e_div == operation))
                  {
                     details::free_node(*expr_gen.node_allocator_, branch[1]);

                     return branch[0];
                  }

                  const bool op_addsub = (details::e_add == cobnode->operation()) ||
                                         (details::e_sub == cobnode->operation()) ;

                  if (op_addsub)
                  {
                     switch (operation)
                     {
                        case details::e_add : cobnode->set_c(cobnode->c() + c); break;
                        case details::e_sub : cobnode->set_c(cobnode->c() - c); break;
                        default             : return error_node();
                     }

                     result = cobnode;
                  }
                  else if (details::e_mul == cobnode->operation())
                  {
                     switch (operation)
                     {
                        case details::e_mul : cobnode->set_c(cobnode->c() * c); break;
                        case details::e_div : cobnode->set_c(cobnode->c() / c); break;
                        default             : return error_node();
                     }

                     result = cobnode;
                  }
                  else if (details::e_div == cobnode->operation())
                  {
                     if (details::e_mul == operation)
                     {
                        cobnode->set_c(cobnode->c() * c);
                        result = cobnode;
                     }
                     else if (details::e_div == operation)
                     {
                        result = expr_gen.node_allocator_->
                                    template allocate_tt<typename details::cob_node<Type,details::div_op<Type> > >
                                       (cobnode->c() / c, cobnode->move_branch(0));

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

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

               // c o (cob) --> cob
               else if (details::is_cob_node(branch[1]))
               {
                  details::cob_base_node<Type>* cobnode = static_cast<details::cob_base_node<Type>*>(branch[1]);

                  const Type c = static_cast<details::literal_node<Type>*>(branch[0])->value();

                  if (std::equal_to<T>()(T(0),c) && (details::e_mul == operation))
                  {
                     details::free_node(*expr_gen.node_allocator_, branch[0]);
                     details::free_node(*expr_gen.node_allocator_, branch[1]);

                     return expr_gen(T(0));
                  }
                  else if (std::equal_to<T>()(T(0),c) && (details::e_div == operation))
                  {
                     details::free_node(*expr_gen.node_allocator_, branch[0]);
                     details::free_node(*expr_gen.node_allocator_, branch[1]);

                     return expr_gen(T(0));
                  }
                  else if (std::equal_to<T>()(T(0),c) && (details::e_add == operation))
                  {
                     details::free_node(*expr_gen.node_allocator_, branch[0]);

                     return branch[1];
                  }
                  else if (std::equal_to<T>()(T(1),c) && (details::e_mul == operation))
                  {
                     details::free_node(*expr_gen.node_allocator_, branch[0]);

                     return branch[1];
                  }

                  if (details::e_add == cobnode->operation())
                  {
                     if (details::e_add == operation)
                     {
                        cobnode->set_c(c + cobnode->c());
                        result = cobnode;
                     }
                     else if (details::e_sub == operation)
                     {
                        result = expr_gen.node_allocator_->
                                    template allocate_tt<typename details::cob_node<Type,details::sub_op<Type> > >
                                       (c - cobnode->c(), cobnode->move_branch(0));

                        details::free_node(*expr_gen.node_allocator_,branch[1]);
                     }
                  }
                  else if (details::e_sub == cobnode->operation())
                  {
                     if (details::e_add == operation)
                     {
                        cobnode->set_c(c + cobnode->c());
                        result = cobnode;
                     }
                     else if (details::e_sub == operation)
                     {
                        result = expr_gen.node_allocator_->
                                    template allocate_tt<typename details::cob_node<Type,details::add_op<Type> > >
                                       (c - cobnode->c(), cobnode->move_branch(0));

                        details::free_node(*expr_gen.node_allocator_,branch[1]);
                     }
                  }
                  else if (details::e_mul == cobnode->operation())
                  {
                     if (details::e_mul == operation)
                     {
                        cobnode->set_c(c * cobnode->c());
                        result = cobnode;
                     }
                     else if (details::e_div == operation)
                     {
                        result = expr_gen.node_allocator_->
                                    template allocate_tt<typename details::cob_node<Type,details::div_op<Type> > >
                                       (c / cobnode->c(), cobnode->move_branch(0));

                        details::free_node(*expr_gen.node_allocator_,branch[1]);
                     }
                  }
                  else if (details::e_div == cobnode->operation())
                  {
                     if (details::e_mul == operation)
                     {
                        cobnode->set_c(c * cobnode->c());
                        result = cobnode;
                     }
                     else if (details::e_div == operation)
                     {
                        result = expr_gen.node_allocator_->
                                    template allocate_tt<typename details::cob_node<Type,details::mul_op<Type> > >
                                       (c / cobnode->c(), cobnode->move_branch(0));

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

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

               return result;
            }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r15
movq %rsi, %r13
movq %rdi, %rbx
movq (%rdx), %rdi
callq 0x26d2c8
testb %al, %al
je 0x227f5c
movq (%r15), %r14
movq 0x8(%r15), %rax
leaq 0x8(%r15), %r12
movsd 0x20(%rax), %xmm1
xorpd %xmm0, %xmm0
ucomisd %xmm0, %xmm1
jne 0x227f22
jp 0x227f22
movl (%r13), %eax
cmpl $0x2, %eax
je 0x227f48
cmpl $0x5, %eax
je 0x2280c5
cmpl $0x4, %eax
je 0x227fac
ucomisd 0xa6296(%rip), %xmm1    # 0x2ce1c0
jne 0x227fd2
jp 0x227fd2
movl (%r13), %eax
cmpl $0x5, %eax
je 0x227f48
cmpl $0x4, %eax
jne 0x227fd2
movq 0x8(%rbx), %rdi
movq %r12, %rsi
callq 0x1ad9c8
movq (%r15), %r14
jmp 0x228351
movq 0x8(%r15), %rdi
callq 0x26d2c8
testb %al, %al
je 0x22834e
leaq 0x8(%r15), %r12
movq (%r15), %rax
movq 0x8(%r15), %r14
movsd 0x20(%rax), %xmm1
xorpd %xmm0, %xmm0
ucomisd %xmm0, %xmm1
movl (%r13), %eax
jne 0x228026
jp 0x228026
cmpl $0x2, %eax
je 0x228042
cmpl $0x5, %eax
je 0x227fac
cmpl $0x4, %eax
jne 0x228057
movq 0x8(%rbx), %rdi
movq %r15, %rsi
callq 0x1ad9c8
movq 0x8(%rbx), %rdi
movq %r12, %rsi
callq 0x1ad9c8
leaq 0x10(%rsp), %rsi
andq $0x0, (%rsi)
jmp 0x2280ef
movsd %xmm1, 0x8(%rsp)
movq (%r14), %rax
movq %r14, %rdi
callq *0x38(%rax)
cmpl $0x2, %eax
je 0x227ff8
movq (%r14), %rax
movq %r14, %rdi
callq *0x38(%rax)
cmpl $0x3, %eax
jne 0x228178
movl (%r13), %eax
cmpl $0x3, %eax
je 0x22814c
cmpl $0x2, %eax
jne 0x22834e
movq (%r14), %rax
movq %r14, %rdi
callq *0x40(%rax)
movsd 0x8(%rsp), %xmm1
addsd %xmm0, %xmm1
jmp 0x22815f
ucomisd 0xa6192(%rip), %xmm1    # 0x2ce1c0
setnp %cl
sete %dl
andb %cl, %dl
cmpl $0x4, %eax
sete %al
andb %dl, %al
cmpb $0x1, %al
jne 0x228057
movq 0x8(%rbx), %rdi
movq %r15, %rsi
callq 0x1ad9c8
movq 0x8(%r15), %r14
jmp 0x228351
movsd %xmm1, 0x8(%rsp)
movq (%r14), %rax
movq %r14, %rdi
callq *0x38(%rax)
cmpl $0x2, %eax
jne 0x2280ff
movl (%r13), %eax
cmpl $0x3, %eax
jne 0x22811e
leaq 0x8(%rbx), %rbp
movq 0x8(%rbx), %r13
movq (%r14), %rax
movq %r14, %rdi
callq *0x40(%rax)
movsd 0x8(%rsp), %xmm1
subsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
leaq 0x10(%rsp), %rsi
andq $0x0, (%rsi)
movq (%r14), %rax
movq %r14, %rdi
callq *0x50(%rax)
movq %r13, %rdi
movsd 0x8(%rsp), %xmm0
movq %rax, %rsi
callq 0x26d348
jmp 0x2282d8
movq 0x8(%rbx), %rdi
movq %r15, %rsi
callq 0x1ad9c8
movq 0x8(%rbx), %rdi
movq %r12, %rsi
callq 0x1ad9c8
movabsq $0x7ff8000000000000, %rax # imm = 0x7FF8000000000000
leaq 0x10(%rsp), %rsi
movq %rax, (%rsi)
movq %rbx, %rdi
callq 0x1ad9fe
movq %rax, %r14
jmp 0x228351
movq (%r14), %rax
movq %r14, %rdi
callq *0x38(%rax)
cmpl $0x3, %eax
jne 0x2281ac
movl (%r13), %eax
cmpl $0x3, %eax
je 0x228294
cmpl $0x2, %eax
jne 0x22834e
movq (%r14), %rax
movq %r14, %rdi
callq *0x40(%rax)
movsd 0x8(%rsp), %xmm1
addsd %xmm0, %xmm1
movq (%r14), %rax
movq %r14, %rdi
movapd %xmm1, %xmm0
callq *0x48(%rax)
jmp 0x2282ec
movq (%r14), %rax
movq %r14, %rdi
callq *0x40(%rax)
movapd %xmm0, %xmm1
subsd 0x8(%rsp), %xmm1
movq (%r14), %rax
movq %r14, %rdi
movapd %xmm1, %xmm0
callq *0x48(%rax)
movq 0x8(%rbx), %rdi
movq %r12, %rsi
jmp 0x2282f3
movq (%r14), %rax
movq %r14, %rdi
callq *0x38(%rax)
cmpl $0x4, %eax
jne 0x228214
movl (%r13), %eax
cmpl $0x5, %eax
jne 0x228233
movq (%r14), %rax
movq %r14, %rdi
callq *0x40(%rax)
movapd %xmm0, %xmm1
divsd 0x8(%rsp), %xmm1
jmp 0x22815f
movq (%r14), %rax
movq %r14, %rdi
callq *0x38(%rax)
cmpl $0x4, %eax
jne 0x228254
movl (%r13), %eax
cmpl $0x5, %eax
jne 0x228273
leaq 0x8(%rbx), %rbp
movq 0x8(%rbx), %r13
movq (%r14), %rax
movq %r14, %rdi
callq *0x40(%rax)
movsd 0x8(%rsp), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
leaq 0x10(%rsp), %rsi
andq $0x0, (%rsi)
movq (%r14), %rax
movq %r14, %rdi
callq *0x50(%rax)
movq %r13, %rdi
movsd 0x8(%rsp), %xmm0
movq %rax, %rsi
callq 0x26d2f2
jmp 0x2282d8
movq (%r14), %rax
movq %r14, %rdi
callq *0x38(%rax)
cmpl $0x5, %eax
jne 0x22834e
movl (%r13), %eax
cmpl $0x5, %eax
je 0x2282fa
cmpl $0x4, %eax
jne 0x22834e
movq (%r14), %rax
movq %r14, %rdi
callq *0x40(%rax)
movsd 0x8(%rsp), %xmm1
mulsd %xmm0, %xmm1
jmp 0x22815f
movq (%r14), %rax
movq %r14, %rdi
callq *0x38(%rax)
cmpl $0x5, %eax
jne 0x22834e
movl (%r13), %eax
cmpl $0x5, %eax
je 0x228363
cmpl $0x4, %eax
jne 0x22834e
movq (%r14), %rax
movq %r14, %rdi
callq *0x40(%rax)
movsd 0x8(%rsp), %xmm1
mulsd %xmm0, %xmm1
jmp 0x22813a
leaq 0x8(%rbx), %rbp
movq 0x8(%rbx), %r13
movq (%r14), %rax
movq %r14, %rdi
callq *0x40(%rax)
movsd 0x8(%rsp), %xmm1
subsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
leaq 0x10(%rsp), %rsi
andq $0x0, (%rsi)
movq (%r14), %rax
movq %r14, %rdi
callq *0x50(%rax)
movq %r13, %rdi
movsd 0x8(%rsp), %xmm0
movq %rax, %rsi
callq 0x26d39e
movq %rax, %r14
movq (%rbp), %rdi
movq %r12, %rsi
callq 0x1ad9c8
testq %r14, %r14
je 0x22834e
movq 0x8(%rbx), %rdi
movq %r15, %rsi
callq 0x1ad9c8
jmp 0x228351
movq 0x8(%rbx), %r13
movq (%r14), %rax
movq %r14, %rdi
callq *0x40(%rax)
divsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x8(%rsp)
leaq 0x10(%rsp), %rsi
andq $0x0, (%rsi)
movq (%r14), %rax
movq %r14, %rdi
callq *0x50(%rax)
movq %r13, %rdi
movsd 0x8(%rsp), %xmm0
movq %rax, %rsi
callq 0x26d2f2
movq %rax, %r14
movq 0x8(%rbx), %rdi
movq %r15, %rsi
callq 0x1ad9c8
testq %r14, %r14
jne 0x22816c
xorl %r14d, %r14d
movq %r14, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x8(%rbx), %rbp
movq 0x8(%rbx), %r13
movq (%r14), %rax
movq %r14, %rdi
callq *0x40(%rax)
movsd 0x8(%rsp), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
leaq 0x10(%rsp), %rsi
andq $0x0, (%rsi)
movq (%r14), %rax
movq %r14, %rdi
callq *0x50(%rax)
movq %r13, %rdi
movsd 0x8(%rsp), %xmm0
movq %rax, %rsi
callq 0x26d3f4
jmp 0x2282d8