// File: /workspace/github_cpp_makefile_star2_O2/ArashPartow[P]exprtk/./exprtk.hpp
// Function: exprtk::parser<double>::expression_generator<double>::synthesize_binary_ext_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])
            {
               const bool left_neg  = is_neg_unary_node(branch[0]);
               const bool right_neg = is_neg_unary_node(branch[1]);

               if (left_neg && right_neg)
               {
                  if (
                       (details::e_add == operation) ||
                       (details::e_sub == operation) ||
                       (details::e_mul == operation) ||
                       (details::e_div == operation)
                     )
                  {
                     if (
                          !expr_gen.parser_->simplify_unary_negation_branch(branch[0]) ||
                          !expr_gen.parser_->simplify_unary_negation_branch(branch[1])
                        )
                     {
                        details::free_all_nodes(*expr_gen.node_allocator_,branch);

                        return error_node();
                     }
                  }

                  switch (operation)
                  {
                                           // -f(x + 1) + -g(y + 1) --> -(f(x + 1) + g(y + 1))
                     case details::e_add : return expr_gen(details::e_neg,
                                              expr_gen.node_allocator_->
                                                 template allocate<typename details::binary_ext_node<Type,details::add_op<Type> > >
                                                    (branch[0],branch[1]));

                                           // -f(x + 1) - -g(y + 1) --> g(y + 1) - f(x + 1)
                     case details::e_sub : return expr_gen.node_allocator_->
                                              template allocate<typename details::binary_ext_node<Type,details::sub_op<Type> > >
                                                 (branch[1],branch[0]);

                     default             : break;
                  }
               }
               else if (left_neg && !right_neg)
               {
                  if (
                       (details::e_add == operation) ||
                       (details::e_sub == operation) ||
                       (details::e_mul == operation) ||
                       (details::e_div == operation)
                     )
                  {
                     if (!expr_gen.parser_->simplify_unary_negation_branch(branch[0]))
                     {
                        details::free_all_nodes(*expr_gen.node_allocator_,branch);

                        return error_node();
                     }

                     switch (operation)
                     {
                                              // -f(x + 1) + g(y + 1) --> g(y + 1) - f(x + 1)
                        case details::e_add : return expr_gen.node_allocator_->
                                                 template allocate<typename details::binary_ext_node<Type,details::sub_op<Type> > >
                                                   (branch[1], branch[0]);

                                              // -f(x + 1) - g(y + 1) --> -(f(x + 1) + g(y + 1))
                        case details::e_sub : return expr_gen(details::e_neg,
                                                 expr_gen.node_allocator_->
                                                    template allocate<typename details::binary_ext_node<Type,details::add_op<Type> > >
                                                       (branch[0], branch[1]));

                                              // -f(x + 1) * g(y + 1) --> -(f(x + 1) * g(y + 1))
                        case details::e_mul : return expr_gen(details::e_neg,
                                                 expr_gen.node_allocator_->
                                                    template allocate<typename details::binary_ext_node<Type,details::mul_op<Type> > >
                                                       (branch[0], branch[1]));

                                              // -f(x + 1) / g(y + 1) --> -(f(x + 1) / g(y + 1))
                        case details::e_div : return expr_gen(details::e_neg,
                                                 expr_gen.node_allocator_->
                                                    template allocate<typename details::binary_ext_node<Type,details::div_op<Type> > >
                                                       (branch[0], branch[1]));

                        default             : return error_node();
                     }
                  }
               }
               else if (!left_neg && right_neg)
               {
                  if (
                       (details::e_add == operation) ||
                       (details::e_sub == operation) ||
                       (details::e_mul == operation) ||
                       (details::e_div == operation)
                     )
                  {
                     if (!expr_gen.parser_->simplify_unary_negation_branch(branch[1]))
                     {
                        details::free_all_nodes(*expr_gen.node_allocator_,branch);

                        return error_node();
                     }

                     switch (operation)
                     {
                                              // f(x + 1) + -g(y + 1) --> f(x + 1) - g(y + 1)
                        case details::e_add : return expr_gen.node_allocator_->
                                                 template allocate<typename details::binary_ext_node<Type,details::sub_op<Type> > >
                                                   (branch[0], branch[1]);

                                              // f(x + 1) - - g(y + 1) --> f(x + 1) + g(y + 1)
                        case details::e_sub : return expr_gen.node_allocator_->
                                                 template allocate<typename details::binary_ext_node<Type,details::add_op<Type> > >
                                                   (branch[0], branch[1]);

                                              // f(x + 1) * -g(y + 1) --> -(f(x + 1) * g(y + 1))
                        case details::e_mul : return expr_gen(details::e_neg,
                                                 expr_gen.node_allocator_->
                                                    template allocate<typename details::binary_ext_node<Type,details::mul_op<Type> > >
                                                       (branch[0], branch[1]));

                                              // f(x + 1) / -g(y + 1) --> -(f(x + 1) / g(y + 1))
                        case details::e_div : return expr_gen(details::e_neg,
                                                 expr_gen.node_allocator_->
                                                    template allocate<typename details::binary_ext_node<Type,details::div_op<Type> > >
                                                       (branch[0], branch[1]));

                        default             : return error_node();
                     }
                  }
               }

               switch (operation)
               {
                  #define case_stmt(op0, op1)                                                          \
                  case op0 : return expr_gen.node_allocator_->                                         \
                                template allocate<typename details::binary_ext_node<Type,op1<Type> > > \
                                   (branch[0], branch[1]);                                             \

                  basic_opr_switch_statements
                  extended_opr_switch_statements
                  #undef case_stmt
                  default : return error_node();
               }
            }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdx, %rbx
