de.rwth.dfa.jvm.samples
Class CFPAbstraction
java.lang.Object
|
+--de.rwth.dfa.jvm.samples.AbstractSSDependingAbstraction
|
+--de.rwth.dfa.jvm.samples.CPAbstraction
|
+--de.rwth.dfa.jvm.samples.CFPAbstraction
- All Implemented Interfaces:
- Abstraction
- public class CFPAbstraction
- extends CPAbstraction
- implements Abstraction
Implementation of a constant folding propagation abstraction. It can be used to
determine constant values in both stack an local variables. The domain used is
CFPLattice
.
- Version:
- $Id: CFPAbstraction.java,v 1.3 2002/09/17 06:53:53 mohnen Exp $
- Author:
- Markus Mohnen
Inner classes inherited from class de.rwth.dfa.jvm.samples.CPAbstraction |
CPAbstraction.AllocationFunction, CPAbstraction.CPFunction, CPAbstraction.DupFunction, CPAbstraction.ExceptionHeaderFunction, CPAbstraction.GenericFunction, CPAbstraction.IncLocalFunction, CPAbstraction.PopFunction, CPAbstraction.PushConstantFunction, CPAbstraction.PushLocalFunction, CPAbstraction.StoreLocalFunction, CPAbstraction.SwapFunction |
Constructor Summary |
CFPAbstraction(int maxStack,
int maxLocals,
de.fub.bytecode.generic.ConstantPoolGen constantPoolGen,
de.fub.bytecode.generic.InstructionList methodInstrs,
de.fub.bytecode.classfile.CodeException[] methodExceptions)
Creates a new CFPAbstraction instance. |
CFPAbstraction(int maxStack,
int maxLocals,
de.fub.bytecode.classfile.ConstantPool constantPool,
de.fub.bytecode.generic.InstructionList methodInstrs,
de.fub.bytecode.classfile.CodeException[] methodExceptions)
Creates a new CFPAbstraction instance. |
Method Summary |
Function |
getAbstract(de.fub.bytecode.generic.InstructionHandle ih)
Creates an instance of CPFunction for an instruction. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CFPAbstraction
public CFPAbstraction(int maxStack,
int maxLocals,
de.fub.bytecode.generic.ConstantPoolGen constantPoolGen,
de.fub.bytecode.generic.InstructionList methodInstrs,
de.fub.bytecode.classfile.CodeException[] methodExceptions)
- Creates a new
CFPAbstraction
instance.
- Parameters:
code
- a Code
valueconstantPoolGen
- a ConstantPoolGen
valuemethodInstrs
- an InstructionList
valuemethodExceptions
- a CodeException[]
value
CFPAbstraction
public CFPAbstraction(int maxStack,
int maxLocals,
de.fub.bytecode.classfile.ConstantPool constantPool,
de.fub.bytecode.generic.InstructionList methodInstrs,
de.fub.bytecode.classfile.CodeException[] methodExceptions)
- Creates a new
CFPAbstraction
instance.
- Parameters:
code
- a Code
valueconstantPool
- a ConstantPool
valuemethodInstrs
- an InstructionList
valuemethodExceptions
- a CodeException[]
value
getAbstract
public Function getAbstract(de.fub.bytecode.generic.InstructionHandle ih)
- Creates an instance of CPFunction for an instruction.
- Specified by:
getAbstract
in interface Abstraction
- Overrides:
getAbstract
in class CPAbstraction
- Parameters:
ih
- an InstructionHandle
value- Returns:
- a
Function
value