Generate lists of const and pure variables.