-
Notifications
You must be signed in to change notification settings - Fork 440
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
fix a bug of int128 #1624
fix a bug of int128 #1624
Changes from 5 commits
ce05772
49f4a48
05e646a
75be147
5b82bf7
e0d631f
f0d2c2a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -585,10 +585,10 @@ class SVFIR : public IRGraph | |
return addNode(node, i); | ||
} | ||
|
||
inline NodeID addConstantIntValNode(const SVFValue* curInst, s64_t sval, u64_t zval, const NodeID i, | ||
inline NodeID addConstantIntValNode(const SVFValue* curInst, std::pair<s64_t, u64_t> intValue, const NodeID i, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. std::pair<s64_t, u64_t>& There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. std::pair<s64_t, u64_t>& intValue |
||
const ICFGNode* icfgNode) | ||
{ | ||
SVFVar* node = new ConstantIntValVar(curInst, sval, zval, i, icfgNode); | ||
SVFVar* node = new ConstantIntValVar(curInst, intValue.first, intValue.second, i, icfgNode); | ||
return addNode(node, i); | ||
} | ||
|
||
|
@@ -656,13 +656,12 @@ class SVFIR : public IRGraph | |
} | ||
|
||
|
||
inline NodeID addConstantIntObjNode(const SVFValue* curInst, s64_t sval, u64_t zval, const NodeID i) | ||
{ | ||
inline NodeID addConstantIntObjNode(const SVFValue* curInst, std::pair<s64_t, u64_t> intValue, const NodeID i) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. std::pair<s64_t, u64_t>& |
||
const MemObj* mem = getMemObj(curInst); | ||
NodeID base = mem->getId(); | ||
memToFieldsMap[base].set(mem->getId()); | ||
ConstantIntObjVar* node = | ||
new ConstantIntObjVar(curInst, sval, zval, mem->getId(), mem); | ||
new ConstantIntObjVar(curInst, intValue.first, intValue.second, mem->getId(), mem); | ||
return addObjNode(curInst, node, mem->getId()); | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LLVMUtil::getIntegerValue(offset)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
std::make_pair(offset->getSExtValue(), offset->getZExtValue()) => LLVMUtil::getIntegerValue(offset)