flycrane / jchord

Automatically exported from code.google.com/p/jchord
0 stars 0 forks source link

Construct scope while running dynamic analysis? #46

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Suppose I have a dynamic analysis and I want to use dynamic scope construction 
with it.

As I understand, right now Chord will run the target program twice, once to 
build scope and once to run the dynamic analysis.

Is there a way to combine these, running the program only once?

Original issue reported on code.google.com by asrabkin@gmail.com on 26 Nov 2010 at 6:58

GoogleCodeExporter commented 9 years ago
No, the reason is that each dynamic analysis specifies its own set of events to 
instrument, and there is no way right now to combine sets of events across 
different dynamic analyses.  I have occasionally thought about the need for 
sharing work between different scheduled analyses, and 
chord.project.VisitorHandler is an outcome of such thinking (it arose because I 
wanted to avoid iterating multiple times over the input Java program's classes, 
methods, etc., once per ProgramRel analysis wanting to do the iterating), but I 
think the semantics of doing this more generally could get quite complicated, 
at least in ModernProject.  Let me know if you have suggestions for how to do 
this (even for just ClassicProject).

Original comment by mayur.naik on 27 Nov 2010 at 5:35