static PyObject *Triton_evaluateAST(PyObject *self, PyObject *smtAST) { uint512 value = 0; if (!PySmtAstNode_Check(smtAST)) return PyErr_Format(PyExc_TypeError, "evaluateAST(): expected an SmtAstNode as argument"); value = ap.evaluateAST(PySmtAstNode_AsSmtAstNode(smtAST)); return uint512ToPyLongObject(value); }