// File: /workspace/github_cpp_makefile_star2_O2/bothaynahazem[P]AsuMathLabG13/Matrix2017.cpp
// Function: Matrix::getString[abi:cxx11]()
string Matrix::getString()
{
	string s="";
	for (int iR = 0; iR<nRows; iR++)
	{
		for (int iC = 0; iC<nColumns; iC++)
		{
			//cout << values[iR][iC] << " ";

			char buffer[50]="";
			if(this->type=="complex")
			{
				if (cvalues[iR][iC].imag()==0)
					snprintf(buffer, 50, "%g\t", cvalues[iR][iC].real());
				else if (cvalues[iR][iC].real()==0)
								if(cvalues[iR][iC].imag()==1)
									snprintf(buffer, 50, "i\t");
								else if(cvalues[iR][iC].imag()==-1)
										snprintf(buffer, 50, "-i\t");
								else
									snprintf(buffer, 50, "%gi\t", cvalues[iR][iC].imag());
				else if (cvalues[iR][iC].real()!=0 && cvalues[iR][iC].imag()<0)
							 if(cvalues[iR][iC].imag()==-1)
									snprintf(buffer, 50, "%g-i\t", cvalues[iR][iC].real());
						   else
							 snprintf(buffer, 50, "%g%gi\t", cvalues[iR][iC].real(),cvalues[iR][iC].imag());
				else
				 if(cvalues[iR][iC].imag()==1)
					snprintf(buffer, 50, "%g+i\t", cvalues[iR][iC].real());
				 else
					snprintf(buffer, 50, "%g+%gi\t", cvalues[iR][iC].real(),cvalues[iR][iC].imag());
      }else
			snprintf(buffer, 50, "%g\t", values[iR][iC]);
			s += buffer;
		}
		//cout << endl;
		s += "\n";
	}
	return s;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rsi, %r14
leaq 0x577d(%rip), %rsi      # 0xf222
leaq -0x70(%rbp), %rdx
movq %rdi, -0x30(%rbp)
callq 0x7844
leaq 0x18(%r14), %rax
movq %rax, -0x78(%rbp)
xorl %r13d, %r13d
movslq (%r14), %rax
cmpq %rax, %r13
jge 0x9c50
pushq $0x8
popq %r15
xorl %ebx, %ebx
movslq 0x4(%r14), %rax
cmpq %rax, %rbx
jge 0x9c38
xorps %xmm0, %xmm0
movaps %xmm0, -0x50(%rbp)
movaps %xmm0, -0x60(%rbp)
movaps %xmm0, -0x70(%rbp)
andw $0x0, -0x40(%rbp)
movq -0x78(%rbp), %rdi
leaq 0x56fa(%rip), %rsi      # 0xf1f5
callq 0x795a
testb %al, %al
je 0x9b43
movq 0x10(%r14), %rax
movq (%rax,%r13,8), %rax
movsd -0x8(%rax,%r15), %xmm0
movsd (%rax,%r15), %xmm1
xorpd %xmm2, %xmm2
ucomisd %xmm2, %xmm1
leaq -0x70(%rbp), %rax
jne 0x9b83
jp 0x9b83
movq %rax, %rdi
pushq $0x32
popq %rsi
leaq 0x56e9(%rip), %rdx      # 0xf21f
movb $0x1, %al
callq 0x3480
leaq -0x70(%rbp), %rax
jmp 0x9b6b
movq 0x8(%r14), %rax
movq (%rax,%r13,8), %rax
movsd (%rax,%rbx,8), %xmm0
leaq -0x70(%rbp), %r12
movq %r12, %rdi
pushq $0x32
popq %rsi
leaq 0x56be(%rip), %rdx      # 0xf21f
movb $0x1, %al
callq 0x3480
movq %r12, %rax
movq -0x30(%rbp), %rdi
movq %rax, %rsi
callq 0x3590
incq %rbx
addq $0x10, %r15
jmp 0x9acf
ucomisd %xmm2, %xmm0
jne 0x9ba3
jp 0x9ba3
ucomisd 0x55c5(%rip), %xmm1     # 0xf158
jne 0x9bc7
jp 0x9bc7
movb $0x0, -0x6e(%rbp)
movw $0x969, -0x70(%rbp)     # imm = 0x969
jmp 0x9b6b
ucomisd %xmm1, %xmm2
jbe 0x9bdc
ucomisd 0x55af(%rip), %xmm1     # 0xf160
jne 0x9c10
jp 0x9c10
movq %rax, %rdi
pushq $0x32
popq %rsi
leaq 0x5661(%rip), %rdx      # 0xf223
jmp 0x9b36
ucomisd 0x5591(%rip), %xmm1     # 0xf160
jne 0x9bfa
jp 0x9bfa
movl $0x9692d, -0x70(%rbp)   # imm = 0x9692D
jmp 0x9b6b
ucomisd 0x5574(%rip), %xmm1     # 0xf158
jne 0x9c1f
jp 0x9c1f
movq %rax, %rdi
pushq $0x32
popq %rsi
leaq 0x563b(%rip), %rdx      # 0xf230
jmp 0x9b36
movq %rax, %rdi
pushq $0x32
popq %rsi
leaq 0x5632(%rip), %rdx      # 0xf239
movapd %xmm1, %xmm0
jmp 0x9b36
movq %rax, %rdi
pushq $0x32
popq %rsi
leaq 0x560c(%rip), %rdx      # 0xf229
jmp 0x9c2c
movq %rax, %rdi
pushq $0x32
popq %rsi
leaq 0x560a(%rip), %rdx      # 0xf236
movb $0x2, %al
callq 0x3480
jmp 0x9b3d
movq -0x30(%rbp), %rdi
leaq 0x55bc(%rip), %rsi      # 0xf1ff
callq 0x3590
incq %r13
jmp 0x9abd
movq -0x30(%rbp), %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x9c65
movq %rax, %r14
movq -0x30(%rbp), %rdi
callq 0x3170
movq %r14, %rdi
callq 0x3520
nop