Update ast_calc.cpp