// File: syusui-s[P]old_rpn_language/./element.h
// Function: calclate(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
std::string calclate(std::string input){
	int length;
	std::list<std::string> strlst;
	Element *rtn;
	
	try{
		strlst = split(delsp(input)); // 入力値を文字列リストに変換
		length = strlst.size(); // 文字列リストの大きさをlengthに代入

		Element **elements = elementarray(strlst);

		rtn = calc_array(elements,length)[0];
	}
	catch(std::string errormsg){
		std::cout << "エラー: " << errormsg;
		rtn = new Element("");
	}

	return rtn->data_is();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x160, %rsp            # imm = 0x160
movq %rsi, -0x110(%rbp)
movq %rdi, -0x120(%rbp)
movq %rdi, %rax
movq %rax, -0x118(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x37a0
movq -0x110(%rbp), %rsi
leaq -0x90(%rbp), %rdi
callq 0x3100
jmp 0x8a89
leaq -0x70(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0x35c0
jmp 0x8a9b
leaq -0x50(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x3680
jmp 0x8aaa
leaq -0x30(%rbp), %rdi
movq %rdi, -0x128(%rbp)
leaq -0x50(%rbp), %rsi
movq %rsi, -0x130(%rbp)
callq 0x9470
movq -0x130(%rbp), %rdi
callq 0x3800
leaq -0x70(%rbp), %rdi
callq 0x3448
leaq -0x90(%rbp), %rdi
callq 0x3448
movq -0x128(%rbp), %rdi
callq 0x92f0
movq -0x128(%rbp), %rsi
movl %eax, -0x14(%rbp)
leaq -0xc0(%rbp), %rdi
callq 0x94a0
jmp 0x8b0a
leaq -0xc0(%rbp), %rdi
callq 0x5940
movq %rax, -0x138(%rbp)
jmp 0x8b1f
leaq -0xc0(%rbp), %rdi
callq 0x3800
movq -0x138(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0xa8(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0x8820
movq %rax, -0x140(%rbp)
jmp 0x8b51
movq -0x140(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x38(%rbp)
jmp 0x8ce4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x98(%rbp)
movl %eax, -0x9c(%rbp)
jmp 0x8bd3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x98(%rbp)
movl %eax, -0x9c(%rbp)
jmp 0x8ba7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x98(%rbp)
movl %eax, -0x9c(%rbp)
leaq -0x70(%rbp), %rdi
callq 0x3448
leaq -0x90(%rbp), %rdi
callq 0x3448
jmp 0x8bd3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x98(%rbp)
movl %eax, -0x9c(%rbp)
leaq -0xc0(%rbp), %rdi
callq 0x3800
movl -0x9c(%rbp), %eax
movl $0x1, %ecx
cmpl %ecx, %eax
jne 0x8da8
movq -0x98(%rbp), %rdi
movq %rdi, -0x148(%rbp)
callq 0x3300
movq %rax, %rsi
leaq -0xe0(%rbp), %rdi
callq 0x3100
jmp 0x8c0a
movq -0x148(%rbp), %rdi
callq 0x30e0
movq 0x53ab(%rip), %rdi      # 0xdfc8
leaq 0x167a(%rip), %rsi      # 0xa29e
callq 0x3220
movq %rax, -0x150(%rbp)
jmp 0x8c32
movq -0x150(%rbp), %rdi
leaq -0xe0(%rbp), %rsi
callq 0x3200
jmp 0x8c47
movl $0x40, %edi
callq 0x3230
movq %rax, -0x158(%rbp)
jmp 0x8c5a
movb $0x1, -0x102(%rbp)
leaq -0x101(%rbp), %rdi
movq %rdi, -0x160(%rbp)
callq 0x33c0
movq -0x160(%rbp), %rdx
leaq 0x1641(%rip), %rsi      # 0xa2c3
leaq -0x100(%rbp), %rdi
callq 0x9180
jmp 0x8c90
movq -0x158(%rbp), %rdi
leaq -0x100(%rbp), %rsi
callq 0x5800
jmp 0x8ca5
movq -0x158(%rbp), %rax
movb $0x0, -0x102(%rbp)
movq %rax, -0x38(%rbp)
leaq -0x100(%rbp), %rdi
callq 0x3448
leaq -0x101(%rbp), %rdi
callq 0x3280
leaq -0xe0(%rbp), %rdi
callq 0x3448
callq 0x3380
jmp 0x8ce2
jmp 0x8ce4
movq -0x120(%rbp), %rdi
movq -0x38(%rbp), %rsi
callq 0x58e0
jmp 0x8cf6
leaq -0x30(%rbp), %rdi
callq 0x3800
movq -0x118(%rbp), %rax
addq $0x160, %rsp            # imm = 0x160
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x98(%rbp)
movl %eax, -0x9c(%rbp)
jmp 0x8d7f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x98(%rbp)
movl %eax, -0x9c(%rbp)
jmp 0x8d55
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x98(%rbp)
movl %eax, -0x9c(%rbp)
leaq -0x100(%rbp), %rdi
callq 0x3448
leaq -0x101(%rbp), %rdi
callq 0x3280
testb $0x1, -0x102(%rbp)
jne 0x8d6c
jmp 0x8d7d
movq -0x158(%rbp), %rdi
movl $0x40, %esi
callq 0x3240
jmp 0x8d7f
leaq -0xe0(%rbp), %rdi
callq 0x3448
callq 0x3380
jmp 0x8da6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x98(%rbp)
movl %eax, -0x9c(%rbp)
jmp 0x8da8
jmp 0x8da8
leaq -0x30(%rbp), %rdi
callq 0x3800
movq -0x98(%rbp), %rdi
callq 0x33b0
movq %rax, %rdi
callq 0x39e0
nopw %cs:(%rax,%rax)