-
Notifications
You must be signed in to change notification settings - Fork 431
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 Global not found #1483
Comments
Any idea to fix this? |
I don't have a global view of svf project right now, if it's feasible to update the replacement value or other similar solutions while adding per element to LLVMConst2SVFConst? |
What is the replacement value? Shall we use this value for global or use the previous one. We will need to map multiple global values to the one actually used? |
Sorry I mean global replacement usually used in optimization for global value. I'm not sure how to fix it |
Any idea about this statement |
This is used to get the representation global if we have multiple global symbols referring to the same global variable, so that we could use a unique global to represent all. looks like we didn’t set the rep global first. |
Ok I got it, let me test if updating |
Thanks |
I've added a patch to fix the issue I was having, but I don't think this fix the root cause, i.e. it does not fully examine the use of global representation in the whole project. The reason why I add SVF/svf-llvm/lib/SymbolTableBuilder.cpp Lines 318 to 330 in 0eae653
|
Could you make a pull request? |
PR #1484 |
I use https://github.com/SVF-tools/SVF-example to process two *.ll files (in attachment), but get "SVF Global not found"
Inside
SVFModule* svfModule = LLVMModuleSet::buildSVFModule(moduleNameVec);
llvmVal
may be a global replacement of val,SVF/svf-llvm/lib/LLVMModule.cpp
Lines 1221 to 1223 in 0eae653
and then in
getSVFGlobalValue
,LLVMConst2SVFConst
may not able to findg
in itself sinceLLVMConst2SVFConst
only updated on non-replacement value, then reports "SVF Global not found!"SVF/svf-llvm/include/SVF-LLVM/LLVMModule.h
Line 236 in 0eae653
capsule_manager-43d688dc37a73ece.zip
The text was updated successfully, but these errors were encountered: