// File: /workspace/github_cpp_makefile_star2_O1/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, %r13
movq (%rdx), %r14
testq %r14, %r14
je 0x2b8cc2
leaq 0x256840(%rip), %rsi    # 0x50f430
leaq 0x2a0689(%rip), %rdx    # 0x559280
movq %r14, %rdi
xorl %ecx, %ecx
callq 0x1204f0
testq %rax, %rax
je 0x2b8cc2
leaq 0x8(%rbx), %r15
movq 0x8(%rbx), %rdi
movsd 0x20(%rdi), %xmm1
xorpd %xmm0, %xmm0
ucomisd %xmm0, %xmm1
jne 0x2b8e85
jp 0x2b8e85
cmpl $0x4, (%rbp)
jne 0x2b8dc6
testq %r14, %r14
je 0x2b8c63
movq (%r14), %rax
movq %r14, %rdi
callq *0x28(%rax)
cmpl $0x11, %eax
je 0x2b8c63
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x2b8c5b
movq (%rdi), %rax
callq *0x28(%rax)
cmpl $0x12, %eax
je 0x2b8c63
movq %rbx, %rdi
callq 0x1f1690
movq (%r15), %rdi
testq %rdi, %rdi
je 0x2b8c91
movq (%rdi), %rax
callq *0x28(%rax)
cmpl $0x11, %eax
je 0x2b8c91
movq (%r15), %rdi
testq %rdi, %rdi
je 0x2b8c89
movq (%rdi), %rax
callq *0x28(%rax)
cmpl $0x12, %eax
je 0x2b8c91
movq %r15, %rdi
callq 0x1f1690
movl $0x28, %edi
callq 0x1200f0
movb $0x0, 0x10(%rax)
xorpd %xmm0, %xmm0
movupd %xmm0, 0x18(%rax)
leaq 0x2585d9(%rip), %rcx    # 0x511288
movq %rcx, (%rax)
leaq 0x258617(%rip), %rcx    # 0x5112d0
movq %rcx, 0x8(%rax)
jmp 0x2b8ed7
movq 0x8(%rbx), %r12
testq %r12, %r12
je 0x2b8dbe
leaq 0x25675a(%rip), %rsi    # 0x50f430
leaq 0x2a05a3(%rip), %rdx    # 0x559280
xorl %r15d, %r15d
movq %r12, %rdi
xorl %ecx, %ecx
callq 0x1204f0
testq %rax, %rax
je 0x2b8fa9
leaq 0x8(%rbx), %r15
movsd 0x20(%r14), %xmm1
xorpd %xmm0, %xmm0
ucomisd %xmm0, %xmm1
jne 0x2b8fc9
jp 0x2b8fc9
cmpl $0x4, (%rbp)
je 0x2b8d31
ucomisd %xmm0, %xmm1
jne 0x2b8fc9
jp 0x2b8fc9
cmpl $0x5, (%rbp)
jne 0x2b8fbb
testq %r14, %r14
je 0x2b8d5f
movq (%r14), %rax
movq %r14, %rdi
callq *0x28(%rax)
cmpl $0x11, %eax
je 0x2b8d5f
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x2b8d57
movq (%rdi), %rax
callq *0x28(%rax)
cmpl $0x12, %eax
je 0x2b8d5f
movq %rbx, %rdi
callq 0x1f1690
movq (%r15), %rdi
testq %rdi, %rdi
je 0x2b8d8d
movq (%rdi), %rax
callq *0x28(%rax)
cmpl $0x11, %eax
je 0x2b8d8d
movq (%r15), %rdi
testq %rdi, %rdi
je 0x2b8d85
movq (%rdi), %rax
callq *0x28(%rax)
cmpl $0x12, %eax
je 0x2b8d8d
movq %r15, %rdi
callq 0x1f1690
movl $0x28, %edi
callq 0x1200f0
movb $0x0, 0x10(%rax)
xorpd %xmm0, %xmm0
movupd %xmm0, 0x18(%rax)
leaq 0x2584dd(%rip), %rcx    # 0x511288
movq %rcx, (%rax)
leaq 0x25851b(%rip), %rcx    # 0x5112d0
movq %rcx, 0x8(%rax)
jmp 0x2b900c
xorl %r15d, %r15d
jmp 0x2b8fa9
ucomisd %xmm0, %xmm1
jne 0x2b8e85
jp 0x2b8e85
cmpl $0x5, (%rbp)
jne 0x2b8e77
testq %r14, %r14
je 0x2b8e0e
movq (%r14), %rax
movq %r14, %rdi
callq *0x28(%rax)
cmpl $0x11, %eax
je 0x2b8e0e
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x2b8e06
movq (%rdi), %rax
callq *0x28(%rax)
cmpl $0x12, %eax
je 0x2b8e0e
movq %rbx, %rdi
callq 0x1f1690
movq (%r15), %rdi
testq %rdi, %rdi
je 0x2b8e3c
movq (%rdi), %rax
callq *0x28(%rax)
cmpl $0x11, %eax
je 0x2b8e3c
movq (%r15), %rdi
testq %rdi, %rdi
je 0x2b8e34
movq (%rdi), %rax
callq *0x28(%rax)
cmpl $0x12, %eax
je 0x2b8e3c
movq %r15, %rdi
callq 0x1f1690
movl $0x28, %edi
callq 0x1200f0
movb $0x0, 0x10(%rax)
movq $0x0, 0x18(%rax)
leaq 0x25842f(%rip), %rcx    # 0x511288
movq %rcx, (%rax)
leaq 0x25846d(%rip), %rcx    # 0x5112d0
movq %rcx, 0x8(%rax)
movabsq $0x7ff8000000000000, %rcx # imm = 0x7FF8000000000000
movq %rcx, 0x20(%rax)
jmp 0x2b8ed7
ucomisd %xmm0, %xmm1
jne 0x2b8e85
jp 0x2b8e85
cmpl $0x2, (%rbp)
je 0x2b8ea9
ucomisd 0xf9193(%rip), %xmm1    # 0x3b2020
jne 0x2b8ee1
jp 0x2b8ee1
cmpl $0x4, (%rbp)
je 0x2b8ea9
ucomisd 0xf9181(%rip), %xmm1    # 0x3b2020
jne 0x2b8ee1
jp 0x2b8ee1
cmpl $0x5, (%rbp)
jne 0x2b8ee1
testq %rdi, %rdi
je 0x2b8ed4
movq (%rdi), %rax
callq *0x28(%rax)
cmpl $0x11, %eax
je 0x2b8ed4
movq (%r15), %rdi
testq %rdi, %rdi
je 0x2b8ecc
movq (%rdi), %rax
callq *0x28(%rax)
cmpl $0x12, %eax
je 0x2b8ed4
movq %r15, %rdi
callq 0x1f1690
movq (%rbx), %rax
xorl %ebx, %ebx
xorl %r14d, %r14d
jmp 0x2b8fa2
movsd %xmm1, 0x8(%rsp)
movq (%r14), %rax
movq %r14, %rdi
callq *0x38(%rax)
cmpl $0x2, %eax
je 0x2b8f03
movq (%r14), %rax
movq %r14, %rdi
callq *0x38(%rax)
cmpl $0x3, %eax
jne 0x2b8f74
movl (%rbp), %eax
cmpl $0x3, %eax
je 0x2b8f25
cmpl $0x2, %eax
jne 0x2b8f9b
movq (%r14), %rax
movq %r14, %rdi
callq *0x40(%rax)
addsd 0x8(%rsp), %xmm0
jmp 0x2b8f34
movq (%r14), %rax
movq %r14, %rdi
callq *0x40(%rax)
subsd 0x8(%rsp), %xmm0
movq (%r14), %rax
movq %r14, %rdi
callq *0x48(%rax)
movb $0x1, %bl
testq %r14, %r14
je 0x2b8f72
movq (%r15), %rdi
testq %rdi, %rdi
je 0x2b8f72
movq (%rdi), %rax
callq *0x28(%rax)
cmpl $0x11, %eax
je 0x2b8f72
movq (%r15), %rdi
testq %rdi, %rdi
je 0x2b8f6a
movq (%rdi), %rax
callq *0x28(%rax)
cmpl $0x12, %eax
je 0x2b8f72
movq %r15, %rdi
callq 0x1f1690
jmp 0x2b8fa2
movq (%r14), %rax
movq %r14, %rdi
callq *0x38(%rax)
cmpl $0x4, %eax
jne 0x2b912a
movl (%rbp), %eax
cmpl $0x5, %eax
je 0x2b923a
cmpl $0x4, %eax
je 0x2b9149
xorl %ebx, %ebx
xorl %r14d, %r14d
xorl %eax, %eax
movq %r14, %r15
testb %bl, %bl
je 0x2b8fac
movq %r15, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
ucomisd %xmm0, %xmm1
jne 0x2b8fc9
jp 0x2b8fc9
cmpl $0x2, (%rbp)
je 0x2b8fdb
ucomisd 0xf904f(%rip), %xmm1    # 0x3b2020
jne 0x2b9017
jp 0x2b9017
cmpl $0x4, (%rbp)
jne 0x2b9017
testq %r14, %r14
je 0x2b9009
movq (%r14), %rax
movq %r14, %rdi
callq *0x28(%rax)
cmpl $0x11, %eax
je 0x2b9009
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x2b9001
movq (%rdi), %rax
callq *0x28(%rax)
cmpl $0x12, %eax
je 0x2b9009
movq %rbx, %rdi
callq 0x1f1690
movq (%r15), %rax
xorl %r14d, %r14d
xorl %r12d, %r12d
jmp 0x2b9229
movsd %xmm1, 0x8(%rsp)
movq (%r12), %rax
movq %r12, %rdi
callq *0x38(%rax)
cmpl $0x2, %eax
jne 0x2b907e
movl (%rbp), %eax
cmpl $0x3, %eax
jne 0x2b9099
movq 0x8(%r13), %r14
movq (%r12), %rax
movq %r12, %rdi
callq *0x40(%rax)
movsd 0x8(%rsp), %xmm1
subsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
leaq 0x10(%rsp), %rsi
movq $0x0, (%rsi)
movq (%r12), %rax
movq %r12, %rdi
callq *0x50(%rax)
movq %r14, %rdi
movsd 0x8(%rsp), %xmm0
movq %rax, %rsi
callq 0x317d24
jmp 0x2b91e4
movq (%r12), %rax
movq %r12, %rdi
callq *0x38(%rax)
cmpl $0x3, %eax
jne 0x2b90c1
movl (%rbp), %eax
cmpl $0x3, %eax
je 0x2b919f
cmpl $0x2, %eax
jne 0x2b919a
movq (%r12), %rax
movq %r12, %rdi
callq *0x40(%rax)
addsd 0x8(%rsp), %xmm0
movq (%r12), %rax
movq %r12, %rdi
callq *0x48(%rax)
jmp 0x2b91f3
movq (%r12), %rax
movq %r12, %rdi
callq *0x38(%rax)
cmpl $0x4, %eax
jne 0x2b9165
movl (%rbp), %eax
cmpl $0x5, %eax
jne 0x2b9180
movq 0x8(%r13), %r14
movq (%r12), %rax
movq %r12, %rdi
callq *0x40(%rax)
movsd 0x8(%rsp), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
leaq 0x10(%rsp), %rsi
movq $0x0, (%rsi)
movq (%r12), %rax
movq %r12, %rdi
callq *0x50(%rax)
movq %r14, %rdi
movsd 0x8(%rsp), %xmm0
movq %rax, %rsi
callq 0x317cca
jmp 0x2b91e4
movq (%r14), %rax
movq %r14, %rdi
callq *0x38(%rax)
cmpl $0x5, %eax
jne 0x2b915d
movl (%rbp), %eax
cmpl $0x5, %eax
je 0x2b924e
cmpl $0x4, %eax
jne 0x2b915d
movq (%r14), %rax
movq %r14, %rdi
callq *0x40(%rax)
mulsd 0x8(%rsp), %xmm0
jmp 0x2b8f34
xorl %r14d, %r14d
jmp 0x2b8f3d
movq (%r12), %rax
movq %r12, %rdi
callq *0x38(%rax)
cmpl $0x5, %eax
jne 0x2b919a
movl (%rbp), %eax
cmpl $0x5, %eax
je 0x2b92a1
cmpl $0x4, %eax
jne 0x2b919a
movq (%r12), %rax
movq %r12, %rdi
callq *0x40(%rax)
mulsd 0x8(%rsp), %xmm0
jmp 0x2b90b2
xorl %r12d, %r12d
jmp 0x2b91f3
movq 0x8(%r13), %r14
movq (%r12), %rax
movq %r12, %rdi
callq *0x40(%rax)
movsd 0x8(%rsp), %xmm1
subsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
leaq 0x10(%rsp), %rsi
movq $0x0, (%rsi)
movq (%r12), %rax
movq %r12, %rdi
callq *0x50(%rax)
movq %r14, %rdi
movsd 0x8(%rsp), %xmm0
movq %rax, %rsi
callq 0x317d7e
movq %rax, %r12
movq 0x8(%r13), %rdi
movq %r15, %rsi
callq 0x20d702
movb $0x1, %r14b
testq %r12, %r12
je 0x2b9229
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x2b9229
movq (%rdi), %rax
callq *0x28(%rax)
cmpl $0x11, %eax
je 0x2b9229
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x2b9221
movq (%rdi), %rax
callq *0x28(%rax)
cmpl $0x12, %eax
je 0x2b9229
movq %rbx, %rdi
callq 0x1f1690
movq %r12, %r15
testb %r14b, %r14b
jne 0x2b8fa9
jmp 0x2b8fac
movq (%r14), %rax
movq %r14, %rdi
callq *0x40(%rax)
divsd 0x8(%rsp), %xmm0
jmp 0x2b8f34
movq 0x8(%r13), %r12
movq (%r14), %rax
movq %r14, %rdi
callq *0x40(%rax)
divsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x8(%rsp)
leaq 0x10(%rsp), %rsi
movq $0x0, (%rsi)
movq (%r14), %rax
movq %r14, %rdi
callq *0x50(%rax)
movq %r12, %rdi
movsd 0x8(%rsp), %xmm0
movq %rax, %rsi
callq 0x317cca
movq %rax, %r14
movq 0x8(%r13), %rdi
movq %rbx, %rsi
callq 0x20d702
jmp 0x2b8f3d
movq 0x8(%r13), %r14
movq (%r12), %rax
movq %r12, %rdi
callq *0x40(%rax)
movsd 0x8(%rsp), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
leaq 0x10(%rsp), %rsi
movq $0x0, (%rsi)
movq (%r12), %rax
movq %r12, %rdi
callq *0x50(%rax)
movq %r14, %rdi
movsd 0x8(%rsp), %xmm0
movq %rax, %rsi
callq 0x317dd8
jmp 0x2b91e4
nop