@Override public SparseIntSet getSources(int i) { return SparseIntSet.singleton(i); }
@Override public IntSet getTargets(int d1) { return 0 == d1 ? result : SparseIntSet.singleton(d1); }
@Override public SparseIntSet getTargets(int i) { return SparseIntSet.singleton(i); }
@Override public SparseIntSet getSources(int i) { return SparseIntSet.singleton(i); }
@Override public SparseIntSet getTargets(int i) { return SparseIntSet.singleton(i); }
@Override public IntSet getSources(int i) { return (kill.contains(i)) ? null : SparseIntSet.singleton(i); }
@Override public IntSet getSources(int i) { return (kill.contains(i)) ? null : SparseIntSet.singleton(i); }
@Override public IntSet getTargets(int i) { return (i == 0) ? gen : gen.contains(i) ? null : SparseIntSet.singleton(i); }
@Override public IntSet getTargets(int i) { return (kill.contains(i)) ? null : SparseIntSet.singleton(i); }
@Override public IntSet getTargets(int i) { return (i == 0) ? gen : gen.contains(i) ? null : SparseIntSet.singleton(i); }
@Override public IntSet getTargets(int i) { return (kill.contains(i)) ? null : SparseIntSet.singleton(i); }
@Override public IntSet getTargets(int d1) { if (0 == d1) { return TaintTransferFunctions.ZERO_SET; } DomainElement de = domain.getMappedObject(d1); if( de.codeElement instanceof LocalElement ) { // if the query domain element is a local, then it is /not/ passed through. return TaintTransferFunctions.EMPTY_SET; } else { return SparseIntSet.singleton(d1); } } }
public static SparseIntSet pair(int i, int j) { if (i == j) { return SparseIntSet.singleton(i); } if (j > i) { return new SparseIntSet(new int[] { i, j }); } else { return new SparseIntSet(new int[] { j, i }); } }
public static SparseIntSet pair(int i, int j) { if (i == j) { return SparseIntSet.singleton(i); } if (j > i) { return new SparseIntSet(new int[] { i, j }); } else { return new SparseIntSet(new int[] { j, i }); } }
private static class BlockPair<E extends ISSABasicBlock> extends Pair<BasicBlockInContext<E>, BasicBlockInContext<E>> { private static final long serialVersionUID = 6838579950051954781L; protected BlockPair(BasicBlockInContext<E> fst, BasicBlockInContext<E> snd) { super(fst, snd); } }
public static SparseIntSet pair(int i, int j) { if (i == j) { return SparseIntSet.singleton(i); } if (j > i) { return new SparseIntSet(new int[] { i, j }); } else { return new SparseIntSet(new int[] { j, i }); } }
protected IntSet getPossibleTargetNumbers(CallSiteReference site) { Object t = targets.get(site.getProgramCounter()); if (t == null) { return null; } else if (t instanceof CGNode) { return SparseIntSet.singleton(getCallGraph().getNumber((CGNode) t)); } else { return (IntSet) t; } }
protected IntSet getPossibleTargetNumbers(CallSiteReference site) { Object t = targets.get(site.getProgramCounter()); if (t == null) { return null; } else if (t instanceof CGNode) { return SparseIntSet.singleton(getCallGraph().getNumber((CGNode) t)); } else { return (IntSet) t; } }