// File: /workspace/github_cpp_makefile_star2_O1/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 0x841b
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x2c0e(%rip), %rsi      # 0xb020
leaq 0x2c18(%rip), %rdx      # 0xb031
jmp 0x8497
movq %rsi, %r15
movl %eax, %ecx
addl $-0x30, %ecx
cmpl $0xa, %ecx
setae %cl
cmpb $0x2d, %al
setne %al
testb %cl, %al
jne 0x84b1
movq 0x8(%r15), %rax
testq %rax, %rax
sete %r14b
je 0x8482
cmpb $0x2e, (%r13)
je 0x8460
movl $0x1, %ecx
cmpq %rcx, %rax
sete %r14b
je 0x8482
cmpb $0x2e, (%r13,%rcx)
leaq 0x1(%rcx), %rcx
jne 0x844b
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x2bc4(%rip), %rsi      # 0xb032
leaq 0x2bc3(%rip), %rdx      # 0xb038
movq %rbx, %rdi
callq 0x4e92
testb %r14b, %r14b
je 0x849f
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x2ba9(%rip), %rsi      # 0xb039
leaq 0x2baa(%rip), %rdx      # 0xb041
movq %rbx, %rdi
callq 0x4e92
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rdx, -0x30(%rbp)
leaq -0x40(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq -0x50(%rbp), %r12
leaq 0x2ced(%rip), %r14      # 0xb1c0
movq (%r15), %rax
addq 0x8(%r15), %rax
cmpq %rax, %r13
je 0x851d
movb (%r13), %al
movb $0x1, %cl
cmpb $0x20, %al
je 0x8504
movl $0x1, %edx
cmpq $0x16, %rdx
setne %cl
je 0x8504
leaq 0x1(%rdx), %rsi
cmpb %al, (%rdx,%r14)
movq %rsi, %rdx
jne 0x84ee
cmpb $0x2e, %al
setne %dl
testb %cl, %dl
jne 0x851d
incq %r13
movsbl %al, %esi
movq %r12, %rdi
callq 0x21a0
jmp 0x84d3
leaq -0x50(%rbp), %rsi
movq -0x30(%rbp), %r14
movq %r14, %rdi
callq 0x4f2c
leaq 0x8(%r14), %rcx
cmpq %rcx, %rax
je 0x855d
leaq -0x50(%rbp), %rsi
movq %r14, %rdi
callq 0x4c30
leaq 0x10(%rbx), %rcx
movq %rcx, (%rbx)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x4df8
jmp 0x8576
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x2cb3(%rip), %rdx      # 0xb21e
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x4e92
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x849f
callq 0x21c0
jmp 0x849f
jmp 0x8595
jmp 0x8595
movq %rax, %rbx
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x85aa
callq 0x21c0
movq %rbx, %rdi
callq 0x2380