Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -892,8 +892,8 @@ class IDESolver
for (n_t n : Values) {
for (n_t SP : ICF->getStartPointsOf(ICF->getFunctionOf(n))) {
using TableCell = typename Table<d_t, d_t, EdgeFunctionPtrType>::Cell;
Table<d_t, d_t, EdgeFunctionPtrType> LookupByTarget;
LookupByTarget = JumpFn->lookupByTarget(n);
Table<d_t, d_t, EdgeFunctionPtrType> &LookupByTarget =
JumpFn->lookupByTarget(n);
for (const TableCell &SourceValTargetValAndFunction :
LookupByTarget.cellSet()) {
d_t dPrime = SourceValTargetValAndFunction.getRowKey();
Expand Down Expand Up @@ -1098,7 +1098,9 @@ class IDESolver
// return site using the composed function
auto RevLookupResult = JumpFn->reverseLookup(c, d4);
if (RevLookupResult) {
for (const auto &ValAndFunc : RevLookupResult->get()) {
llvm::SmallVector<std::pair<d_t, EdgeFunctionPtrType>, 2> ResCopy(
RevLookupResult->get().begin(), RevLookupResult->get().end());
for (const auto &ValAndFunc : ResCopy) {
EdgeFunctionPtrType f3 = ValAndFunc.second;
if (!f3->equal_to(AllTop)) {
d_t d3 = ValAndFunc.first;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ template <typename AnalysisDomainTy, typename Container> class JumpFunctions {
* The return value is a set of records of the form
* (sourceVal,targetVal,edgeFunction).
*/
Table<d_t, d_t, EdgeFunctionPtrType> lookupByTarget(n_t Target) {
Table<d_t, d_t, EdgeFunctionPtrType> &lookupByTarget(n_t Target) {
return NonEmptyLookupByTargetNode[Target];
}

Expand Down