All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ibm.wala.dataflow.IFDS.TabulationResult Maven / Gradle / Ivy

/*
 * Copyright (c) 2002 - 2006 IBM Corporation.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 */
package com.ibm.wala.dataflow.IFDS;

import com.ibm.wala.util.intset.IntSet;
import java.util.Collection;

/**
 * The solution of a tabulation problem: a mapping from supergraph node -> bit vector
 * representing the dataflow facts that hold at the entry to the supergraph node.
 *
 * @param  type of node in the supergraph
 * @param 

type of a procedure, like a box in an RSM * @param type of factoids propagated when solving this problem */ public interface TabulationResult { /** * get the bitvector of facts that hold at IN for a given node in the supergraph. * * @param node a node in the supergraph * @return SparseIntSet efficiently representing the bitvector */ IntSet getResult(T node); /** * @return the governing IFDS problem */ TabulationProblem getProblem(); /** * @return the set of supergraph nodes for which any fact is reached */ Collection getSupergraphNodesReached(); /** * @return set of d2 s.t. (n1,d1) -> (n2,d2) is recorded as a summary edge, or null if none * found */ IntSet getSummaryTargets(T n1, int d1, T n2); /** * @return the set of all {@link PathEdge}s that were used as seeds during the tabulation. */ Collection> getSeeds(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy