// File: /workspace/github_cpp_makefile_star2_O3/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, %rbx
movq %rsi, %rbp
movq %rdi, %r15
movq (%rdx), %r12
testq %r12, %r12
je 0x29be6c
leaq 0x23a324(%rip), %rsi    # 0x4d60f0
leaq 0x283735(%rip), %rdx    # 0x51f508
movq %r12, %rdi
xorl %ecx, %ecx
callq 0x11e4f0
testq %rax, %rax
je 0x29be6c
leaq 0x8(%rbx), %r14
movq 0x8(%rbx), %rdi
movsd 0x20(%rdi), %xmm1
xorpd %xmm0, %xmm0
ucomisd %xmm0, %xmm1
jne 0x29be19
jp 0x29be19
movl (%rbp), %eax
cmpl $0x2, %eax
je 0x29be3e
cmpl $0x5, %eax
je 0x29c079
cmpl $0x4, %eax
je 0x29bed6
ucomisd 0xed1ff(%rip), %xmm1    # 0x389020
jne 0x29bf62
jp 0x29bf62
movl (%rbp), %eax
cmpl $0x5, %eax
je 0x29be3e
cmpl $0x4, %eax
jne 0x29bf62
movq (%rdi), %rax
callq *0x28(%rax)
cmpl $0x11, %eax
je 0x29be64
movq (%r14), %rdi
testq %rdi, %rdi
je 0x29be5c
movq (%rdi), %rax
callq *0x28(%rax)
cmpl $0x12, %eax
je 0x29be64
movq %r14, %rdi
callq 0x1ea63e
movq (%rbx), %r14
jmp 0x29c3cc
movq 0x8(%rbx), %r13
testq %r13, %r13
je 0x29c3c9
leaq 0x23a270(%rip), %rsi    # 0x4d60f0
leaq 0x283681(%rip), %rdx    # 0x51f508
xorl %r14d, %r14d
movq %r13, %rdi
xorl %ecx, %ecx
callq 0x11e4f0
testq %rax, %rax
je 0x29c3cc
leaq 0x8(%rbx), %r14
movsd 0x20(%r12), %xmm1
xorpd %xmm0, %xmm0
ucomisd %xmm0, %xmm1
movl (%rbp), %eax
jne 0x29bfb8
jp 0x29bfb8
cmpl $0x2, %eax
je 0x29bfd4
cmpl $0x5, %eax
je 0x29bed6
cmpl $0x4, %eax
jne 0x29c006
movq (%r12), %rax
movq %r12, %rdi
callq *0x28(%rax)
cmpl $0x11, %eax
je 0x29bf00
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x29bef8
movq (%rdi), %rax
callq *0x28(%rax)
cmpl $0x12, %eax
je 0x29bf00
movq %rbx, %rdi
callq 0x1ea63e
movq (%r14), %rdi
testq %rdi, %rdi
je 0x29bf2e
movq (%rdi), %rax
callq *0x28(%rax)
cmpl $0x11, %eax
je 0x29bf2e
movq (%r14), %rdi
testq %rdi, %rdi
je 0x29bf26
movq (%rdi), %rax
callq *0x28(%rax)
cmpl $0x12, %eax
je 0x29bf2e
movq %r14, %rdi
callq 0x1ea63e
movl $0x28, %edi
callq 0x11e0f0
movq %rax, %r14
movb $0x0, 0x10(%rax)
xorpd %xmm0, %xmm0
movupd %xmm0, 0x18(%rax)
leaq 0x23bd69(%rip), %rax    # 0x4d7cb8
movq %rax, (%r14)
leaq 0x23bda7(%rip), %rax    # 0x4d7d00
movq %rax, 0x8(%r14)
jmp 0x29c3cc
movsd %xmm1, 0x8(%rsp)
movq (%r12), %rax
movq %r12, %rdi
callq *0x38(%rax)
cmpl $0x2, %eax
je 0x29bf8a
movq (%r12), %rax
movq %r12, %rdi
callq *0x38(%rax)
cmpl $0x3, %eax
jne 0x29c1b9
movl (%rbp), %eax
cmpl $0x3, %eax
je 0x29c161
cmpl $0x2, %eax
jne 0x29c3c9
movq (%r12), %rax
movq %r12, %rdi
callq *0x40(%rax)
movsd 0x8(%rsp), %xmm1
addsd %xmm0, %xmm1
jmp 0x29c175
ucomisd 0xed060(%rip), %xmm1    # 0x389020
setnp %cl
sete %dl
andb %cl, %dl
cmpl $0x4, %eax
sete %al
andb %dl, %al
cmpb $0x1, %al
jne 0x29c006
movq (%r12), %rax
movq %r12, %rdi
callq *0x28(%rax)
cmpl $0x11, %eax
je 0x29bffe
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x29bff6
movq (%rdi), %rax
callq *0x28(%rax)
cmpl $0x12, %eax
je 0x29bffe
movq %rbx, %rdi
callq 0x1ea63e
movq (%r14), %r14
jmp 0x29c3cc
movsd %xmm1, 0x8(%rsp)
movq (%r13), %rax
movq %r13, %rdi
callq *0x38(%rax)
cmpl $0x2, %eax
jne 0x29c112
movl (%rbp), %eax
cmpl $0x3, %eax
jne 0x29c131
movq 0x8(%r15), %r12
addq $0x8, %r15
movq (%r13), %rax
movq %r13, %rdi
callq *0x40(%rax)
movsd 0x8(%rsp), %xmm1
subsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
leaq 0x10(%rsp), %rsi
movq $0x0, (%rsi)
movq (%r13), %rax
movq %r13, %rdi
callq *0x50(%rax)
movq %r12, %rdi
movsd 0x8(%rsp), %xmm0
movq %rax, %rsi
callq 0x2fc89e
jmp 0x29c326
movq (%r12), %rax
movq %r12, %rdi
callq *0x28(%rax)
cmpl $0x11, %eax
je 0x29c0a3
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x29c09b
movq (%rdi), %rax
callq *0x28(%rax)
cmpl $0x12, %eax
je 0x29c0a3
movq %rbx, %rdi
callq 0x1ea63e
movq (%r14), %rdi
testq %rdi, %rdi
je 0x29c0d1
movq (%rdi), %rax
callq *0x28(%rax)
cmpl $0x11, %eax
je 0x29c0d1
movq (%r14), %rdi
testq %rdi, %rdi
je 0x29c0c9
movq (%rdi), %rax
callq *0x28(%rax)
cmpl $0x12, %eax
je 0x29c0d1
movq %r14, %rdi
callq 0x1ea63e
movl $0x28, %edi
callq 0x11e0f0
movq %rax, %r14
movb $0x0, 0x10(%rax)
movq $0x0, 0x18(%rax)
leaq 0x23bbc7(%rip), %rax    # 0x4d7cb8
movq %rax, (%r14)
leaq 0x23bc05(%rip), %rax    # 0x4d7d00
movq %rax, 0x8(%r14)
movabsq $0x7ff8000000000000, %rax # imm = 0x7FF8000000000000
movq %rax, 0x20(%r14)
jmp 0x29c3cc
movq (%r13), %rax
movq %r13, %rdi
callq *0x38(%rax)
cmpl $0x3, %eax
jne 0x29c1ee
movl (%rbp), %eax
cmpl $0x3, %eax
je 0x29c2dd
cmpl $0x2, %eax
jne 0x29c3c9
movq (%r13), %rax
movq %r13, %rdi
callq *0x40(%rax)
movsd 0x8(%rsp), %xmm1
addsd %xmm0, %xmm1
movq (%r13), %rax
movq %r13, %rdi
movapd %xmm1, %xmm0
callq *0x48(%rax)
jmp 0x29c33d
movq (%r12), %rax
movq %r12, %rdi
callq *0x40(%rax)
movapd %xmm0, %xmm1
subsd 0x8(%rsp), %xmm1
movq (%r12), %rax
movq %r12, %rdi
movapd %xmm1, %xmm0
callq *0x48(%rax)
movq (%r14), %rdi
testq %rdi, %rdi
je 0x29c1b1
movq (%rdi), %rax
callq *0x28(%rax)
cmpl $0x11, %eax
je 0x29c1b1
movq (%r14), %rdi
testq %rdi, %rdi
je 0x29c1a9
movq (%rdi), %rax
callq *0x28(%rax)
cmpl $0x12, %eax
je 0x29c1b1
movq %r14, %rdi
callq 0x1ea63e
movq %r12, %r14
jmp 0x29c3cc
movq (%r12), %rax
movq %r12, %rdi
callq *0x38(%rax)
cmpl $0x4, %eax
jne 0x29c25b
movl (%rbp), %eax
cmpl $0x5, %eax
jne 0x29c27a
movq (%r12), %rax
movq %r12, %rdi
callq *0x40(%rax)
movapd %xmm0, %xmm1
divsd 0x8(%rsp), %xmm1
jmp 0x29c175
movq (%r13), %rax
movq %r13, %rdi
callq *0x38(%rax)
cmpl $0x4, %eax
jne 0x29c29c
movl (%rbp), %eax
cmpl $0x5, %eax
jne 0x29c2bb
movq 0x8(%r15), %r12
addq $0x8, %r15
movq (%r13), %rax
movq %r13, %rdi
callq *0x40(%rax)
movsd 0x8(%rsp), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
leaq 0x10(%rsp), %rsi
movq $0x0, (%rsi)
movq (%r13), %rax
movq %r13, %rdi
callq *0x50(%rax)
movq %r12, %rdi
movsd 0x8(%rsp), %xmm0
movq %rax, %rsi
callq 0x2fc844
jmp 0x29c326
movq (%r12), %rax
movq %r12, %rdi
callq *0x38(%rax)
cmpl $0x5, %eax
jne 0x29c3c9
movl (%rbp), %eax
cmpl $0x5, %eax
je 0x29c370
cmpl $0x4, %eax
jne 0x29c3c9
movq (%r12), %rax
movq %r12, %rdi
callq *0x40(%rax)
movsd 0x8(%rsp), %xmm1
mulsd %xmm0, %xmm1
jmp 0x29c175
movq (%r13), %rax
movq %r13, %rdi
callq *0x38(%rax)
cmpl $0x5, %eax
jne 0x29c3c9
movl (%rbp), %eax
cmpl $0x5, %eax
je 0x29c3de
cmpl $0x4, %eax
jne 0x29c3c9
movq (%r13), %rax
movq %r13, %rdi
callq *0x40(%rax)
movsd 0x8(%rsp), %xmm1
mulsd %xmm0, %xmm1
jmp 0x29c14e
movq 0x8(%r15), %r12
addq $0x8, %r15
movq (%r13), %rax
movq %r13, %rdi
callq *0x40(%rax)
movsd 0x8(%rsp), %xmm1
subsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
leaq 0x10(%rsp), %rsi
movq $0x0, (%rsi)
movq (%r13), %rax
movq %r13, %rdi
callq *0x50(%rax)
movq %r12, %rdi
movsd 0x8(%rsp), %xmm0
movq %rax, %rsi
callq 0x2fc8f8
movq %rax, %r13
movq (%r15), %rdi
movq %r14, %rsi
callq 0x205f00
testq %r13, %r13
je 0x29c3c9
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x29c36b
movq (%rdi), %rax
callq *0x28(%rax)
cmpl $0x11, %eax
je 0x29c36b
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x29c363
movq (%rdi), %rax
callq *0x28(%rax)
cmpl $0x12, %eax
je 0x29c36b
movq %rbx, %rdi
callq 0x1ea63e
movq %r13, %r14
jmp 0x29c3cc
movq 0x8(%r15), %r13
movq (%r12), %rax
movq %r12, %rdi
callq *0x40(%rax)
divsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x8(%rsp)
leaq 0x10(%rsp), %rsi
movq $0x0, (%rsi)
movq (%r12), %rax
movq %r12, %rdi
callq *0x50(%rax)
movq %r13, %rdi
movsd 0x8(%rsp), %xmm0
movq %rax, %rsi
callq 0x2fc844
movq %rax, %r12
movq 0x8(%r15), %rdi
movq %rbx, %rsi
callq 0x205f00
testq %r12, %r12
jne 0x29c183
xorl %r14d, %r14d
movq %r14, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%r15), %r12
addq $0x8, %r15
movq (%r13), %rax
movq %r13, %rdi
callq *0x40(%rax)
movsd 0x8(%rsp), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
leaq 0x10(%rsp), %rsi
movq $0x0, (%rsi)
movq (%r13), %rax
movq %r13, %rdi
callq *0x50(%rax)
movq %r12, %rdi
movsd 0x8(%rsp), %xmm0
movq %rax, %rsi
callq 0x2fc952
jmp 0x29c326