boomerang.staticfields.FlowSensitiveStaticFieldStrategy Maven / Gradle / Ivy
package boomerang.staticfields;
import boomerang.scene.ControlFlowGraph.Edge;
import boomerang.scene.StaticFieldVal;
import boomerang.scene.Val;
import java.util.Set;
import sync.pds.solver.nodes.Node;
import wpds.impl.Weight;
import wpds.interfaces.State;
public class FlowSensitiveStaticFieldStrategy implements StaticFieldStrategy {
@Override
public void handleForward(
Edge storeStmt, Val storedVal, StaticFieldVal staticVal, Set out) {
out.add(new Node<>(storeStmt, staticVal));
}
@Override
public void handleBackward(
Edge loadStatement, Val loadedVal, StaticFieldVal staticVal, Set out) {
out.add(new Node<>(loadStatement, loadStatement.getTarget().getStaticField()));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy