// File: /workspace/github_cpp_makefile_star2_O2/gioannides[P]Language_Processors/src/../include/ast/ast_Expressions.cpp
// Function: AdditiveExpression::render_asm(std::basic_ofstream<char, std::char_traits<char>>&, Context&)
inline void AdditiveExpression::render_asm(std::ofstream& file,Context& contxt) {


			if(OPERATOR==NULL && MultiplicativeExpressioN != NULL){
				MultiplicativeExpressioN->render_asm(file,contxt);
				//postfix_ops(contxt, file);

			}
			if(contxt.LocalArray && contxt.reading && contxt.function){
				if(AdditiveExpressionPtr != NULL && MultiplicativeExpressioN != NULL){
					AdditiveExpressionPtr->render_asm(file,contxt);		
					MultiplicativeExpressioN->render_asm(file,contxt);					
					
				}
					if(contxt.ArraySize.size()>=2){
					if( OPERATOR != NULL && *OPERATOR == "+" ){
						
							int result = contxt.ArraySize[contxt.ArraySize.size()-1] +  contxt.ArraySize[contxt.ArraySize.size()-2];
							contxt.ArraySize.pop_back();
							contxt.ArraySize.pop_back();
							contxt.ArraySize.push_back(result);
						}
					
					else if( OPERATOR != NULL && *OPERATOR== "-") {
							int result = contxt.ArraySize[contxt.ArraySize.size()-2] -  contxt.ArraySize[contxt.ArraySize.size()-1];
							contxt.ArraySize.pop_back();
							contxt.ArraySize.pop_back();
							contxt.ArraySize.push_back(result);
					}
				}
			}
			else if(AdditiveExpressionPtr != NULL && !contxt.reading  && MultiplicativeExpressioN != NULL && OPERATOR != NULL) { 
				
				
				AdditiveExpressionPtr->render_asm(file,contxt);	
				contxt.Regs++;
				MultiplicativeExpressioN->render_asm(file,contxt);


				
				if(contxt.enum_constant){
					if( *OPERATOR == "+" ){
						if(contxt.EnumOperands.size()>=2){
							int result =  contxt.EnumOperands[contxt.EnumOperands.size()-1] + contxt.EnumOperands[contxt.EnumOperands.size()-2];
							contxt.EnumOperands.pop_back();
							contxt.EnumOperands.pop_back();
							contxt.EnumOperands.push_back(result);
						}
						
					}
					else if(*OPERATOR == "-"){
						if(contxt.EnumOperands.size()>=2){
							int result =  contxt.EnumOperands[contxt.EnumOperands.size()-2] - contxt.EnumOperands[contxt.EnumOperands.size()-1];
							contxt.EnumOperands.pop_back();
							contxt.EnumOperands.pop_back();
							contxt.EnumOperands.push_back(result);
						}
					}
				}
				if((!contxt.function  && !contxt.sizeof_ && !contxt.enum_constant)){
					//postfix_ops(contxt, file);
					if( *OPERATOR == "+" ){
						contxt.eval[contxt.Regs]+=contxt.eval[contxt.Regs+1];
						contxt.eval[contxt.Regs+1]=0;
						contxt.eval_f[contxt.Regs]+=contxt.eval_f[contxt.Regs+1];
						contxt.eval_f[contxt.Regs+1]=0;
						
					}
					else if(*OPERATOR == "-"){
						contxt.eval[contxt.Regs]-=contxt.eval[contxt.Regs+1];
						contxt.eval[contxt.Regs+1]=0;
						contxt.eval_f[contxt.Regs]-=contxt.eval_f[contxt.Regs+1];
						contxt.eval_f[contxt.Regs+1]=0;
					}
				}
				if (contxt.function  && !contxt.sizeof_ && !contxt.enum_constant){
					typePromotion(contxt.Regs,contxt.Regs+1,file,contxt);
					if( *OPERATOR == "+" ){

						if(contxt.regType[contxt.Regs]=='f' || contxt.regType[contxt.Regs+1]=='f'){
							if(contxt.lhs_of_assignment){ //TODO: NEW THING
								file << std::endl << "\tadd.s\t$f" << contxt.Regs+1 <<", $f" << contxt.Regs+2 << ", $f" << contxt.Regs + 1;
								contxt.regType[contxt.Regs+1]='f';
								contxt.regType[contxt.Regs+2]='f';
							}
							else{
								file << std::endl << "\tadd.s\t$f" << contxt.Regs << ",$f" << contxt.Regs << ",$f" << contxt.Regs+1;
								contxt.regType[contxt.Regs]='f';
								contxt.regType[contxt.Regs+1]='f';
							}
							
						}		

						else if(contxt.regType[contxt.Regs]=='u' || contxt.regType[contxt.Regs+1]=='u' ){
							if(contxt.lhs_of_assignment){ // TODO: NEW THING
								file << std::endl << "\taddu\t$" << contxt.Regs+1 <<", $" << contxt.Regs+2 << ", $" << contxt.Regs + 1;
								contxt.regType[contxt.Regs+1]='u';
								contxt.regType[contxt.Regs+2]='u';
							}
							else{
								file << std::endl << "\taddu\t$" << contxt.Regs <<", $" << contxt.Regs << ", $" << contxt.Regs + 1;
								contxt.regType[contxt.Regs]='u';
								contxt.regType[contxt.Regs+1]='u';
							}
							
						}
										
						else{
							if(contxt.lhs_of_assignment){ //TODO: NEW THING
								file << std::endl << "\tadd\t$" << contxt.Regs+1 <<", $" << contxt.Regs+2 << ", $" << contxt.Regs + 1;
								contxt.regType[contxt.Regs+2]='i';
								contxt.regType[contxt.Regs+1]='i';
							}
							else{
							file << std::endl << "\tadd\t$" << contxt.Regs <<", $" << contxt.Regs << ", $" << contxt.Regs + 1;
							contxt.regType[contxt.Regs]='i';
							contxt.regType[contxt.Regs+1]='i';
							}
							
						}
					}
					else if(  *OPERATOR == "-" ){
						if(contxt.regType[contxt.Regs]=='f' || contxt.regType[contxt.Regs+1]=='f'){
							if(contxt.lhs_of_assignment){ //TODO: NEW THING
								file << std::endl << "\tsub.s\t$" << contxt.Regs+1 <<", $" << contxt.Regs+2 << ", $" << contxt.Regs + 1;
								contxt.regType[contxt.Regs+2]='f';
								contxt.regType[contxt.Regs+1]='f';
							}
							else{
								file << std::endl << "\tsub.s\t$f" << contxt.Regs << ",$f" << contxt.Regs << ",$f" << contxt.Regs+1;
								contxt.regType[contxt.Regs]='f';
								contxt.regType[contxt.Regs+1]='f';
							}
							

						}
						else if(contxt.regType[contxt.Regs]=='u' || contxt.regType[contxt.Regs+1]=='u') {
							if(contxt.lhs_of_assignment){ //TODO: NEW THING
								file << std::endl << "\tsubu\t$" << contxt.Regs+1 <<", $" << contxt.Regs+2 << ", $" << contxt.Regs + 1;
								contxt.regType[contxt.Regs+2]='u';
								contxt.regType[contxt.Regs+1]='u';
							}
							else{
								file << std::endl << "\tsubu\t$" << contxt.Regs <<", $" << contxt.Regs << ", $" << contxt.Regs + 1;
								contxt.regType[contxt.Regs]='u';
								contxt.regType[contxt.Regs+1]='u';
							}
							
						}
						
						else{
							if(contxt.lhs_of_assignment){ //TODO: NEW THING
								file << std::endl << "\tsub\t$" << contxt.Regs+1 <<", $" << contxt.Regs+2 << ", $" << contxt.Regs + 1;
								contxt.regType[contxt.Regs+2]='i';
								contxt.regType[contxt.Regs+1]='i';	
							}
							else{
								file << std::endl << "\tsub\t$" << contxt.Regs <<", $" << contxt.Regs << ", $" << contxt.Regs + 1;
								contxt.regType[contxt.Regs]='i';
								contxt.regType[contxt.Regs+1]='i';
							}
							
						}
					}
					
				}
				contxt.Regs--;
			}

		}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
cmpq $0x0, 0x10(%rdi)
jne 0x12196
movq 0x8(%r15), %rdi
testq %rdi, %rdi
je 0x12196
movq %r14, %rsi
movq %rbx, %rdx
callq 0x128d8
cmpb $0x1, 0x74(%rbx)
jne 0x12228
cmpb $0x1, 0x21b(%rbx)
jne 0x12228
cmpb $0x1, 0x218(%rbx)
jne 0x12228
movq 0x18(%r15), %rdi
testq %rdi, %rdi
je 0x121dc
cmpq $0x0, 0x8(%r15)
je 0x121dc
movq %r14, %rsi
movq %rbx, %rdx
callq 0x12166
movq 0x8(%r15), %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x128d8
movq 0x80(%rbx), %rax
subq 0x78(%rbx), %rax
cmpq $0x5, %rax
jb 0x1271d
movq 0x10(%r15), %rdi
testq %rdi, %rdi
je 0x1271d
leaq 0x78(%rbx), %r14
leaq 0x1b9ba(%rip), %rsi     # 0x2dbc3
callq 0x820e
testb %al, %al
je 0x1239f
movq 0x80(%rbx), %rax
movl -0x8(%rax), %ecx
addl -0x4(%rax), %ecx
jmp 0x123cd
movq 0x18(%r15), %rdi
testq %rdi, %rdi
je 0x1271d
cmpb $0x0, 0x21b(%rbx)
jne 0x1271d
cmpq $0x0, 0x8(%r15)
je 0x1271d
cmpq $0x0, 0x10(%r15)
je 0x1271d
movq %r14, %rsi
movq %rbx, %rdx
callq 0x12166
incl 0x310(%rbx)
movq 0x8(%r15), %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x128d8
cmpb $0x1, 0x14d(%rbx)
jne 0x1231d
movq 0x10(%r15), %rdi
leaq 0x1b933(%rip), %rsi     # 0x2dbc3
callq 0x820e
testb %al, %al
je 0x122c6
movq 0x150(%rbx), %rcx
movq 0x158(%rbx), %rax
movq %rax, %rdx
subq %rcx, %rdx
cmpq $0x5, %rdx
jb 0x1231d
leaq 0x150(%rbx), %rdi
movl -0x8(%rcx,%rdx), %r8d
addl -0x4(%rcx,%rdx), %r8d
jmp 0x12305
movq 0x10(%r15), %rdi
leaq 0x1b69b(%rip), %rsi     # 0x2d96c
callq 0x820e
testb %al, %al
je 0x1231d
movq 0x150(%rbx), %rcx
movq 0x158(%rbx), %rax
movq %rax, %rdx
subq %rcx, %rdx
cmpq $0x5, %rdx
jb 0x1231d
leaq 0x150(%rbx), %rdi
movl -0x8(%rcx,%rdx), %r8d
subl -0x4(%rcx,%rdx), %r8d
leaq 0xc(%rsp), %rsi
movl %r8d, (%rsi)
addq $-0x8, %rax
movq %rax, 0x158(%rbx)
callq 0xfa9e
cmpb $0x0, 0x218(%rbx)
jne 0x12446
cmpb $0x0, 0x1f8(%rbx)
jne 0x12446
cmpb $0x0, 0x14d(%rbx)
jne 0x12446
movq 0x10(%r15), %rdi
leaq 0x1b874(%rip), %rsi     # 0x2dbc3
callq 0x820e
testb %al, %al
je 0x123ec
movslq 0x310(%rbx), %rax
movl 0x5fc(%rbx,%rax,4), %ecx
addl %ecx, 0x5f8(%rbx,%rax,4)
movslq 0x310(%rbx), %rax
andl $0x0, 0x5fc(%rbx,%rax,4)
movslq 0x310(%rbx), %rax
leaq (%rbx,%rax,4), %rax
addq $0xa23c, %rax           # imm = 0xA23C
movss (%rax), %xmm0
addss -0x4(%rax), %xmm0
jmp 0x1243e
movq 0x10(%r15), %rdi
testq %rdi, %rdi
je 0x1271d
leaq 0x1b5b9(%rip), %rsi     # 0x2d96c
callq 0x820e
testb %al, %al
je 0x1271d
movq 0x80(%rbx), %rax
movl -0x8(%rax), %ecx
subl -0x4(%rax), %ecx
leaq 0xc(%rsp), %rsi
movl %ecx, (%rsi)
addq $-0x8, %rax
movq %rax, 0x80(%rbx)
movq %r14, %rdi
callq 0xfa9e
jmp 0x1271d
movq 0x10(%r15), %rdi
leaq 0x1b575(%rip), %rsi     # 0x2d96c
callq 0x820e
testb %al, %al
je 0x12446
movslq 0x310(%rbx), %rax
movl 0x5fc(%rbx,%rax,4), %ecx
subl %ecx, 0x5f8(%rbx,%rax,4)
movslq 0x310(%rbx), %rax
andl $0x0, 0x5fc(%rbx,%rax,4)
movslq 0x310(%rbx), %rax
leaq (%rbx,%rax,4), %rax
addq $0xa23c, %rax           # imm = 0xA23C
movss -0x4(%rax), %xmm0
subss (%rax), %xmm0
movss %xmm0, -0x4(%rax)
andl $0x0, (%rax)
cmpb $0x1, 0x218(%rbx)
jne 0x12717
cmpb $0x0, 0x1f8(%rbx)
jne 0x12717
cmpb $0x0, 0x14d(%rbx)
jne 0x12717
movl 0x310(%rbx), %edi
leal 0x1(%rdi), %esi
movq %r14, %rdx
movq %rbx, %rcx
callq 0xfb3c
movq 0x10(%r15), %rdi
leaq 0x1b737(%rip), %rsi     # 0x2dbc3
callq 0x820e
testb %al, %al
je 0x12540
movslq 0x310(%rbx), %rcx
movb 0x341(%rbx,%rcx), %al
cmpb $0x66, %al
je 0x124bb
movb 0x342(%rbx,%rcx), %cl
cmpb $0x66, %cl
jne 0x125fe
movb 0x1d2(%rbx), %bpl
movq %r14, %rdi
callq 0x7190
leaq 0x1b367(%rip), %rsi     # 0x2d838
movq %rax, %rdi
callq 0x7310
movl 0x310(%rbx), %esi
cmpb $0x1, %bpl
jne 0x126ad
incl %esi
movq %rax, %rdi
callq 0x7590
leaq 0x1b348(%rip), %r14     # 0x2d842
movq %rax, %rdi
movq %r14, %rsi
callq 0x7310
movl 0x310(%rbx), %esi
addl $0x2, %esi
movq %rax, %rdi
callq 0x7590
movq %rax, %rdi
movq %r14, %rsi
callq 0x7310
movl 0x310(%rbx), %esi
incl %esi
movq %rax, %rdi
callq 0x7590
movl 0x310(%rbx), %eax
incl %eax
pushq $0x2
jmp 0x126f8
movq 0x10(%r15), %rdi
leaq 0x1b421(%rip), %rsi     # 0x2d96c
callq 0x820e
testb %al, %al
je 0x12717
movslq 0x310(%rbx), %rcx
movb 0x341(%rbx,%rcx), %al
cmpb $0x66, %al
je 0x1257a
movb 0x342(%rbx,%rcx), %cl
cmpb $0x66, %cl
jne 0x1272a
movb 0x1d2(%rbx), %bpl
movq %r14, %rdi
callq 0x7190
cmpb $0x1, %bpl
jne 0x12698
leaq 0x1b2bc(%rip), %rsi     # 0x2d856
movq %rax, %rdi
callq 0x7310
movl 0x310(%rbx), %esi
incl %esi
movq %rax, %rdi
callq 0x7590
leaq 0x1b1e2(%rip), %r14     # 0x2d79b
movq %rax, %rdi
movq %r14, %rsi
callq 0x7310
movl 0x310(%rbx), %esi
addl $0x2, %esi
movq %rax, %rdi
callq 0x7590
movq %rax, %rdi
movq %r14, %rsi
callq 0x7310
movl 0x310(%rbx), %esi
incl %esi
movq %rax, %rdi
callq 0x7590
movl 0x310(%rbx), %eax
addl $0x2, %eax
jmp 0x126f6
cmpb $0x75, %al
setne %r15b
cmpb $0x75, %cl
setne %r12b
movb 0x1d2(%rbx), %bpl
movq %r14, %rdi
callq 0x7190
testb %r12b, %r15b
jne 0x127bc
leaq 0x1b21d(%rip), %rsi     # 0x2d847
movq %rax, %rdi
callq 0x7310
movl 0x310(%rbx), %esi
testb %bpl, %bpl
je 0x127c5
incl %esi
movq %rax, %rdi
callq 0x7590
leaq 0x1b149(%rip), %r14     # 0x2d79b
movq %rax, %rdi
movq %r14, %rsi
callq 0x7310
movl 0x310(%rbx), %esi
addl $0x2, %esi
movq %rax, %rdi
callq 0x7590
movq %rax, %rdi
movq %r14, %rsi
callq 0x7310
movl 0x310(%rbx), %esi
incl %esi
movq %rax, %rdi
callq 0x7590
movl 0x310(%rbx), %eax
incl %eax
pushq $0x2
jmp 0x12810
leaq 0x1b1c0(%rip), %rsi     # 0x2d85f
movq %rax, %rdi
callq 0x7310
movl 0x310(%rbx), %esi
movq %rax, %rdi
callq 0x7590
leaq 0x1b0c3(%rip), %r14     # 0x2d77f
movq %rax, %rdi
movq %r14, %rsi
callq 0x7310
movl 0x310(%rbx), %esi
movq %rax, %rdi
callq 0x7590
movq %rax, %rdi
movq %r14, %rsi
callq 0x7310
movl 0x310(%rbx), %esi
incl %esi
movq %rax, %rdi
callq 0x7590
movl 0x310(%rbx), %eax
pushq $0x1
popq %rcx
movb $0x66, %dl
cltq
movb %dl, 0x341(%rbx,%rax)
movslq 0x310(%rbx), %rax
movl %ecx, %ecx
addq %rax, %rcx
movb %dl, 0x341(%rbx,%rcx)
decl 0x310(%rbx)
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
cmpb $0x75, %al
setne %r15b
cmpb $0x75, %cl
setne %r12b
movb 0x1d2(%rbx), %bpl
movq %r14, %rdi
callq 0x7190
testb %r12b, %r15b
jne 0x12818
leaq 0x1b113(%rip), %rsi     # 0x2d869
movq %rax, %rdi
callq 0x7310
movl 0x310(%rbx), %esi
testb %bpl, %bpl
je 0x127c5
incl %esi
movq %rax, %rdi
callq 0x7590
leaq 0x1b021(%rip), %r14     # 0x2d79b
movq %rax, %rdi
movq %r14, %rsi
callq 0x7310
movl 0x310(%rbx), %esi
addl $0x2, %esi
movq %rax, %rdi
callq 0x7590
movq %rax, %rdi
movq %r14, %rsi
callq 0x7310
movl 0x310(%rbx), %esi
incl %esi
movq %rax, %rdi
callq 0x7590
movl 0x310(%rbx), %eax
addl $0x2, %eax
jmp 0x1280e
leaq 0x1b08c(%rip), %rsi     # 0x2d84f
jmp 0x1281f
movq %rax, %rdi
callq 0x7590
leaq 0x1afc7(%rip), %r14     # 0x2d79b
movq %rax, %rdi
movq %r14, %rsi
callq 0x7310
movl 0x310(%rbx), %esi
movq %rax, %rdi
callq 0x7590
movq %rax, %rdi
movq %r14, %rsi
callq 0x7310
movl 0x310(%rbx), %esi
incl %esi
movq %rax, %rdi
callq 0x7590
movl 0x310(%rbx), %eax
pushq $0x1
popq %rcx
movb $0x75, %dl
jmp 0x126fb
leaq 0x1b052(%rip), %rsi     # 0x2d871
movq %rax, %rdi
callq 0x7310
movl 0x310(%rbx), %esi
testb %bpl, %bpl
je 0x12885
incl %esi
movq %rax, %rdi
callq 0x7590
leaq 0x1af58(%rip), %r14     # 0x2d79b
movq %rax, %rdi
movq %r14, %rsi
callq 0x7310
movl 0x310(%rbx), %esi
addl $0x2, %esi
movq %rax, %rdi
callq 0x7590
movq %rax, %rdi
movq %r14, %rsi
callq 0x7310
movl 0x310(%rbx), %esi
incl %esi
movq %rax, %rdi
callq 0x7590
movl 0x310(%rbx), %eax
addl $0x2, %eax
jmp 0x128ce
movq %rax, %rdi
callq 0x7590
leaq 0x1af07(%rip), %r14     # 0x2d79b
movq %rax, %rdi
movq %r14, %rsi
callq 0x7310
movl 0x310(%rbx), %esi
movq %rax, %rdi
callq 0x7590
movq %rax, %rdi
movq %r14, %rsi
callq 0x7310
movl 0x310(%rbx), %esi
incl %esi
movq %rax, %rdi
callq 0x7590
movl 0x310(%rbx), %eax
pushq $0x1
popq %rcx
movb $0x69, %dl
jmp 0x126fb