Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get point-to set? #1485

Open
yuffon opened this issue Jun 12, 2024 · 2 comments
Open

How to get point-to set? #1485

yuffon opened this issue Jun 12, 2024 · 2 comments

Comments

@yuffon
Copy link

yuffon commented Jun 12, 2024

Hi,
I am using SVF to get point-to set.
I see in

AliasResult BVDataPTAImpl::alias(const PointsTo& p1, const PointsTo& p2)
{

    PointsTo pts1;
    expandFIObjs(p1,pts1);
    PointsTo pts2;
    expandFIObjs(p2,pts2);

    if (containBlackHoleNode(pts1) || containBlackHoleNode(pts2) || pts1.intersects(pts2))
        return AliasResult::MayAlias;
    else
        return AliasResult::NoAlias;
}

It seems that I should use expandFIObjs to get the entire pt set, isn't it?
Besides, what is the meaning of blackhole nodes?

@yuleisui
Copy link
Collaborator

Yes, expandFIObjs will allow you to expand an FI Obj to be replaced by all its field objects if this FI object has fields.

Blackhole is an object that possibly aliases with any other objects.

@yuffon
Copy link
Author

yuffon commented Jun 13, 2024

Yes, expandFIObjs will allow you to expand an FI Obj to be replaced by all its field objects if this FI object has fields.

Blackhole is an object that possibly aliases with any other objects.

Thanks, Yulei. I get it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants