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

com.ibm.wala.fixpoint.IFixedPointSystem Maven / Gradle / Ivy

There is a newer version: 1.6.7
Show newest version
/*
 * 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.fixpoint;

import com.ibm.wala.util.graph.INodeWithNumber;
import java.util.Iterator;

/** Represents a set of {@link IFixedPointStatement}s to be solved by a {@link IFixedPointSolver} */
public interface IFixedPointSystem> {

  /** removes a given statement */
  void removeStatement(IFixedPointStatement statement);

  /** Add a statement to the system */
  void addStatement(IFixedPointStatement statement);

  /**
   * Return an Iterator of the {@link IFixedPointStatement}s in this system
   *
   * @return {@link Iterator}<Constraint>
   */
  Iterator getStatements();

  /**
   * Return an Iterator of the variables in this graph
   *
   * @return {@link Iterator}<{@link IVariable}>
   */
  Iterator getVariables();

  /**
   * @return true iff this system already contains an equation that is equal() to s
   */
  boolean containsStatement(IFixedPointStatement s);

  /**
   * @return true iff this system already contains a variable that is equal() to v.
   */
  boolean containsVariable(T v);

  /**
   * @return {@link Iterator}<statement>, the statements that use the variable
   */
  Iterator getStatementsThatUse(T v);

  /**
   * @return {@link Iterator}<statement>, the statements that def the variable
   */
  Iterator getStatementsThatDef(T v);

  int getNumberOfStatementsThatUse(T v);

  int getNumberOfStatementsThatDef(T v);

  /** reorder the statements in this system */
  void reorder();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy