SVF icon indicating copy to clipboard operation
SVF copied to clipboard

No result of SUPA On-demand Analysis when querying function pointers

Open legendtang opened this issue 4 years ago • 4 comments

Hi,

For the following bitcode file, I ran SUPA on-demand points-to analysis and found there is no callsite result.

imagick_r.0.4.opt.bc.zip

Step to reproduce: Run dvf --dfs --query=funptr --stat imagick_r.0.4.opt.bc, it shows the following result

=================================================
Total virtual callsites: 0
Total analyzed virtual callsites: 0
Indirect call map size: 80
Precise callsites: 0
Zero target callsites: 0
One target callsites: 0
Two target callsites: 0
More than two target callsites: 0
=================================================

If printing the Anderson analysis results of call sites using print-fp, it does have many. According to the paper, there should be a fallback to Anderson right?

legendtang avatar Oct 23 '20 15:10 legendtang

What are Andersen's results? It looks strange to me.

yuleisui avatar Oct 24 '20 10:10 yuleisui

Did you print all the pts of dvf -dfs --query=funptr ?

yuleisui avatar Oct 24 '20 11:10 yuleisui

Yes, I print all function pts of that command by dvf --dfs --query=funptr --stat. Here is the log dvf.log

legendtang avatar Oct 24 '20 16:10 legendtang

It looks to me that dvf analyzes all the indirect calls. You can print all the pts. It should be there.

yuleisui avatar Oct 24 '20 21:10 yuleisui