// File: /workspace/github_cpp_makefile_star2_O1/araujoigor[P]ipp-compiler/./src/include/IPrint.hpp
// Function: IPrint::generateCode(std::basic_fstream<char, std::char_traits<char>>&)
void generateCode(std::fstream& fileStream) {

		/* O comando equivalente a escreva é o cout */
		fileStream << "cout";

		/* Quebramos a expressão usando o operador de concatenação '+' */
		boost::char_separator<char> separator("+");
		Tokenizer tokens(*expression, separator);

		/* Para cada token, procuramos por erros*/
		for(auto tokenIterator = tokens.begin(); tokenIterator != tokens.end(); tokenIterator++){

			/* Se o token não for um número nem uma string, é uma variável */
			if(!IMath::isNumber(*tokenIterator) && tokenIterator->find("\"") == string::npos){
				IData *var = ownerBlock->getLocalVariable(*tokenIterator);

				/* Se a variável não tiver sido definida, geramos um erro */
				if(var == NULL){
					std::string errorMsg = "Variavel " + *tokenIterator + " nao declarada.";
					throw ISourceErrorException(errorMsg, myLine);
				}

				/* Adicionamos o operador << para cada token, para concatenação dos valores. */
				fileStream << " << " << *tokenIterator;
			}else
				/* Adicionamos o operador << para cada token, para concatenação dos valores. */
				fileStream << " << " << *tokenIterator;
		}

		fileStream << ";" << endl;
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2d8, %rsp            # imm = 0x2D8
movq %rsi, %r14
movq %rdi, %r15
addq $0x10, %r14
leaq 0x7d3f(%rip), %rsi      # 0x307ae
movl $0x4, %edx
movq %r14, %rdi
callq 0x8460
leaq 0x35cb(%rip), %rsi      # 0x2c04e
leaq -0x2f8(%rbp), %rbx
movq %rbx, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xe690
movq %r15, -0x30(%rbp)
movq 0x18(%r15), %rsi
leaq -0x2a8(%rbp), %rdi
movq %rbx, %rdx
callq 0xe736
leaq -0xf8(%rbp), %rdi
leaq -0x2a8(%rbp), %rsi
callq 0xe7c2
leaq -0x90(%rbp), %r15
leaq -0x1f8(%rbp), %r12
leaq -0x50(%rbp), %r13
leaq -0x180(%rbp), %rdi
leaq -0x2a8(%rbp), %rsi
callq 0xe886
movb -0x120(%rbp), %al
cmpb $0x1, %al
jne 0x28b10
cmpb $0x1, -0x98(%rbp)
jne 0x28b10
movq -0x130(%rbp), %rax
cmpq -0xa8(%rbp), %rax
je 0x28dc3
xorl %ebx, %ebx
jmp 0x28b19
cmpb -0x98(%rbp), %al
sete %bl
movq -0x118(%rbp), %rdi
leaq -0x108(%rbp), %rax
cmpq %rax, %rdi
je 0x28b31
callq 0x8350
movq -0x160(%rbp), %rdi
leaq -0x150(%rbp), %rax
cmpq %rax, %rdi
je 0x28b49
callq 0x8350
movq -0x180(%rbp), %rdi
leaq -0x170(%rbp), %rax
cmpq %rax, %rdi
je 0x28b61
callq 0x8350
testb %bl, %bl
jne 0x28dd6
cmpb $0x0, -0x98(%rbp)
je 0x28f11
leaq -0x40(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x90(%rbp), %rsi
movq -0x88(%rbp), %rdx
addq %rsi, %rdx
movq %r13, %rdi
callq 0x10d2a
movq %r13, %rdi
callq 0xb254
testb %al, %al
je 0x28bb7
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x28bf9
callq 0x8350
jmp 0x28bf9
cmpb $0x0, -0x98(%rbp)
je 0x28f11
movl $0x1, %ecx
movq %r15, %rdi
leaq 0x34cb(%rip), %rsi      # 0x2c09e
xorl %edx, %edx
callq 0x8790
movq %rax, %rbx
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x28bef
callq 0x8350
cmpq $-0x1, %rbx
je 0x28d26
movl $0x4, %edx
movq %r14, %rdi
leaq 0x7bab(%rip), %rsi      # 0x307b3
callq 0x8460
cmpb $0x0, -0x98(%rbp)
je 0x28f11
movq -0x90(%rbp), %rsi
movq -0x88(%rbp), %rdx
movq %r14, %rdi
callq 0x8460
movq %r12, -0x208(%rbp)
movq -0xf8(%rbp), %rsi
movq -0xf0(%rbp), %rdx
addq %rsi, %rdx
leaq -0x208(%rbp), %rdi
callq 0x10d2a
leaq -0x1d8(%rbp), %rax
movq %rax, -0x1e8(%rbp)
movq -0xd8(%rbp), %rsi
movq -0xd0(%rbp), %rdx
addq %rsi, %rdx
leaq -0x1e8(%rbp), %rdi
callq 0x10d2a
movb -0x20(%r15), %al
movb %al, 0x38(%r12)
movq -0x28(%r15), %rax
movq %rax, 0x30(%r12)
movb -0x8(%r15), %al
movb %al, 0x50(%r12)
movups -0x18(%r15), %xmm0
movups %xmm0, 0x40(%r12)
leaq -0x190(%rbp), %rax
movq %rax, -0x1a0(%rbp)
movq -0x90(%rbp), %rsi
movq -0x88(%rbp), %rdx
addq %rsi, %rdx
leaq -0x1a0(%rbp), %rdi
callq 0x10d2a
leaq -0xf8(%rbp), %rdi
callq 0xecfe
movq -0x1a0(%rbp), %rdi
leaq -0x190(%rbp), %rax
cmpq %rax, %rdi
je 0x28cf4
callq 0x8350
movq -0x1e8(%rbp), %rdi
leaq -0x1d8(%rbp), %rax
cmpq %rax, %rdi
je 0x28d0c
callq 0x8350
movq -0x208(%rbp), %rdi
cmpq %r12, %rdi
je 0x28ad2
callq 0x8350
jmp 0x28ad2
cmpb $0x0, -0x98(%rbp)
je 0x28f11
movq -0x30(%rbp), %rax
movq 0x10(%rax), %rbx
leaq -0x60(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x90(%rbp), %rsi
movq -0x88(%rbp), %rdx
addq %rsi, %rdx
leaq -0x70(%rbp), %rdi
callq 0x10d2a
movq %rbx, %rdi
leaq -0x70(%rbp), %rsi
callq 0xda54
movq %rax, %rbx
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x28d7e
callq 0x8350
testq %rbx, %rbx
je 0x28eb3
movl $0x4, %edx
movq %r14, %rdi
leaq 0x7a1d(%rip), %rsi      # 0x307b3
callq 0x8460
cmpb $0x0, -0x98(%rbp)
je 0x28f11
movq -0x90(%rbp), %rsi
movq -0x88(%rbp), %rdx
movq %r14, %rdi
callq 0x8460
jmp 0x28c30
movq -0x128(%rbp), %rax
cmpq -0xa0(%rbp), %rax
jmp 0x28b16
leaq -0x80(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x28de8
callq 0x8350
leaq -0xc8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x28dfd
callq 0x8350
leaq -0xe8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x28e12
callq 0x8350
leaq 0x79cb(%rip), %rsi      # 0x307e4
movl $0x1, %edx
movq %r14, %rdi
callq 0x8460
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x8360
movsbl %al, %esi
movq %r14, %rdi
callq 0x8030
movq %rax, %rdi
callq 0x82b0
leaq -0x268(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x28e62
callq 0x8350
leaq -0x288(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x28e77
callq 0x8350
leaq -0x2c8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x28e8c
callq 0x8350
leaq -0x2e8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x28ea1
callq 0x8350
addq $0x2d8, %rsp            # imm = 0x2D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpb $0x0, -0x98(%rbp)
je 0x28f11
leaq 0x335e(%rip), %rsi      # 0x2c221
leaq -0x248(%rbp), %rdi
movq %r15, %rdx
callq 0xdb86
leaq 0x78f3(%rip), %rsi      # 0x307cc
leaq -0x248(%rbp), %rdi
callq 0x8850
leaq -0x170(%rbp), %rcx
movq %rcx, -0x180(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x28f30
movups (%rcx), %xmm0
leaq -0x170(%rbp), %rdx
movups %xmm0, (%rdx)
jmp 0x28f41
leaq 0x34ec(%rip), %rdi      # 0x2c404
leaq 0x34ec(%rip), %rsi      # 0x2c40b
leaq 0x350b(%rip), %rcx      # 0x2c431
movl $0x3b, %edx
callq 0x82a0
movq %rdx, -0x180(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x170(%rbp)
movq 0x8(%rax), %rdx
movq %rdx, -0x178(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0x238(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x28f70
callq 0x8350
movl $0x28, %edi
callq 0x81f0
movq %rax, %r14
leaq -0x218(%rbp), %r12
movq %r12, -0x10(%r12)
movq -0x180(%rbp), %rsi
movq -0x178(%rbp), %rdx
addq %rsi, %rdx
leaq -0x228(%rbp), %rdi
callq 0x10d2a
movq -0x30(%rbp), %rax
movl 0x8(%rax), %edx
movb $0x1, %r15b
leaq -0x228(%rbp), %rsi
movq %r14, %rdi
callq 0xdc12
xorl %r15d, %r15d
leaq 0x13097(%rip), %rsi     # 0x3c060
leaq -0x1b36e(%rip), %rdx    # 0xdc62
movq %r14, %rdi
callq 0x8770
movq %rax, %rbx
movq -0x228(%rbp), %rdi
cmpq %r12, %rdi
je 0x28ff4
callq 0x8350
jmp 0x28ff4
movq %rax, %rbx
movb $0x1, %r15b
testb %r15b, %r15b
je 0x29001
movq %r14, %rdi
callq 0x82e0
movq -0x180(%rbp), %rdi
leaq -0x170(%rbp), %rax
jmp 0x2907c
movq %rax, %rbx
leaq -0x238(%rbp), %rax
movq -0x10(%rax), %rdi
jmp 0x2907c
jmp 0x2902a
movq %rax, %rbx
jmp 0x290a5
jmp 0x2908a
movq %rax, %rbx
jmp 0x29099
movq %rax, %rbx
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
jmp 0x2907c
jmp 0x2908a
movq %rax, %rbx
movq -0x208(%rbp), %rdi
cmpq %r12, %rdi
jne 0x29081
jmp 0x2908d
movq %rax, %rbx
leaq -0x208(%rbp), %rdi
callq 0xe9c8
jmp 0x2908d
movq %rax, %rbx
leaq -0x208(%rbp), %rdi
callq 0xe94a
jmp 0x2908d
movq %rax, %rbx
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x2908d
callq 0x8350
jmp 0x2908d
jmp 0x2908a
movq %rax, %rbx
leaq -0xf8(%rbp), %rdi
callq 0xe94a
leaq -0x2a8(%rbp), %rdi
callq 0xe992
leaq -0x2f8(%rbp), %rdi
callq 0xe9c8
movq %rbx, %rdi
callq 0x87b0
nop