movq %rsi, %r12
movq %rdi, %r15
movq (%rdx), %rdi
testq %rdi, %rdi
je 0x2297de
movq (%rdi), %rax
callq *0x28(%rax)
cmpl $0x4b, %eax
sete %bpl
jmp 0x2297e0
xorl %ebp, %ebp
leaq 0x8(%rbx), %r14
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0x22984f
movq (%rdi), %rax
callq *0x28(%rax)
cmpl $0x4b, %eax
sete %cl
setne %al
movl %ebp, %edx
xorb $0x1, %dl
jne 0x229858
testb %al, %al
jne 0x229858
movl (%r12), %ecx
leal -0x2(%rcx), %eax
cmpl $0x3, %eax
ja 0x22983f
movq 0x68(%r15), %rdi
movq %rbx, %rsi
callq 0x1fd862
testb %al, %al
je 0x229946
movq 0x68(%r15), %rdi
movq %r14, %rsi
callq 0x1fd862
testb %al, %al
je 0x229946
movl (%r12), %ecx
cmpl $0x3, %ecx
je 0x2298a0
cmpl $0x2, %ecx
je 0x229959
jmp 0x2298c6
movl %ebp, %edx
xorb $0x1, %dl
movb $0x1, %al
xorl %ecx, %ecx
testb %dl, %dl
jne 0x2298af
testb %cl, %cl
jne 0x2298af
movl (%r12), %ecx
leal -0x2(%rcx), %eax
cmpl $0x3, %eax
ja 0x2298c6
movq 0x68(%r15), %rdi
movq %rbx, %rsi
callq 0x1fd862
testb %al, %al
je 0x229946
movl (%r12), %eax
addl $-0x2, %eax
cmpl $0x3, %eax
ja 0x229952
leaq 0xa761d(%rip), %rcx     # 0x2d0eb4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x8(%r15), %rdi
movq %r14, %rsi
movq %rbx, %rdx
jmp 0x229935
orb %al, %bpl
movl (%r12), %ecx
movl %ecx, %eax
addl $-0x6, %eax
cmpl $-0x4, %eax
setb %al
orb %bpl, %al
je 0x2298ff
xorl %eax, %eax
addl $-0x2, %ecx
cmpl $0x19, %ecx
ja 0x2299da
leaq 0xa75f9(%rip), %rdx     # 0x2d0ed4
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movq 0x8(%r15), %rdi
movq %rbx, %rsi
movq %r14, %rdx
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x2859da
movq 0x68(%r15), %rdi
movq %r14, %rsi
callq 0x1fd862
testb %al, %al
je 0x229946
movl (%r12), %eax
addl $-0x2, %eax
cmpl $0x3, %eax
ja 0x229952
leaq 0xa75a2(%rip), %rcx     # 0x2d0ec4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x8(%r15), %rdi
movq %rbx, %rsi
movq %r14, %rdx
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x285988
movq 0x8(%r15), %rdi
movq %rbx, %rsi
callq 0x22bbb4
xorl %eax, %eax
jmp 0x2299da
leaq 0xc(%rsp), %r12
movl $0x34, (%r12)
movq 0x8(%r15), %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x285936
jmp 0x2299cc
movq 0x8(%r15), %rdi
movq %rbx, %rsi
movq %r14, %rdx
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x285936
leaq 0xc(%rsp), %r12
movl $0x34, (%r12)
movq 0x8(%r15), %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x2859da
jmp 0x2299cc
leaq 0xc(%rsp), %r12
movl $0x34, (%r12)
movq 0x8(%r15), %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x285a2c
movq %r15, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x1fd9e4
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%r15), %rdi
movq %rbx, %rsi
movq %r14, %rdx
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x285d60
movq 0x8(%r15), %rdi
movq %rbx, %rsi
movq %r14, %rdx
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x285c18
movq 0x8(%r15), %rdi
movq %rbx, %rsi
movq %r14, %rdx
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x285a7e
movq 0x8(%r15), %rdi
movq %rbx, %rsi
movq %r14, %rdx
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x285d0e
movq 0x8(%r15), %rdi
movq %rbx, %rsi
movq %r14, %rdx
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x285ad0
movq 0x8(%r15), %rdi
movq %rbx, %rsi
movq %r14, %rdx
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x285bc6
movq 0x8(%r15), %rdi
movq %rbx, %rsi
movq %r14, %rdx
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x285a2c
movq 0x8(%r15), %rdi
movq %rbx, %rsi
movq %r14, %rdx
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x285b22
movq 0x8(%r15), %rdi
movq %rbx, %rsi
movq %r14, %rdx
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x285b74
movq 0x8(%r15), %rdi
movq %rbx, %rsi
movq %r14, %rdx
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x285db2
movq 0x8(%r15), %rdi
movq %rbx, %rsi
movq %r14, %rdx
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x285e04
movq 0x8(%r15), %rdi
movq %rbx, %rsi
movq %r14, %rdx
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x285cbc
movq 0x8(%r15), %rdi
movq %rbx, %rsi
movq %r14, %rdx
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x285c6a
movq 0x8(%r15), %rdi
movq %rbx, %rsi
movq %r14, %rdx
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x285ea8
movq 0x8(%r15), %rdi
movq %rbx, %rsi
movq %r14, %rdx
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x285e56