integrate global constant definition to variable definition in AST