cvs77 / jchord

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

Extra entry points #44

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Code for handling extra entry points.

Original issue reported on code.google.com by asrabkin@gmail.com on 14 Oct 2010 at 7:31

Attachments:

GoogleCodeExporter commented 9 years ago
Also requires some Datalog. I've been using the following enhancement to the 
points-to. But it could be fancied-up, e.g., by having fields point to anything 
of appropriate type or subtype.

--------
MentryPoints(m:M) input

externalArg(v:V) output

externalArg(v) :- MmethArg(m,_,v),MentryPoints(m).
VH(v,h) :- externalArg(v),VT(v,t),clsTH(t,h).
#fields of hypothetical objects (external args) point to hypothetical objects 
args
HFH(h1,f,h2) :- clsTH(t,h1),TFT(t,f,t2),clsTH(t2,h2).

reachableM(m) :- MentryPoints(m).

Original comment by asrabkin@gmail.com on 14 Oct 2010 at 7:32

GoogleCodeExporter commented 9 years ago
Java-side mods committed in revision r1185.  Have not modified points-to in 
Trunk.

Original comment by asrabkin@gmail.com on 15 Oct 2010 at 10:57