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

boomerang.arrays.ArrayIndexSensitiveStrategy Maven / Gradle / Ivy

There is a newer version: 3.2.2
Show newest version
/**
 * ***************************************************************************** Copyright (c) 2020
 * CodeShield GmbH, Paderborn, Germany. This program and the accompanying materials are made
 * available under the terms of the Eclipse Public License 2.0 which is available at
 * http://www.eclipse.org/legal/epl-2.0.
 *
 * 

SPDX-License-Identifier: EPL-2.0 * *

Contributors: Johannes Spaeth - initial API and implementation * ***************************************************************************** */ package boomerang.arrays; import boomerang.scene.ControlFlowGraph.Edge; import boomerang.scene.Field; import boomerang.scene.Pair; import boomerang.scene.Val; import java.util.Set; import sync.pds.solver.SyncPDSSolver.PDSSystem; import sync.pds.solver.nodes.PushNode; import wpds.impl.Weight; import wpds.interfaces.State; public class ArrayIndexSensitiveStrategy implements ArrayHandlingStrategy { @Override public void handleForward(Edge curr, Pair arrayBase, Set out) { out.add( new PushNode<>(curr, arrayBase.getX(), Field.array(arrayBase.getY()), PDSSystem.FIELDS)); } @Override public void handleBackward(Edge curr, Pair arrayBase, Set out) { out.add( new PushNode<>(curr, arrayBase.getX(), Field.array(arrayBase.getY()), PDSSystem.FIELDS)); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy