|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object scale.score.dependence.omega.omegaLib.VarDecl
public final class VarDecl
Variable declaration.
$Id: VarDecl.java,v 1.12 2005-02-07 21:28:41 burrill Exp $
Copyright 2008 by the
Scale Compiler Group,
Department of Computer Science
University of Massachusetts,
Amherst MA. 01003, USA
All Rights Reserved.
This version of the Omega Libray is a translation from C++ to Java of the Omega Library developed at the University of Maryland.
Copyright (C) 1994-1996 by the Omega ProjectAll rights reserved.
NOTICE: This software is provided ``as is'', without any warranty, including any implied warranty for merchantability or fitness for a particular purpose. Under no circumstances shall the Omega Project or its agents be liable for any use of, misuse of, or inability to use this software, including incidental and consequential damages.
License is hereby given to use, modify, and redistribute this software, in whole or in part, for any purpose, commercial or non-commercial, provided that the user agrees to the terms of this copyright notice, including disclaimer of warranty, and provided that this copyright notice, including disclaimer of warranty, is preserved in the source code and documentation of anything derived from this software. Any redistributor of this software or anything derived from this software assumes responsibility for ensuring that any parties to whom such a redistribution is made are fully aware of the terms of this license and disclaimer.
The Omega project can be contacted at omega@cs.umd.edu or http://www.cs.umd.edu/projects/omega
Variables are free or quantified. Free variables are classified as input, output and global. Quantified variables are classified as forall, exists and wildcard. All global variables are functions symbols of (possibly 0) arguments Local variables that correspond to >0-ary functions are identified as functions of a prefix of the input, output, or both tuples
Field Summary | |
---|---|
static java.lang.String[] |
argNames
|
static int |
EXISTS_VAR
|
static int |
FORALL_VAR
|
static int |
GLOBAL_VAR
|
static java.lang.String[] |
greekLetters
|
int |
id
|
static int |
INPUT_TUPLE
|
static int |
INPUT_VAR
|
static int |
OUTPUT_TUPLE
|
static int |
OUTPUT_VAR
|
static int |
SET_TUPLE
|
static int |
SET_VAR
|
static java.lang.String[] |
tupleTypes
|
static int |
UNKNOWN_TUPLE
|
static java.lang.String[] |
varTypes
|
static int |
WILDCARD_VAR
|
Constructor Summary | |
---|---|
VarDecl(int vkind,
int pos)
|
|
VarDecl(java.lang.String name,
GlobalVarDecl v)
|
|
VarDecl(java.lang.String name,
GlobalVarDecl v,
int functionOf)
|
|
VarDecl(java.lang.String name,
int vkind,
int pos)
|
|
VarDecl(VarDecl v)
|
Method Summary | |
---|---|
java.lang.String |
baseName()
|
void |
changeKind(int newKind)
|
static Vector<VarDecl> |
copyVarDecls(Vector<VarDecl> vl)
|
static int |
created()
|
java.lang.String |
displayName(OmegaLib omegaLib)
|
int |
functionOf()
|
GlobalVarDecl |
getGlobalVar()
|
int |
getInstance()
|
int |
getPosition()
|
VarDecl |
getRemap()
|
boolean |
hasName()
|
int |
kind()
|
java.lang.String |
name(OmegaLib omegaLib)
|
void |
nameVariable(java.lang.String newName)
|
void |
printVarAddrs(java.lang.StringBuffer s)
|
CoefVarDecl |
reallyCoefVar()
|
void |
resetRemapField(VarDecl v)
|
static void |
resetRemapField(Vector<VarDecl> c)
|
static void |
resetRemapField(Vector<VarDecl> c,
int nVars)
|
void |
setInstance(int instance)
|
void |
setKind(int var_kind)
|
java.lang.String |
toString()
|
VarDecl |
UFOwner()
Operation to allow the remap field to be used for union-find operations on variables. |
void |
UFUnion(VarDecl b)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int INPUT_VAR
public static final int OUTPUT_VAR
public static final int SET_VAR
public static final int GLOBAL_VAR
public static final int FORALL_VAR
public static final int EXISTS_VAR
public static final int WILDCARD_VAR
public static final java.lang.String[] varTypes
public static final int UNKNOWN_TUPLE
public static final int INPUT_TUPLE
public static final int OUTPUT_TUPLE
public static final int SET_TUPLE
public static final java.lang.String[] tupleTypes
public static final java.lang.String[] greekLetters
public static final java.lang.String[] argNames
public int id
Constructor Detail |
---|
public VarDecl(java.lang.String name, int vkind, int pos)
public VarDecl(int vkind, int pos)
public VarDecl(VarDecl v)
public VarDecl(java.lang.String name, GlobalVarDecl v)
public VarDecl(java.lang.String name, GlobalVarDecl v, int functionOf)
Method Detail |
---|
public static int created()
public java.lang.String toString()
toString
in class java.lang.Object
public void setInstance(int instance)
public int getInstance()
public VarDecl getRemap()
public void changeKind(int newKind)
public int kind()
public int getPosition()
public GlobalVarDecl getGlobalVar()
public int functionOf()
public CoefVarDecl reallyCoefVar()
public java.lang.String name(OmegaLib omegaLib)
public java.lang.String baseName()
public void nameVariable(java.lang.String newName)
public void setKind(int var_kind)
public void resetRemapField(VarDecl v)
public VarDecl UFOwner()
public void UFUnion(VarDecl b)
public boolean hasName()
public java.lang.String displayName(OmegaLib omegaLib)
public void printVarAddrs(java.lang.StringBuffer s)
public static Vector<VarDecl> copyVarDecls(Vector<VarDecl> vl)
public static void resetRemapField(Vector<VarDecl> c)
public static void resetRemapField(Vector<VarDecl> c, int nVars)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |