// File: /workspace/github_cpp_makefile_star2_O3/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 0x18cc4(%rip), %rdx     # 0x1e035
leaq -0x60(%rbp), %rdi
movq %rdx, %rsi
callq 0x5cb8
movl 0x28(%rbx), %eax
cmpl 0x2c(%rbx), %eax
jne 0x53f2
leaq 0x18d06(%rip), %rsi     # 0x1e092
leaq -0x60(%rbp), %rdi
callq 0x43a0
movl 0x28(%rbx), %r14d
movl $0x1, %eax
cmpl $0xa, %r14d
jb 0x545f
movl $0x4, %eax
movl $0xd1b71759, %ecx       # imm = 0xD1B71759
movl %r14d, %edx
cmpl $0x63, %edx
jbe 0x5453
cmpl $0x3e7, %edx            # imm = 0x3E7
jbe 0x545d
cmpl $0x2710, %edx           # imm = 0x2710
jb 0x545f
movl %edx, %esi
imulq %rcx, %rsi
shrq $0x2d, %rsi
addl $0x4, %eax
cmpl $0x1869f, %edx          # imm = 0x1869F
movl %esi, %edx
ja 0x53b5
addl $-0x3, %eax
jmp 0x545f
leaq 0x18cb8(%rip), %rsi     # 0x1e0b1
leaq -0x60(%rbp), %rdi
callq 0x43a0
movl 0x28(%rbx), %r14d
movl $0x1, %eax
cmpl $0xa, %r14d
jb 0x549c
movl $0x4, %eax
movl $0xd1b71759, %ecx       # imm = 0xD1B71759
movl %r14d, %edx
cmpl $0x63, %edx
jbe 0x5458
cmpl $0x3e7, %edx            # imm = 0x3E7
jbe 0x549a
cmpl $0x2710, %edx           # imm = 0x2710
jb 0x549c
movl %edx, %esi
imulq %rcx, %rsi
shrq $0x2d, %rsi
addl $0x4, %eax
cmpl $0x1869f, %edx          # imm = 0x1869F
movl %esi, %edx
ja 0x5422
addl $-0x3, %eax
jmp 0x549c
addl $-0x2, %eax
jmp 0x545f
addl $-0x2, %eax
jmp 0x549c
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 0x5c46
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rdx
leaq -0x60(%rbp), %rdi
callq 0x40a0
jmp 0x5574
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 0x5c46
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rdx
leaq -0x60(%rbp), %rdi
callq 0x40a0
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0x54e0
callq 0x41e0
leaq 0x18be5(%rip), %rsi     # 0x1e0cc
leaq -0x60(%rbp), %rdi
callq 0x43a0
movl 0x2c(%rbx), %r14d
movl $0x1, %eax
cmpl $0xa, %r14d
jb 0x5544
movl $0x4, %eax
movl $0xd1b71759, %ecx       # imm = 0xD1B71759
movl %r14d, %edx
cmpl $0x63, %edx
jbe 0x553d
cmpl $0x3e7, %edx            # imm = 0x3E7
jbe 0x5542
cmpl $0x2710, %edx           # imm = 0x2710
jb 0x5544
movl %edx, %esi
imulq %rcx, %rsi
shrq $0x2d, %rsi
addl $0x4, %eax
cmpl $0x1869f, %edx          # imm = 0x1869F
movl %esi, %edx
ja 0x550c
addl $-0x3, %eax
jmp 0x5544
addl $-0x2, %eax
jmp 0x5544
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 0x5c46
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rdx
leaq -0x60(%rbp), %rdi
callq 0x40a0
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0x5582
callq 0x41e0
leaq 0x1d9d3(%rip), %rsi     # 0x22f5c
leaq -0x60(%rbp), %rdi
callq 0x43a0
movq 0x10(%rbx), %rsi
leaq -0x60(%rbp), %rdi
callq 0x43a0
cmpb $0x1, 0x9(%rbx)
jne 0x55b7
movq 0x20(%rbx), %rsi
leaq -0x60(%rbp), %rdi
callq 0x43a0
jmp 0x564c
leaq 0x18b18(%rip), %rsi     # 0x1e0d6
leaq -0x60(%rbp), %rdi
callq 0x43a0
movq 0x18(%rbx), %rsi
leaq -0x60(%rbp), %rdi
callq 0x43a0
leaq 0x18b00(%rip), %rsi     # 0x1e0db
leaq -0x60(%rbp), %rdi
callq 0x43a0
movl 0x30(%rbx), %edi
cmpb $0x1, 0x8(%rbx)
jne 0x562b
callq 0x817c
leaq -0x60(%rbp), %rdi
movq %rax, %rsi
callq 0x43a0
leaq 0x18af0(%rip), %rsi     # 0x1e0f5
leaq -0x60(%rbp), %rdi
callq 0x43a0
movl 0x34(%rbx), %edi
callq 0x817c
leaq -0x60(%rbp), %rdi
movq %rax, %rsi
callq 0x43a0
leaq 0x18ad2(%rip), %rsi     # 0x1e0fb
jmp 0x5643
callq 0x817c
leaq -0x60(%rbp), %rdi
movq %rax, %rsi
callq 0x43a0
leaq 0x18ac8(%rip), %rsi     # 0x1e10b
leaq -0x60(%rbp), %rdi
callq 0x43a0
movq -0x60(%rbp), %rdi
callq 0x175e8
movq %rax, %rbx
movq -0x60(%rbp), %rdi
cmpq %r15, %rdi
je 0x5666
callq 0x41e0
movq %rbx, %rax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x567c
jmp 0x5698
jmp 0x567c
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0x569b
callq 0x41e0
jmp 0x569b
jmp 0x5698
jmp 0x5698
movq %rax, %rbx
jmp 0x56a9
movq %rax, %rbx
movq -0x60(%rbp), %rdi
cmpq %r15, %rdi
je 0x56a9
callq 0x41e0
movq %rbx, %rdi
callq 0x4270
nop