// File: /workspace/github_cpp_makefile_star2_O3/srajangarg[P]raytracer/src/core/mathexpr.cpp
// Function: ROperation::BuildCode()
void ROperation::BuildCode()
{
  //  if(mmb1!=NULL)mmb1->BuildCode();if(mmb2!=NULL)mmb2->BuildCode();
  if(pinstr!=NULL){delete[]pinstr;pinstr=NULL;}
  if(pvals!=NULL){delete[]pvals;pvals=NULL;}//does not delete pvals[0] in case it was to be deleted... (no way to know)
  if(ppile!=NULL){delete[]ppile;ppile=NULL;}
  if(pfuncpile!=NULL){delete[]pfuncpile;pfuncpile=NULL;}
  switch(op){
  case ErrOp:pinstr=new pfoncld[2];pinstr[0]=&NextVal;pinstr[1]=NULL;
    pvals=new double*[2];pvals[0]=new double(ErrVal);pvals[1]=NULL;
    ppile=new double[2];ppile[0]=0;ppile[1]=ErrVal;
    pfuncpile=new RFunction*[1];pfuncpile[0]=NULL;
    break;
  case Num:pinstr=new pfoncld[2];pinstr[0]=&NextVal;pinstr[1]=NULL;
    pvals=new double*[2];pvals[0]=new double(ValC);pvals[1]=NULL;
    ppile=new double[2];ppile[0]=0;ppile[1]=ErrVal;
    pfuncpile=new RFunction*[1];pfuncpile[0]=NULL;break;
  case Var:pinstr=new pfoncld[2];pinstr[0]=&NextVal;pinstr[1]=NULL;
    pvals=new double*[2];pvals[0]=pvarval;pvals[1]=NULL;
    ppile=new double[2];ppile[0]=0;ppile[1]=ErrVal;
    pfuncpile=new RFunction*[1];pfuncpile[0]=NULL;break;
  case Juxt:BCDouble(pinstr,mmb1->pinstr,mmb2->pinstr,
		     pvals,mmb1->pvals,mmb2->pvals,ppile,mmb1->ppile,mmb2->ppile,pfuncpile,mmb1->pfuncpile,mmb2->pfuncpile,&JuxtF);
  break;case Add:BCDouble(pinstr,mmb1->pinstr,mmb2->pinstr,
		    pvals,mmb1->pvals,mmb2->pvals,ppile,mmb1->ppile,mmb2->ppile,pfuncpile,mmb1->pfuncpile,mmb2->pfuncpile,&Addition);
  break;case Sub:BCDouble(pinstr,mmb1->pinstr,mmb2->pinstr,
			  pvals,mmb1->pvals,mmb2->pvals,ppile,mmb1->ppile,mmb2->ppile,pfuncpile,mmb1->pfuncpile,mmb2->pfuncpile,&Soustraction);
  break;case Mult:BCDouble(pinstr,mmb1->pinstr,mmb2->pinstr,
			   pvals,mmb1->pvals,mmb2->pvals,ppile,mmb1->ppile,mmb2->ppile,pfuncpile,mmb1->pfuncpile,mmb2->pfuncpile,&Multiplication);
  break;case Div:BCDouble(pinstr,mmb1->pinstr,mmb2->pinstr,
			  pvals,mmb1->pvals,mmb2->pvals,ppile,mmb1->ppile,mmb2->ppile,pfuncpile,mmb1->pfuncpile,mmb2->pfuncpile,&Division);
  break;case Pow:BCDouble(pinstr,mmb1->pinstr,mmb2->pinstr,
			  pvals,mmb1->pvals,mmb2->pvals,ppile,mmb1->ppile,mmb2->ppile,pfuncpile,mmb1->pfuncpile,mmb2->pfuncpile,&Puissance);
  break;case NthRoot:BCDouble(pinstr,mmb1->pinstr,mmb2->pinstr,
			      pvals,mmb1->pvals,mmb2->pvals,ppile,mmb1->ppile,mmb2->ppile,pfuncpile,mmb1->pfuncpile,mmb2->pfuncpile,&RacineN);
  break;case E10:BCDouble(pinstr,mmb1->pinstr,mmb2->pinstr,
			  pvals,mmb1->pvals,mmb2->pvals,ppile,mmb1->ppile,mmb2->ppile,pfuncpile,mmb1->pfuncpile,mmb2->pfuncpile,&Puiss10);
  break;case Opp:BCSimple(pinstr,mmb2->pinstr,pvals,mmb2->pvals,
			  ppile,mmb2->ppile,pfuncpile,mmb2->pfuncpile,&Oppose);
  break;case Sin:BCSimple(pinstr,mmb2->pinstr,pvals,mmb2->pvals,
			  ppile,mmb2->ppile,pfuncpile,mmb2->pfuncpile,&Sinus);
  break;case Sqrt:BCSimple(pinstr,mmb2->pinstr,pvals,mmb2->pvals,
			   ppile,mmb2->ppile,pfuncpile,mmb2->pfuncpile,&Racine);
  break;case Ln:BCSimple(pinstr,mmb2->pinstr,pvals,mmb2->pvals,
			 ppile,mmb2->ppile,pfuncpile,mmb2->pfuncpile,&Logarithme);
  break;case Exp:BCSimple(pinstr,mmb2->pinstr,pvals,mmb2->pvals,
			  ppile,mmb2->ppile,pfuncpile,mmb2->pfuncpile,&Exponentielle);
  break;case Cos:BCSimple(pinstr,mmb2->pinstr,pvals,mmb2->pvals,
			  ppile,mmb2->ppile,pfuncpile,mmb2->pfuncpile,&Cosinus);
  break;case Tg:BCSimple(pinstr,mmb2->pinstr,pvals,mmb2->pvals,
			 ppile,mmb2->ppile,pfuncpile,mmb2->pfuncpile,&Tangente);
  break;case Atan:BCSimple(pinstr,mmb2->pinstr,pvals,mmb2->pvals,
			   ppile,mmb2->ppile,pfuncpile,mmb2->pfuncpile,(mmb2->NMembers()>1?&ArcTangente2:&ArcTangente));
  break;case Asin:BCSimple(pinstr,mmb2->pinstr,pvals,mmb2->pvals,
			   ppile,mmb2->ppile,pfuncpile,mmb2->pfuncpile,&ArcSinus);
  break;case Acos:BCSimple(pinstr,mmb2->pinstr,pvals,mmb2->pvals,
			   ppile,mmb2->ppile,pfuncpile,mmb2->pfuncpile,&ArcCosinus);
  break;case Abs:BCSimple(pinstr,mmb2->pinstr,pvals,mmb2->pvals,
			  ppile,mmb2->ppile,pfuncpile,mmb2->pfuncpile,&Absolu);
  break;case Fun:BCFun(pinstr,mmb2->pinstr,pvals,mmb2->pvals,ppile,
		       mmb2->ppile,pfuncpile,mmb2->pfuncpile,pfunc);
  break;default:BCSimple(pinstr,mmb2->pinstr,pvals,mmb2->pvals,
			 ppile,mmb2->ppile,pfuncpile,mmb2->pfuncpile,&FonctionError);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r14
movq (%rdi), %rdi
testq %rdi, %rdi
je 0xd8ad
callq 0x43c0
movq $0x0, (%r14)
leaq 0x8(%r14), %r15
movq 0x8(%r14), %rdi
testq %rdi, %rdi
je 0xd8c6
callq 0x43c0
movq $0x0, (%r15)
leaq 0x10(%r14), %rbx
movq 0x10(%r14), %rdi
testq %rdi, %rdi
je 0xd8df
callq 0x43c0
movq $0x0, (%rbx)
leaq 0x18(%r14), %rbp
movq 0x18(%r14), %rdi
testq %rdi, %rdi
je 0xd8f9
callq 0x43c0
movq $0x0, (%rbp)
movl 0x24(%r14), %eax
cmpq $0x16, %rax
ja 0xdd4e
leaq 0x1dfb2(%rip), %rcx     # 0x2b8c0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x10, %edi
callq 0x4040
movq %rax, (%r14)
leaq 0x5e3a(%rip), %rcx      # 0x13765
movq %rcx, (%rax)
xorl %r15d, %r15d
movq %r15, 0x8(%rax)
movl $0x10, %edi
callq 0x4040
movq %rax, %rbx
movq %rax, 0x8(%r14)
movl $0x8, %edi
callq 0x4300
movabsq $0x7fefffffffffffff, %rcx # imm = 0x7FEFFFFFFFFFFFFF
movq %rcx, (%rax)
jmp 0xda74
movq 0x30(%r14), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rcx
movq 0x10(%rax), %r9
subq $0x8, %rsp
leaq 0x5f01(%rip), %r10      # 0x1387d
jmp 0xdd68
movq 0x30(%r14), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rcx
movq 0x10(%rax), %r9
subq $0x8, %rsp
leaq 0x5fd6(%rip), %r10      # 0x13971
jmp 0xdd68
movq 0x28(%r14), %rax
movq 0x30(%r14), %r10
movq (%rax), %rsi
movq 0x8(%rax), %r8
movq (%r10), %rdx
movq 0x8(%r10), %r9
subq $0x8, %rsp
leaq 0x5b50(%rip), %r11      # 0x13511
jmp 0xdce4
movq 0x28(%r14), %rax
movq 0x30(%r14), %r10
movq (%rax), %rsi
movq 0x8(%rax), %r8
movq (%r10), %rdx
movq 0x8(%r10), %r9
subq $0x8, %rsp
leaq 0x5840(%rip), %r11      # 0x13227
jmp 0xdce4
movq 0x30(%r14), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rcx
movq 0x10(%rax), %r9
subq $0x8, %rsp
leaq 0x5d62(%rip), %r10      # 0x13768
jmp 0xdd68
movq 0x28(%r14), %rax
movq 0x30(%r14), %r10
movq (%rax), %rsi
movq 0x8(%rax), %r8
movq (%r10), %rdx
movq 0x8(%r10), %r9
subq $0x8, %rsp
leaq 0x59f5(%rip), %r11      # 0x13421
jmp 0xdce4
movl $0x10, %edi
callq 0x4040
movq %rax, (%r14)
leaq 0x5d20(%rip), %rcx      # 0x13765
movq %rcx, (%rax)
xorl %r15d, %r15d
movq %r15, 0x8(%rax)
movl $0x10, %edi
callq 0x4040
movq %rax, %rbx
movq %rax, 0x8(%r14)
movl $0x8, %edi
callq 0x4300
movsd 0x38(%r14), %xmm0
movsd %xmm0, (%rax)
movq %rax, (%rbx)
movq %r15, 0x8(%rbx)
movl $0x10, %edi
callq 0x4040
movq %rax, 0x10(%r14)
xorps %xmm0, %xmm0
movhps 0x1dddd(%rip), %xmm0    # xmm0 = xmm0[0,1],mem[0,1]
movups %xmm0, (%rax)
movl $0x8, %edi
callq 0x4040
movq %rax, 0x18(%r14)
movq %r15, (%rax)
jmp 0xdb2d
movq 0x30(%r14), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rcx
movq 0x10(%rax), %r9
subq $0x8, %rsp
leaq 0x5e68(%rip), %r10      # 0x1392e
jmp 0xdd68
movl $0x10, %edi
callq 0x4040
movq %rax, (%r14)
leaq 0x5c86(%rip), %rcx      # 0x13765
movq %rcx, (%rax)
xorl %ebx, %ebx
movq %rbx, 0x8(%rax)
movl $0x10, %edi
callq 0x4040
movq %rax, 0x8(%r14)
movq 0x48(%r14), %rcx
movq %rcx, (%rax)
movq %rbx, 0x8(%rax)
movl $0x10, %edi
callq 0x4040
movq %rax, 0x10(%r14)
xorps %xmm0, %xmm0
movhps 0x1dd57(%rip), %xmm0    # xmm0 = xmm0[0,1],mem[0,1]
movups %xmm0, (%rax)
movl $0x8, %edi
callq 0x4040
movq %rax, 0x18(%r14)
movq %rbx, (%rax)
addq $0x18, %rsp
jmp 0xdd80
movq 0x28(%r14), %rax
movq 0x30(%r14), %r10
movq (%rax), %rsi
movq 0x8(%rax), %r8
movq (%r10), %rdx
movq 0x8(%r10), %r9
subq $0x8, %rsp
leaq 0x57a6(%rip), %r11      # 0x132fd
jmp 0xdce4
movq 0x28(%r14), %rax
movq 0x30(%r14), %r10
movq (%rax), %rsi
movq 0x8(%rax), %r8
movq (%r10), %rdx
movq 0x8(%r10), %r9
subq $0x8, %rsp
leaq 0x5bea(%rip), %r11      # 0x13767
jmp 0xdce4
movq 0x30(%r14), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rcx
movq 0x10(%rax), %r9
subq $0x8, %rsp
leaq 0x5d18(%rip), %r10      # 0x138b4
jmp 0xdd68
movq 0x30(%r14), %rdi
movq (%rdi), %r12
movq 0x8(%rdi), %r13
movq 0x10(%rdi), %rax
movq %rax, 0x8(%rsp)
movq 0x18(%rdi), %rax
movq %rax, 0x10(%rsp)
callq 0x10d00
cmpl $0x2, %eax
leaq 0x5b04(%rip), %rax      # 0x136d1
leaq 0x5c7c(%rip), %r10      # 0x13850
cmovgeq %rax, %r10
subq $0x8, %rsp
movq %r14, %rdi
movq %r12, %rsi
movq %r15, %rdx
movq %r13, %rcx
movq %rbx, %r8
movq 0x10(%rsp), %r9
pushq %r10
pushq 0x20(%rsp)
jmp 0xdd76
movq 0x28(%r14), %rax
movq 0x30(%r14), %r10
movq (%rax), %rsi
movq 0x8(%rax), %r8
movq (%r10), %rdx
movq 0x8(%r10), %r9
subq $0x8, %rsp
leaq 0x5676(%rip), %r11      # 0x13292
jmp 0xdce4
movq 0x28(%r14), %rax
movq 0x30(%r14), %r10
movq (%rax), %rsi
movq 0x8(%rax), %r8
movq (%r10), %rdx
movq 0x8(%r10), %r9
subq $0x8, %rsp
leaq 0x59de(%rip), %r11      # 0x13620
jmp 0xdce4
movq 0x30(%r14), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rcx
movq 0x10(%rax), %r9
subq $0x8, %rsp
leaq 0x5c8a(%rip), %r10      # 0x138eb
jmp 0xdd68
movq 0x30(%r14), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rcx
movq 0x10(%rax), %r9
subq $0x8, %rsp
leaq 0x5b19(%rip), %r10      # 0x13799
jmp 0xdd68
movq 0x30(%r14), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rcx
movq 0x10(%rax), %r9
subq $0x8, %rsp
leaq 0x5b6e(%rip), %r10      # 0x1380d
jmp 0xdd68
movq 0x30(%r14), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rcx
movq 0x10(%rax), %r9
subq $0x8, %rsp
leaq 0x5cf6(%rip), %r10      # 0x139b4
jmp 0xdd68
movq 0x28(%r14), %rax
movq 0x30(%r14), %r10
movq (%rax), %rsi
movq 0x8(%rax), %r8
movq (%r10), %rdx
movq 0x8(%r10), %r9
subq $0x8, %rsp
leaq 0x56b2(%rip), %r11      # 0x13396
movq %r14, %rdi
movq %r15, %rcx
pushq %r11
pushq 0x18(%r10)
pushq 0x18(%rax)
pushq %rbp
pushq 0x10(%r10)
pushq 0x10(%rax)
pushq %rbx
callq 0x13a1d
addq $0x58, %rsp
jmp 0xdd80
movq 0x30(%r14), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rcx
movq 0x10(%rax), %r9
subq $0x8, %rsp
movq %r14, %rdi
movq %r15, %rdx
movq %rbx, %r8
pushq 0x50(%r14)
pushq 0x18(%rax)
pushq %rbp
callq 0x13fbb
jmp 0xdd7c
movq 0x30(%r14), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rcx
movq 0x10(%rax), %r9
subq $0x8, %rsp
leaq 0x5a7e(%rip), %r10      # 0x137ca
jmp 0xdd68
movq 0x30(%r14), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rcx
movq 0x10(%rax), %r9
subq $0x8, %rsp
leaq 0x5ca4(%rip), %r10      # 0x13a0c
movq %r14, %rdi
movq %r15, %rdx
movq %rbx, %r8
pushq %r10
pushq 0x18(%rax)
pushq %rbp
callq 0x13d77
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop