if(literal instanceof XNumber) {
DynamicContext probe = DynamicContext.PROBE;
probe.setStaticContext(statEnv);
XNumber xnum = (XNumber) literal;
double xdouble = xnum.asDouble();
long xint = xnum.asLong();
if(xdouble != xint) {
return SequenceExpression.EMPTY_SEQUENCE;
}
if(xint > Integer.MAX_VALUE) {
throw new IllegalStateException();