Finding the variables (read or write)
<p>I'd like to develop a small debugging tool for python programs.In Dynamic Slicing How can I find the variables that are accessed in a statement? And find the type of access (read or write) for those variables (in Python).### Write: A statement can change the program state Read : A statement can read the program state .<em>*</em>*For example in these 4 lines we have: (1) x = a+b => write{x} &amp; reads{a,b} (2)y=6 => write{y}&amp;reads{} (3) while(n>1) => write{} &amp;reads{n} (4) n=n-1 write{n} &amp; reads{n}</p>
