// File: /workspace/github_cpp_makefile_star2_O1/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 0xdc83
callq 0x43d0
movq $0x0, (%r14)
leaq 0x8(%r14), %r15
movq 0x8(%r14), %rdi
testq %rdi, %rdi
je 0xdc9c
callq 0x43d0
movq $0x0, (%r15)
leaq 0x10(%r14), %rbx
movq 0x10(%r14), %rdi
testq %rdi, %rdi
je 0xdcb5
callq 0x43d0
movq $0x0, (%rbx)
leaq 0x18(%r14), %rbp
movq 0x18(%r14), %rdi
testq %rdi, %rdi
je 0xdccf
callq 0x43d0
movq $0x0, (%rbp)
movl 0x24(%r14), %eax
cmpq $0x16, %rax
ja 0xe148
leaq 0x1ec0c(%rip), %rcx     # 0x2c8f0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x10, %edi
callq 0x4040
movq %rax, (%r14)
leaq 0x5ee2(%rip), %rcx      # 0x13be3
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 0x4310
movabsq $0x7fefffffffffffff, %r12 # imm = 0x7FEFFFFFFFFFFFFF
movq %r12, (%rax)
movq %rax, (%rbx)
movq %r15, 0x8(%rbx)
movl $0x10, %edi
callq 0x4040
movq %rax, 0x10(%r14)
movq %r15, (%rax)
movq %r12, 0x8(%rax)
jmp 0xde8c
movq 0x30(%r14), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rcx
movq 0x10(%rax), %r9
subq $0x8, %rsp
leaq 0x5f8d(%rip), %r10      # 0x13cfb
jmp 0xe162
movq 0x30(%r14), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rcx
movq 0x10(%rax), %r9
subq $0x8, %rsp
leaq 0x6062(%rip), %r10      # 0x13def
jmp 0xe162
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 0x5bd1(%rip), %r11      # 0x13984
jmp 0xe0de
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 0x58bf(%rip), %r11      # 0x13698
jmp 0xe0de
movq 0x30(%r14), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rcx
movq 0x10(%rax), %r9
subq $0x8, %rsp
leaq 0x5dee(%rip), %r10      # 0x13be6
jmp 0xe162
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 0x5a76(%rip), %r11      # 0x13894
jmp 0xe0de
movl $0x10, %edi
callq 0x4040
movq %rax, (%r14)
leaq 0x5dac(%rip), %rcx      # 0x13be3
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 0x4310
movsd 0x38(%r14), %xmm0
movsd %xmm0, (%rax)
movq %rax, (%rbx)
movq %r15, 0x8(%rbx)
movl $0x10, %edi
callq 0x4040
movq %rax, 0x10(%r14)
movq %r15, (%rax)
movabsq $0x7fefffffffffffff, %rcx # imm = 0x7FEFFFFFFFFFFFFF
movq %rcx, 0x8(%rax)
movl $0x8, %edi
callq 0x4040
movq %rax, 0x18(%r14)
movq %r15, (%rax)
jmp 0xdf27
movq 0x30(%r14), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rcx
movq 0x10(%rax), %r9
subq $0x8, %rsp
leaq 0x5ef0(%rip), %r10      # 0x13dac
jmp 0xe162
movl $0x10, %edi
callq 0x4040
movq %rax, (%r14)
leaq 0x5d0e(%rip), %rcx      # 0x13be3
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)
movq %rbx, (%rax)
movabsq $0x7fefffffffffffff, %rcx # imm = 0x7FEFFFFFFFFFFFFF
movq %rcx, 0x8(%rax)
movl $0x8, %edi
callq 0x4040
movq %rax, 0x18(%r14)
movq %rbx, (%rax)
addq $0x18, %rsp
jmp 0xe17a
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 0x581d(%rip), %r11      # 0x1376e
jmp 0xe0de
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 0x5c6e(%rip), %r11      # 0x13be5
jmp 0xe0de
movq 0x30(%r14), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rcx
movq 0x10(%rax), %r9
subq $0x8, %rsp
leaq 0x5d9c(%rip), %r10      # 0x13d32
jmp 0xe162
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 0x110ec
cmpl $0x2, %eax
leaq 0x5b84(%rip), %rax      # 0x13b4b
leaq 0x5d00(%rip), %r10      # 0x13cce
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 0xe170
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 0x56ed(%rip), %r11      # 0x13703
jmp 0xe0de
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 0x5a5e(%rip), %r11      # 0x13a9a
jmp 0xe0de
movq 0x30(%r14), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rcx
movq 0x10(%rax), %r9
subq $0x8, %rsp
leaq 0x5d0e(%rip), %r10      # 0x13d69
jmp 0xe162
movq 0x30(%r14), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rcx
movq 0x10(%rax), %r9
subq $0x8, %rsp
leaq 0x5b9d(%rip), %r10      # 0x13c17
jmp 0xe162
movq 0x30(%r14), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rcx
movq 0x10(%rax), %r9
subq $0x8, %rsp
leaq 0x5bf2(%rip), %r10      # 0x13c8b
jmp 0xe162
movq 0x30(%r14), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rcx
movq 0x10(%rax), %r9
subq $0x8, %rsp
leaq 0x5d7a(%rip), %r10      # 0x13e32
jmp 0xe162
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 0x5729(%rip), %r11      # 0x13807
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 0x13e9b
addq $0x58, %rsp
jmp 0xe17a
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 0x143f3
jmp 0xe176
movq 0x30(%r14), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rcx
movq 0x10(%rax), %r9
subq $0x8, %rsp
leaq 0x5b02(%rip), %r10      # 0x13c48
jmp 0xe162
movq 0x30(%r14), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rcx
movq 0x10(%rax), %r9
subq $0x8, %rsp
leaq 0x5d28(%rip), %r10      # 0x13e8a
movq %r14, %rdi
movq %r15, %rdx
movq %rbx, %r8
pushq %r10
pushq 0x18(%rax)
pushq %rbp
callq 0x141e0
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop