<br><br><div class="gmail_quote">On Wed, Aug 8, 2012 at 11:12 AM, Tim Henderson <span dir="ltr">&lt;<a href="mailto:tim.tadh@gmail.com" target="_blank">tim.tadh@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Pypy devs!<br><br>I am a graduate student working on mining software repositories, specifically mining programming patterns (or rules) from code bases.[1] I would like to do some work mining patterns from Python programs and I could jump start that work if I could generate dependence graphs from python source files (or from the bytecode). <br>

<br>So I was wondering if Pypy does this already. Actually it would be a big help even if pypy only generated a control flow graph. From my quick skim of some of the source code it seems like it does this for RPython but I wasn&#39;t sure about regular python. If I could get a CFG I could then annotate it with the data dependence edges. <br>

<br>Any pointers to where I should look in the Pypy code would be appreciated! Additionally, if you feel having python pDG&#39;s would be helpful in Pypy&#39;s interpreter perhaps any work I do towards that end could be a starting point. <br>

<br>Thanks for the excellent work on Pypy!<br><br>[1] Here is some of my research group&#39;s previous work on pattern extraction <a href="http://doi.wiley.com/10.1002/smr.532" target="_blank">http://doi.wiley.com/10.1002/smr.532</a> (if you can&#39;t get the paper and would like it let me know)<br>

<br clear="all">Cheers<br>---<br>Tim Henderson<br>mail me: <a href="mailto:tim.tadh@gmail.com" target="_blank">tim.tadh@gmail.com</a><br>mail me: <a href="mailto:timothy.henderson@case.edu" target="_blank">timothy.henderson@case.edu</a><br>

github: <a href="https://github.com/timtadh" target="_blank">github.com/timtadh</a><br><br>
<br>_______________________________________________<br>
pypy-dev mailing list<br>
<a href="mailto:pypy-dev@python.org">pypy-dev@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/pypy-dev" target="_blank">http://mail.python.org/mailman/listinfo/pypy-dev</a><br>
<br></blockquote></div><br>You&#39;re correct, we only generate full CFGs for RPython.  The Python bytecode compiler for PyPy (and CPython) does have a CFG, but they&#39;re just local to functions so I don&#39;t think they&#39;re what you&#39;re looking for.<div>
<br></div><div>Alex<br clear="all"><div><br></div>-- <br>&quot;I disapprove of what you say, but I will defend to the death your right to say it.&quot; -- Evelyn Beatrice Hall (summarizing Voltaire)<br>&quot;The people&#39;s good is the highest law.&quot; -- Cicero<br>
<br>
</div>