valgrind how to read temporary values in VEX IR
===

I am trying to figure out how to read those temporary values in an IRSB block.

Here is the VEX IR translation of Call instruction

    t15 = Sub32(t5,0x4:I32) sub esp by 4
    PUT(24) = t15 put new esp value to esp register
    STle(t15) = t7 put ret register value                       
    PUT(68) = 0x8048318:I32 put destination to EIP

I am trying to make a call stack by saving all those ret values so that I can track the execution flow of my program. It is fine when the ret value is a constant but it is difficult when it is a dynamic jump like shown above. I am trying to read t7 temporary value which changes dynamically. ppIRStmt function doesnt really help: it prints t7 and nothing. 

It seems like i need to add some VEX statement to read to a local variable but I can't figure out how. 



