// File: /workspace/github_cpp_makefile_star2_O1/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 0x444b(%rip), %rsi      # 0xf53d
callq 0x30b0
testl %eax, %eax
je 0xb1c1
leaq 0x443c(%rip), %rsi      # 0xf542
movq %r15, %rdi
callq 0x30b0
testl %eax, %eax
je 0xb1c1
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 0xa80a
movl %eax, %ebx
movq -0x138(%rbp), %rdi
cmpq %r12, %rdi
je 0xb160
movq -0x128(%rbp), %rsi
incq %rsi
callq 0x31c0
testb %bl, %bl
je 0xb23c
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 0xa701
movl $0x4, (%rbx)
movl %eax, 0x4(%rbx)
movq -0xe8(%rbp), %rdi
cmpq %r12, %rdi
je 0xb229
movq -0xd8(%rbp), %rsi
jmp 0xb221
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 0x4346(%rip), %rsi      # 0xf53d
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 0xb229
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 0xadcc
movl %eax, %ebx
movq -0x118(%rbp), %rdi
cmpq %r12, %rdi
je 0xb286
movq -0x108(%rbp), %rsi
incq %rsi
callq 0x31c0
testb %bl, %bl
je 0xb2ea
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 0xab1f
movl $0x5, (%rbx)
movl %eax, 0x4(%rbx)
movq -0xc8(%rbp), %rdi
cmpq %r12, %rdi
je 0xb229
movq -0xb8(%rbp), %rsi
jmp 0xb221
movq (%r15), %r14
movb (%r14), %al
leal -0x61(%rax), %ecx
cmpb $0x19, %cl
ja 0xb365
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 0xb229
movq -0x78(%rbp), %rsi
jmp 0xb221
addb $-0x41, %al
cmpb $0x19, %al
ja 0xb3cf
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 0xb229
movq -0x58(%rbp), %rsi
jmp 0xb221
leaq -0xa8(%rbp), %rsi
movq %r15, %rdi
callq 0xc7c1
movss %xmm0, -0x24(%rbp)
movl $0x8, %edi
callq 0x31b0
movq %rax, %rbx
movl $0x2, (%rax)
movss -0x24(%rbp), %xmm0
movss %xmm0, 0x4(%rax)
jmp 0xb229
movq %rax, %r14
movq -0x68(%rbp), %rdi
cmpq %r12, %rdi
je 0xb5e3
movq -0x58(%rbp), %rsi
jmp 0xb437
jmp 0xb5e0
movq %rax, %r14
movq -0x88(%rbp), %rdi
cmpq %r12, %rdi
je 0xb5e3
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x31c0
jmp 0xb5e3
movq %rax, %r14
cmpl $0x1, %edx
jne 0xb669
movq %r14, %rdi
callq 0x3230
leaq -0xf8(%rbp), %rbx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x32d0
movq 0x9b57(%rip), %rax      # 0x14fc8
addq $0x10, %rax
movq %rax, (%rbx)
movq %r14, %rdi
callq 0x30f0
movl $0x30, %edi
callq 0x31b0
movq %rax, %rbx
leaq 0x40b4(%rip), %rsi      # 0xf548
leaq -0xa8(%rbp), %rdi
movq %r15, %rdx
callq 0xc84b
leaq 0x40ac(%rip), %rsi      # 0xf556
leaq -0xa8(%rbp), %rdi
callq 0x3330
leaq -0x38(%rbp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xb4da
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0xb4e1
movups (%rcx), %xmm0
movups %xmm0, (%r15)
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)
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
addq %rsi, %rdx
callq 0x3a18
movq $0x0, 0x28(%rbx)
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
je 0xb53a
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x31c0
leaq -0x98(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb559
movq -0x98(%rbp), %rsi
incq %rsi
callq 0x31c0
leaq -0xf8(%rbp), %rdi
callq 0x32c0
callq 0x32b0
jmp 0xb229
movq %rax, %r14
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
je 0xb58c
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x31c0
jmp 0xb58c
movq %rax, %r14
leaq -0x98(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb5b0
movq -0x98(%rbp), %rsi
incq %rsi
callq 0x31c0
jmp 0xb5b0
movq %rax, %r14
movl $0x30, %esi
movq %rbx, %rdi
callq 0x31c0
jmp 0xb5c2
movq %rax, %r14
leaq -0xf8(%rbp), %rdi
callq 0x32c0
callq 0x32b0
jmp 0xb669
movq %rax, %rdi
callq 0x3ab1
movq %rax, %r14
movl $0x28, %esi
jmp 0xb661
movq %rax, %r14
movq -0xc8(%rbp), %rdi
cmpq %r12, %rdi
je 0xb65c
movq -0xb8(%rbp), %rsi
jmp 0xb61a
jmp 0xb659
movq %rax, %r14
movq -0xe8(%rbp), %rdi
cmpq %r12, %rdi
je 0xb65c
movq -0xd8(%rbp), %rsi
incq %rsi
callq 0x31c0
jmp 0xb65c
movq %rax, %r14
movq -0x118(%rbp), %rdi
cmpq %r12, %rdi
je 0xb669
movq -0x108(%rbp), %rsi
jmp 0xb654
jmp 0xb659
movq %rax, %r14
movq -0x138(%rbp), %rdi
cmpq %r12, %rdi
je 0xb669
movq -0x128(%rbp), %rsi
incq %rsi
jmp 0xb664
movq %rax, %r14
movl $0x8, %esi
movq %rbx, %rdi
callq 0x31c0
movq %r14, %rdi
callq 0x32e0