// File: /workspace/github_cpp_makefile_star2_O3/BlinfoldKing[P]lisval/src/lib/parser.cpp
// Function: createSingularToken(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
Token* createSingularToken(string s) {
	Token* t = NULL;
	if (s == "true" || s == "false") {
		t = new Boolean(stringToBool(s));
	} else if (isUnaryOperator(s)) {
		t = new UnaryOperator(stringToUnaryOperator(s));
	} else if (isBinaryOperator(s)) {
		t = new BinaryOperator(stringToBinaryOperator(s));
	} else if (isLowercase(s[0])) {
		t = new Atom(s);
	} else if (isUppercase(s[0])) {
		t = new Variable(s);
	} else {
		try {
			string::size_type sz;
			float x = std::stof (s, &sz);

			t = new Number(x);
		} catch (std::invalid_argument e) {
            return new Error("syntax error: \"" + s + "\"", NULL);
		}
	}


	return t;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x140, %rsp            # imm = 0x140
movq %rdi, %r15
leaq 0x44c7(%rip), %rsi      # 0xf505
callq 0x30b0
testl %eax, %eax
je 0xb10d
leaq 0x44b8(%rip), %rsi      # 0xf50a
movq %r15, %rdi
callq 0x30b0
testl %eax, %eax
je 0xb10d
leaq -0x128(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq -0x138(%rbp), %rbx
movq %rbx, %rdi
callq 0x3a18
movq %rbx, %rdi
callq 0xa756
movl %eax, %ebx
movq -0x138(%rbp), %rdi
cmpq %r12, %rdi
je 0xb0ac
movq -0x128(%rbp), %rsi
incq %rsi
callq 0x31c0
testb %bl, %bl
je 0xb188
movl $0x8, %edi
callq 0x31b0
movq %rax, %rbx
leaq -0xd8(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq -0xe8(%rbp), %rdi
callq 0x3a18
leaq -0xe8(%rbp), %rdi
callq 0xa64d
movl $0x4, (%rbx)
movl %eax, 0x4(%rbx)
movq -0xe8(%rbp), %rdi
cmpq %r12, %rdi
je 0xb175
movq -0xd8(%rbp), %rsi
jmp 0xb16d
movl $0x8, %edi
callq 0x31b0
movq %rax, %rbx
leaq -0x148(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq -0x158(%rbp), %rdi
callq 0x3a18
leaq 0x43c2(%rip), %rsi      # 0xf505
leaq -0x158(%rbp), %r14
movq %r14, %rdi
callq 0x30b0
testl %eax, %eax
movl $0x7, (%rbx)
sete 0x4(%rbx)
movq (%r14), %rdi
cmpq %r12, %rdi
je 0xb175
movq -0x148(%rbp), %rsi
incq %rsi
callq 0x31c0
movq %rbx, %rax
addq $0x140, %rsp            # imm = 0x140
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq -0x108(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq -0x118(%rbp), %rbx
movq %rbx, %rdi
callq 0x3a18
movq %rbx, %rdi
callq 0xad18
movl %eax, %ebx
movq -0x118(%rbp), %rdi
cmpq %r12, %rdi
je 0xb1d2
movq -0x108(%rbp), %rsi
incq %rsi
callq 0x31c0
testb %bl, %bl
je 0xb236
movl $0x8, %edi
callq 0x31b0
movq %rax, %rbx
leaq -0xb8(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq -0xc8(%rbp), %rdi
callq 0x3a18
leaq -0xc8(%rbp), %rdi
callq 0xaa6b
movl $0x5, (%rbx)
movl %eax, 0x4(%rbx)
movq -0xc8(%rbp), %rdi
cmpq %r12, %rdi
je 0xb175
movq -0xb8(%rbp), %rsi
jmp 0xb16d
movq (%r15), %r14
movb (%r14), %al
leal -0x61(%rax), %ecx
cmpb $0x19, %cl
ja 0xb2b1
movl $0x28, %edi
callq 0x31b0
movq %rax, %rbx
leaq -0x78(%rbp), %r12
movq %r12, -0x10(%r12)
movq 0x8(%r15), %rdx
addq %r14, %rdx
leaq -0x88(%rbp), %rdi
movq %r14, %rsi
callq 0x3a18
movl $0x0, (%rbx)
leaq 0x8(%rbx), %rdi
movq %rbx, %rax
addq $0x18, %rax
movq %rax, 0x8(%rbx)
movq -0x88(%rbp), %rsi
movq -0x80(%rbp), %rdx
addq %rsi, %rdx
callq 0x3a18
movq -0x88(%rbp), %rdi
cmpq %r12, %rdi
je 0xb175
movq -0x78(%rbp), %rsi
jmp 0xb16d
addb $-0x41, %al
cmpb $0x19, %al
ja 0xb31b
movl $0x28, %edi
callq 0x31b0
movq %rax, %rbx
leaq -0x58(%rbp), %r12
movq %r12, -0x10(%r12)
movq 0x8(%r15), %rdx
addq %r14, %rdx
leaq -0x68(%rbp), %rdi
movq %r14, %rsi
callq 0x3a18
movl $0x3, (%rbx)
leaq 0x8(%rbx), %rdi
movq %rbx, %rax
addq $0x18, %rax
movq %rax, 0x8(%rbx)
movq -0x68(%rbp), %rsi
movq -0x60(%rbp), %rdx
addq %rsi, %rdx
callq 0x3a18
movq -0x68(%rbp), %rdi
cmpq %r12, %rdi
je 0xb175
movq -0x58(%rbp), %rsi
jmp 0xb16d
leaq -0xa8(%rbp), %rsi
movq %r15, %rdi
callq 0xc6eb
movss %xmm0, -0x24(%rbp)
movl $0x8, %edi
callq 0x31b0
movq %rax, %rbx
movl $0x2, (%rax)
movss -0x24(%rbp), %xmm0
movss %xmm0, 0x4(%rax)
jmp 0xb175
movq %rax, %r14
movq -0x68(%rbp), %rdi
cmpq %r12, %rdi
je 0xb52a
movq -0x58(%rbp), %rsi
jmp 0xb383
jmp 0xb527
movq %rax, %r14
movq -0x88(%rbp), %rdi
cmpq %r12, %rdi
je 0xb52a
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x31c0
jmp 0xb52a
movq %rax, %r14
cmpl $0x1, %edx
jne 0xb5b0
movq %r14, %rdi
callq 0x3230
leaq -0xf8(%rbp), %rbx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x32d0
movq 0x9c0b(%rip), %rax      # 0x14fc8
addq $0x10, %rax
movq %rax, (%rbx)
movq %r14, %rdi
callq 0x30f0
movl $0x30, %edi
callq 0x31b0
movq %rax, %rbx
leaq 0x4130(%rip), %rsi      # 0xf510
leaq -0xa8(%rbp), %rdi
movq %r15, %rdx
callq 0xc775
leaq 0x4128(%rip), %rsi      # 0xf51e
leaq -0xa8(%rbp), %rdi
callq 0x3330
leaq -0x38(%rbp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rsi
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rsi
je 0xb426
movq %rsi, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0xb430
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq %r15, %rsi
movq 0x8(%rax), %rdx
movq %rdx, -0x40(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movl $0x8, (%rbx)
leaq 0x8(%rbx), %rdi
movq %rbx, %rax
addq $0x18, %rax
movq %rax, 0x8(%rbx)
addq %rsi, %rdx
callq 0x3a18
movq $0x0, 0x28(%rbx)
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
je 0xb481
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x31c0
leaq -0x98(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb4a0
movq -0x98(%rbp), %rsi
incq %rsi
callq 0x31c0
leaq -0xf8(%rbp), %rdi
callq 0x32c0
callq 0x32b0
jmp 0xb175
movq %rax, %r14
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
je 0xb4d3
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x31c0
jmp 0xb4d3
movq %rax, %r14
leaq -0x98(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb4f7
movq -0x98(%rbp), %rsi
incq %rsi
callq 0x31c0
jmp 0xb4f7
movq %rax, %r14
movl $0x30, %esi
movq %rbx, %rdi
callq 0x31c0
jmp 0xb509
movq %rax, %r14
leaq -0xf8(%rbp), %rdi
callq 0x32c0
callq 0x32b0
jmp 0xb5b0
movq %rax, %rdi
callq 0x3ab6
movq %rax, %r14
movl $0x28, %esi
jmp 0xb5a8
movq %rax, %r14
movq -0xc8(%rbp), %rdi
cmpq %r12, %rdi
je 0xb5a3
movq -0xb8(%rbp), %rsi
jmp 0xb561
jmp 0xb5a0
movq %rax, %r14
movq -0xe8(%rbp), %rdi
cmpq %r12, %rdi
je 0xb5a3
movq -0xd8(%rbp), %rsi
incq %rsi
callq 0x31c0
jmp 0xb5a3
movq %rax, %r14
movq -0x118(%rbp), %rdi
cmpq %r12, %rdi
je 0xb5b0
movq -0x108(%rbp), %rsi
jmp 0xb59b
jmp 0xb5a0
movq %rax, %r14
movq -0x138(%rbp), %rdi
cmpq %r12, %rdi
je 0xb5b0
movq -0x128(%rbp), %rsi
incq %rsi
jmp 0xb5ab
movq %rax, %r14
movl $0x8, %esi
movq %rbx, %rdi
callq 0x31c0
movq %r14, %rdi
callq 0x32e0