public int dup_x2s(final LocalExpr expr) {

		int toReturn = 0;
		final UseInformation UI = (UseInformation) useInfoMap.get(expr);

		if (UI == null) {
			if (StackOptimizer.DEBUG) {
				System.err
						.println("Error in StackOptimizer.dup_x2s: parameter not found in useInfoMap");
			}
			return toReturn;
		}

		toReturn += UI.type0_x2s;
		if ((expr.isDef() && !shouldStore(expr))
				|| (!(expr.isDef()) && !shouldStore((LocalExpr) expr.def()))) {
			toReturn += UI.type1_x2s;
		}

		return toReturn;
	}