Add IR interpreter for debugging and testing