// File: /workspace/github_cpp_makefile_star2_O2/ArashPartow[P]exprtk/./exprtk.hpp
// Function: exprtk::parser<double>::expression_generator<double>::synthesize_coboc_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();

               // (boc) o c --> boc
               if (details::is_boc_node(branch[0]))
               {
                  details::boc_base_node<Type>* bocnode = static_cast<details::boc_base_node<Type>*>(branch[0]);

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

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

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

                     result = bocnode;
                  }
                  else if (details::e_sub == bocnode->operation())
                  {
                     if (details::e_add == operation)
                     {
                        result = expr_gen.node_allocator_->
                                    template allocate_tt<typename details::boc_node<Type,details::add_op<Type> > >
                                       (bocnode->move_branch(0), c - bocnode->c());

                        details::free_node(*expr_gen.node_allocator_,branch[0]);
                     }
                     else if (details::e_sub == operation)
                     {
                        bocnode->set_c(bocnode->c() + c);
                        result = bocnode;
                     }
                  }
                  else if (details::e_div == bocnode->operation())
                  {
                     switch (operation)
                     {
                        case details::e_div : bocnode->set_c(bocnode->c() * c); break;
                        case details::e_mul : bocnode->set_c(bocnode->c() / c); break;
                        default             : return error_node();
                     }

                     result = bocnode;
                  }

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

               // c o (boc) --> boc
               else if (details::is_boc_node(branch[1]))
               {
                  details::boc_base_node<Type>* bocnode = static_cast<details::boc_base_node<Type>*>(branch[1]);

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

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

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

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

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

                        details::free_node(*expr_gen.node_allocator_,branch[1]);
                     }
                  }
                  else if (details::e_div == bocnode->operation())
                  {
                     if (details::e_mul == operation)
                     {
                        bocnode->set_c(bocnode->c() / c);
                        result = bocnode;
                     }
                     else if (details::e_div == operation)
                     {
                        result = expr_gen.node_allocator_->
                                    template allocate_tt<typename details::cob_node<Type,details::div_op<Type> > >
                                       (c * bocnode->c(), bocnode->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 0x26d761
testb %al, %al
je 0x22846b
movq (%r15), %r14
movq 0x8(%r15), %rax
leaq 0x8(%r15), %r12
movsd 0x20(%rax), %xmm0
movsd %xmm0, 0x8(%rsp)
movq (%r14), %rax
movq %r14, %rdi
callq *0x38(%rax)
cmpl $0x2, %eax
jne 0x2284de
movl (%r13), %eax
cmpl $0x3, %eax
je 0x2285b7
cmpl $0x2, %eax
jne 0x22870f
movq (%r14), %rax
movq %r14, %rdi
callq *0x40(%rax)
movsd 0x8(%rsp), %xmm1
addsd %xmm0, %xmm1
jmp 0x228519
movq 0x8(%r15), %rdi
callq 0x26d761
testb %al, %al
je 0x22870f
movq (%r15), %rax
movq 0x8(%r15), %r14
movsd 0x20(%rax), %xmm0
movsd %xmm0, 0x8(%rsp)
movq (%r14), %rax
movq %r14, %rdi
callq *0x38(%rax)
cmpl $0x2, %eax
jne 0x228522
movl (%r13), %eax
cmpl $0x3, %eax
je 0x22864e
cmpl $0x2, %eax
jne 0x22870f
movq (%r14), %rax
movq %r14, %rdi
callq *0x40(%rax)
movsd 0x8(%rsp), %xmm1
addsd %xmm0, %xmm1
movapd %xmm1, %xmm0
movq (%r14), %rax
movq %r14, %rdi
callq *0x48(%rax)
movq %r15, %r12
jmp 0x228701
movq (%r14), %rax
movq %r14, %rdi
callq *0x38(%rax)
cmpl $0x4, %eax
jne 0x22858e
movl (%r13), %eax
cmpl $0x5, %eax
je 0x228631
cmpl $0x4, %eax
jne 0x22870f
movq (%r14), %rax
movq %r14, %rdi
callq *0x40(%rax)
movsd 0x8(%rsp), %xmm1
mulsd %xmm0, %xmm1
movapd %xmm1, %xmm0
jmp 0x228640
movq (%r14), %rax
movq %r14, %rdi
callq *0x38(%rax)
cmpl $0x3, %eax
jne 0x2285c8
movl (%r13), %eax
cmpl $0x3, %eax
je 0x2286a9
cmpl $0x2, %eax
jne 0x22870f
leaq 0x8(%rbx), %rbp
movq 0x8(%rbx), %r12
leaq 0x10(%rsp), %rsi
andq $0x0, (%rsi)
movq (%r14), %rax
movq %r14, %rdi
callq *0x50(%rax)
movq %rax, %r13
movq (%r14), %rax
movq %r14, %rdi
callq *0x40(%rax)
movsd 0x8(%rsp), %xmm1
subsd %xmm0, %xmm1
movq %r12, %rdi
movq %r13, %rsi
movapd %xmm1, %xmm0
callq 0x26d78a
jmp 0x2286e9
movq (%r14), %rax
movq %r14, %rdi
callq *0x38(%rax)
cmpl $0x3, %eax
jne 0x228608
movl (%r13), %eax
cmpl $0x2, %eax
je 0x228724
cmpl $0x3, %eax
je 0x228453
jmp 0x22870f
movq (%r14), %rax
movq %r14, %rdi
callq *0x40(%rax)
subsd 0x8(%rsp), %xmm0
jmp 0x228640
movq (%r14), %rax
movq %r14, %rdi
callq *0x38(%rax)
cmpl $0x4, %eax
jne 0x228671
movl (%r13), %eax
cmpl $0x5, %eax
je 0x228770
cmpl $0x4, %eax
jne 0x22870f
movq (%r14), %rax
movq %r14, %rdi
callq *0x40(%rax)
movsd 0x8(%rsp), %xmm1
mulsd %xmm0, %xmm1
jmp 0x2284c9
movq (%r14), %rax
movq %r14, %rdi
callq *0x38(%rax)
cmpl $0x5, %eax
jne 0x22870f
movl (%r13), %eax
cmpl $0x4, %eax
je 0x228631
cmpl $0x5, %eax
je 0x228506
jmp 0x22870f
movq (%r14), %rax
movq %r14, %rdi
callq *0x40(%rax)
divsd 0x8(%rsp), %xmm0
movq (%r14), %rax
movq %r14, %rdi
callq *0x48(%rax)
jmp 0x228701
leaq 0x8(%rbx), %rbp
movq 0x8(%rbx), %r12
movq (%r14), %rax
movq %r14, %rdi
callq *0x40(%rax)
movsd 0x8(%rsp), %xmm1
subsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
jmp 0x2286c6
movq (%r14), %rax
movq %r14, %rdi
callq *0x38(%rax)
cmpl $0x5, %eax
jne 0x22870f
movl (%r13), %eax
cmpl $0x5, %eax
je 0x228793
cmpl $0x4, %eax
jne 0x22870f
movq (%r14), %rax
movq %r14, %rdi
callq *0x40(%rax)
divsd 0x8(%rsp), %xmm0
jmp 0x2284cd
leaq 0x8(%rbx), %rbp
movq 0x8(%rbx), %r12
movq (%r14), %rax
movq %r14, %rdi
callq *0x40(%rax)
addsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x8(%rsp)
leaq 0x10(%rsp), %rsi
andq $0x0, (%rsi)
movq (%r14), %rax
movq %r14, %rdi
callq *0x50(%rax)
movq %r12, %rdi
movsd 0x8(%rsp), %xmm0
movq %rax, %rsi
callq 0x26d348
movq %rax, %r14
leaq 0x8(%r15), %rsi
movq (%rbp), %rdi
callq 0x1ad9c8
movq %r15, %r12
testq %r14, %r14
je 0x22870f
movq 0x8(%rbx), %rdi
movq %r12, %rsi
callq 0x1ad9c8
jmp 0x228712
xorl %r14d, %r14d
movq %r14, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%rbx), %r13
leaq 0x10(%rsp), %rsi
andq $0x0, (%rsi)
movq (%r14), %rax
movq %r14, %rdi
callq *0x50(%rax)
movq %rax, %rbp
movq (%r14), %rax
movq %r14, %rdi
callq *0x40(%rax)
movsd 0x8(%rsp), %xmm1
subsd %xmm0, %xmm1
movq %r13, %rdi
movq %rbp, %rsi
movapd %xmm1, %xmm0
callq 0x26d78a
movq %rax, %r14
movq 0x8(%rbx), %rdi
movq %r15, %rsi
callq 0x1ad9c8
jmp 0x2286fc
leaq 0x8(%rbx), %rbp
movq 0x8(%rbx), %r12
movq (%r14), %rax
movq %r14, %rdi
callq *0x40(%rax)
movsd 0x8(%rsp), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
jmp 0x2287b0
leaq 0x8(%rbx), %rbp
movq 0x8(%rbx), %r12
movq (%r14), %rax
movq %r14, %rdi
callq *0x40(%rax)
mulsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x8(%rsp)
leaq 0x10(%rsp), %rsi
andq $0x0, (%rsi)
movq (%r14), %rax
movq %r14, %rdi
callq *0x50(%rax)
movq %r12, %rdi
movsd 0x8(%rsp), %xmm0
movq %rax, %rsi
callq 0x26d2f2
jmp 0x2286e9