public static byte[] evaluateBytes(PcodeExpression expr, Trace trace, long snap,
			TraceThread thread, int frame) {
		SleighLanguage language = expr.getLanguage();
		if (trace.getBaseLanguage() != language) {
			throw new IllegalArgumentException(
				"This expression can only be evaulated on traces with language " + language);
		}
		PcodeExecutor<byte[]> executor = buildByteExecutor(trace, snap, thread, frame);
		return expr.evaluate(executor);
	}
Evaluate a compiled p-code expression on the given trace

@param expr the expression
@param trace the trace
@param snap the snap
@param thread the thread, required if register space is used
@param frame the frame, for when register space is used
@return the value of the expression as a byte array
Ghidra/Debug/Framework-TraceModeling/src/main/java/ghidra/pcode/exec/trace/TraceSleighUtils.java