detect integer results in INV
added AST construction