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

SVF::FlowSensitive analyze failed #1445

Open
FFGGSSJJ opened this issue Apr 24, 2024 · 3 comments
Open

SVF::FlowSensitive analyze failed #1445

FFGGSSJJ opened this issue Apr 24, 2024 · 3 comments

Comments

@FFGGSSJJ
Copy link

Hello, I am working on analysis of a really complicated program. I compiled the llvmir file with flag -O0 and use the latest SVF with LLVM16 to perform SVF::FlowSensitive analyze. I did it like this:

SVFModule* svfModule = LLVMModuleSet::getLLVMModuleSet()->buildSVFModule(moduleNameVec);
SVFIRBuilder builder(svfModule);
SVFIR* pag = builder.build();

SVF::FlowSensitive* fss = new SVF::FlowSensitive(pag);
fss->analyze();

However, it drops assertion when calls the analyze() function:

SVF::NodeID SVF::VFG::getDef(const PAGNode*) const: Assertion `it!=PAGNodeToDefMap.end() && "SVFVar does not have a definition??"' failed

The AndersenWaveDiff works correctly, but I do need a flow sensitive analysis to do my job. I wonder what kind of reasons can lead to this failure? Thank you.

@yuleisui
Copy link
Collaborator

Could you upload your bc? Which version of LLVM you were using?

@FFGGSSJJ
Copy link
Author

FFGGSSJJ commented Apr 24, 2024

Could you upload your bc? Which version of LLVM you were using?

For some reason I may not be able to upload the bc. But the llvmir may be compiled with llvm14 or earlier. Will this mismatch of llvm version lead to the problem?

@yuleisui
Copy link
Collaborator

Could you use clang-16 to compile the bc and have a try again?

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