// File: /workspace/github_cpp_makefile_star2_O1/AshOlogn[P]ash-language-interpreter/src/errors.cpp
// Function: StaticTypeError::what() const
const char* StaticTypeError::what() const throw() {

  std::string str = "";
  
  if(startLineNumber == endLineNumber) {
    str.append("StaticTypeError error on line ");
    str.append(std::to_string(startLineNumber));
  } else {
    str.append("StaticTypeError from line ");
    str.append(std::to_string(startLineNumber));
    str.append(" to line ");
    str.append(std::to_string(endLineNumber));
  }
  
  str.append("\n");
  str.append(context);
  
  //now append customized message if isCustomMessage
  if(isCustomMessage) {
    str.append(customMessage);

  } else {

    str.append("The ");
    str.append(operation);
    str.append(" operation does not take ");
  
    if(isBinary) {
      str.append(toStringParseDataType(arg1));
      str.append(" and ");
      str.append(toStringParseDataType(arg2));
      str.append(" type arguments");
    } else {
      str.append(toStringParseDataType(arg1));
      str.append(" type argument");    
    }
  }
  
  return copyString(str.c_str());
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rbx
leaq -0x50(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0x18cb4(%rip), %rdx     # 0x1e051
leaq -0x60(%rbp), %rdi
movq %rdx, %rsi
callq 0x5ce4
movl 0x28(%rbx), %eax
cmpl 0x2c(%rbx), %eax
jne 0x541e
leaq 0x18cf6(%rip), %rsi     # 0x1e0ae
leaq -0x60(%rbp), %rdi
callq 0x43a0
movl 0x28(%rbx), %r14d
movl $0x1, %eax
cmpl $0xa, %r14d
jb 0x548b
movl $0x4, %eax
movl $0xd1b71759, %ecx       # imm = 0xD1B71759
movl %r14d, %edx
cmpl $0x63, %edx
jbe 0x547f
cmpl $0x3e7, %edx            # imm = 0x3E7
jbe 0x5489
cmpl $0x2710, %edx           # imm = 0x2710
jb 0x548b
movl %edx, %esi
imulq %rcx, %rsi
shrq $0x2d, %rsi
addl $0x4, %eax
cmpl $0x1869f, %edx          # imm = 0x1869F
movl %esi, %edx
ja 0x53e1
addl $-0x3, %eax
jmp 0x548b
leaq 0x18ca8(%rip), %rsi     # 0x1e0cd
leaq -0x60(%rbp), %rdi
callq 0x43a0
movl 0x28(%rbx), %r14d
movl $0x1, %eax
cmpl $0xa, %r14d
jb 0x54c8
movl $0x4, %eax
movl $0xd1b71759, %ecx       # imm = 0xD1B71759
movl %r14d, %edx
cmpl $0x63, %edx
jbe 0x5484
cmpl $0x3e7, %edx            # imm = 0x3E7
jbe 0x54c6
cmpl $0x2710, %edx           # imm = 0x2710
jb 0x54c8
movl %edx, %esi
imulq %rcx, %rsi
shrq $0x2d, %rsi
addl $0x4, %eax
cmpl $0x1869f, %edx          # imm = 0x1869F
movl %esi, %edx
ja 0x544e
addl $-0x3, %eax
jmp 0x54c8
addl $-0x2, %eax
jmp 0x548b
addl $-0x2, %eax
jmp 0x54c8
decl %eax
movl %eax, %esi
leaq -0x30(%rbp), %r12
movq %r12, -0x10(%r12)
leaq -0x40(%rbp), %rdi
xorl %edx, %edx
callq 0x4250
movq -0x40(%rbp), %rdi
movl -0x38(%rbp), %esi
movl %r14d, %edx
callq 0x5c72
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rdx
leaq -0x60(%rbp), %rdi
callq 0x40a0
jmp 0x55a0
decl %eax
movl %eax, %esi
leaq -0x30(%rbp), %r12
movq %r12, -0x10(%r12)
leaq -0x40(%rbp), %rdi
xorl %edx, %edx
callq 0x4250
movq -0x40(%rbp), %rdi
movl -0x38(%rbp), %esi
movl %r14d, %edx
callq 0x5c72
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rdx
leaq -0x60(%rbp), %rdi
callq 0x40a0
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0x550c
callq 0x41e0
leaq 0x18bd5(%rip), %rsi     # 0x1e0e8
leaq -0x60(%rbp), %rdi
callq 0x43a0
movl 0x2c(%rbx), %r14d
movl $0x1, %eax
cmpl $0xa, %r14d
jb 0x5570
movl $0x4, %eax
movl $0xd1b71759, %ecx       # imm = 0xD1B71759
movl %r14d, %edx
cmpl $0x63, %edx
jbe 0x5569
cmpl $0x3e7, %edx            # imm = 0x3E7
jbe 0x556e
cmpl $0x2710, %edx           # imm = 0x2710
jb 0x5570
movl %edx, %esi
imulq %rcx, %rsi
shrq $0x2d, %rsi
addl $0x4, %eax
cmpl $0x1869f, %edx          # imm = 0x1869F
movl %esi, %edx
ja 0x5538
addl $-0x3, %eax
jmp 0x5570
addl $-0x2, %eax
jmp 0x5570
decl %eax
movl %eax, %esi
leaq -0x40(%rbp), %rdi
movq %r12, (%rdi)
xorl %edx, %edx
callq 0x4250
movq -0x40(%rbp), %rdi
movl -0x38(%rbp), %esi
movl %r14d, %edx
callq 0x5c72
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rdx
leaq -0x60(%rbp), %rdi
callq 0x40a0
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0x55ae
callq 0x41e0
leaq 0x1d9c7(%rip), %rsi     # 0x22f7c
leaq -0x60(%rbp), %rdi
callq 0x43a0
movq 0x10(%rbx), %rsi
leaq -0x60(%rbp), %rdi
callq 0x43a0
cmpb $0x1, 0x9(%rbx)
jne 0x55e3
movq 0x20(%rbx), %rsi
leaq -0x60(%rbp), %rdi
callq 0x43a0
jmp 0x5678
leaq 0x18b08(%rip), %rsi     # 0x1e0f2
leaq -0x60(%rbp), %rdi
callq 0x43a0
movq 0x18(%rbx), %rsi
leaq -0x60(%rbp), %rdi
callq 0x43a0
leaq 0x18af0(%rip), %rsi     # 0x1e0f7
leaq -0x60(%rbp), %rdi
callq 0x43a0
movl 0x30(%rbx), %edi
cmpb $0x1, 0x8(%rbx)
jne 0x5657
callq 0x82a8
leaq -0x60(%rbp), %rdi
movq %rax, %rsi
callq 0x43a0
leaq 0x18ae0(%rip), %rsi     # 0x1e111
leaq -0x60(%rbp), %rdi
callq 0x43a0
movl 0x34(%rbx), %edi
callq 0x82a8
leaq -0x60(%rbp), %rdi
movq %rax, %rsi
callq 0x43a0
leaq 0x18ac2(%rip), %rsi     # 0x1e117
jmp 0x566f
callq 0x82a8
leaq -0x60(%rbp), %rdi
movq %rax, %rsi
callq 0x43a0
leaq 0x18ab8(%rip), %rsi     # 0x1e127
leaq -0x60(%rbp), %rdi
callq 0x43a0
movq -0x60(%rbp), %rdi
callq 0x176b0
movq %rax, %rbx
movq -0x60(%rbp), %rdi
cmpq %r15, %rdi
je 0x5692
callq 0x41e0
movq %rbx, %rax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x56a8
jmp 0x56c4
jmp 0x56a8
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0x56c7
callq 0x41e0
jmp 0x56c7
jmp 0x56c4
jmp 0x56c4
movq %rax, %rbx
jmp 0x56d5
movq %rax, %rbx
movq -0x60(%rbp), %rdi
cmpq %r15, %rdi
je 0x56d5
callq 0x41e0
movq %rbx, %rdi
callq 0x4270
nop