On printing Value


I was trying to implement an analysis. I wanted to make sure the result of the analysis is as expected.

This requires printing Values and opcode. How can I go about this?

You can use the Value::dump() method to print the value out to either stderr or stdout (I don’t recall which it is). Since Instruction is a subclass of Value, it has a dump() method as well. – John T.