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

SABER #50

Open
zyw-nine opened this issue May 16, 2018 · 3 comments
Open

SABER #50

zyw-nine opened this issue May 16, 2018 · 3 comments
Labels

Comments

@zyw-nine
Copy link

your saber is flow-sensitive and field-sensitive and Context-Sensitive Interprocedural pointer analysis or not ?

@yuleisui
Copy link
Collaborator

Flow- field- and context-sensitive value-flows constructed using flow-insensitive Andersen's pointer analysis.

@zyw-nine
Copy link
Author

In BreakConstantExpr.cpp ,line 88, you code is
88 "static ConstantExpr *
89 hasConstantGEP (Value * V) {
90 if (ConstantExpr * CE = dyn_cast(V)) {
91 if (CE->getOpcode() == Instruction::GetElementPtr) {
92 return CE;
93} else {
94for (unsigned index = 0; index < CE->getNumOperands(); ++index) {
95if (hasConstantGEP (CE->getOperand(index)))
96return CE;
97}
98}
}

return 0;

}"

but I can't go to line 92 and 96, what is the instruction or code you can arrive the line 92 and 96?

@yuleisui
Copy link
Collaborator

yuleisui commented Jun 1, 2018

will reach 93-96 If "CE->getOpcode() == Instruction::GetElementPtr" is not true (operator other than GetElementPtr).

It recursively expands the constant expression to flat all GetElementPtr CEs.

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

No branches or pull requests

2 participants