// File: /workspace/github_cpp_makefile_star2_O3/nikhilYadala[P]Python_to_cpp/Source/src/convert_to_cpp_classes.cpp
// Function: expr_type_(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>&)
std::string expr_type_(std::string& expr,std::map< std::string,std::string >& variables)
{	
	if(expr[0]=='"')
		return "artificial_string";
	if(isdigit(expr[0]) || expr[0]=='-')
	{
		for(std::string::iterator i=expr.begin();i!=expr.end();++i)
			if(*i=='.')
				return "double";
		return "long int";
	}	
	std::string::iterator itr=expr.begin();
	std::string first_variable;
	while(itr!=expr.end()){
		if(is_symbol_(*itr)&&*itr!='.')
			break;
		first_variable.push_back(*(itr++));
	}
	
	if(variables.count(first_variable))
		return variables[first_variable];	//Implicit type casting to be taken care of later on(small fix)
	else return "";
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq (%rsi), %r13
movsbl (%r13), %eax
cmpl $0x22, %eax
jne 0x8354
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x2cd8(%rip), %rsi      # 0xb020
leaq 0x2ce2(%rip), %rdx      # 0xb031
jmp 0x848d
movq %rsi, %r15
movl %eax, %ecx
addl $-0x30, %ecx
cmpl $0xa, %ecx
setae %cl
cmpb $0x2d, %al
setne %al
testb %cl, %al
jne 0x83a4
movq 0x8(%r15), %rax
testq %rax, %rax
je 0x838a
xorl %ecx, %ecx
cmpb $0x2e, (%r13,%rcx)
je 0x8478
incq %rcx
cmpq %rcx, %rax
jne 0x8376
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x2ca1(%rip), %rsi      # 0xb039
leaq 0x2ca2(%rip), %rdx      # 0xb041
jmp 0x848d
movq %rdx, -0x30(%rbp)
leaq -0x40(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x2dfe(%rip), %r14      # 0xb1c0
leaq -0x50(%rbp), %r12
movq (%r15), %rax
addq 0x8(%r15), %rax
cmpq %rax, %r13
je 0x840b
movb (%r13), %al
xorl %ecx, %ecx
movb (%rcx,%r14), %dl
cmpb %al, %dl
je 0x83ed
leaq 0x1(%rcx), %rsi
cmpq $0x15, %rcx
movq %rsi, %rcx
jne 0x83d8
cmpb %al, %dl
sete %cl
cmpb $0x2e, %al
setne %dl
testb %cl, %dl
jne 0x840b
incq %r13
movsbl %al, %esi
movq %r12, %rdi
callq 0x21a0
jmp 0x83c6
leaq -0x50(%rbp), %rsi
movq -0x30(%rbp), %r14
movq %r14, %rdi
callq 0x4ed0
leaq 0x8(%r14), %rcx
cmpq %rcx, %rax
je 0x844b
leaq -0x50(%rbp), %rsi
movq %r14, %rdi
callq 0x4bc2
leaq 0x10(%rbx), %rcx
movq %rcx, (%rbx)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x4d94
jmp 0x8464
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x2dc5(%rip), %rdx      # 0xb21e
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x4e32
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x8495
callq 0x21c0
jmp 0x8495
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x2bac(%rip), %rsi      # 0xb032
leaq 0x2bab(%rip), %rdx      # 0xb038
movq %rbx, %rdi
callq 0x4e32
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x84ab
jmp 0x84ab
movq %rax, %rbx
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x84c0
callq 0x21c0
movq %rbx, %rdi
callq 0x2370