Here is my use case:
I am trying to create a script that finds all instances of a particular instruction (in this case wrmsr) and traces back to find out whether the operands for the instruction are hard-coded literals or variables that are set at runtime. This is meant to help me detect a certain flavor of vulnerable driver.
Does IDAPython have a way to query instruction operands to distinguish between literals and variables? How would I do this?