Class DefaultFreshVarMapper<T>
java.lang.Object
fr.lirmm.graphik.integraal.core.DefaultFreshVarMapper<T>
- Type Parameters:
T- the object type whose occurrences are mapped to fresh variables
- All Implemented Interfaces:
FreshVarMapper<T>
Variable mapper for replacing a variable with another one.
Used only by IDCompilation.
- Author:
- Clément Sipieter (INRIA) <clement@6pi.fr>
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a mapper using a default fresh-variable generator.Creates a mapper using the specified fresh-variable generator.DefaultFreshVarMapper(VariableGenerator gen, List<T> objectsToSubstitute) Creates a mapper and eagerly allocates fresh variables for the supplied objects. -
Method Summary
Modifier and TypeMethodDescriptiongetImageOf(T object) Returns the fresh variable associated with the specified object.
-
Constructor Details
-
DefaultFreshVarMapper
public DefaultFreshVarMapper()Creates a mapper using a default fresh-variable generator. -
DefaultFreshVarMapper
Creates a mapper using the specified fresh-variable generator.- Parameters:
gen- the generator used to allocate fresh variables
-
DefaultFreshVarMapper
Creates a mapper and eagerly allocates fresh variables for the supplied objects.- Parameters:
gen- the generator used to allocate fresh variablesobjectsToSubstitute- the objects to pre-map
-
-
Method Details
-
getImageOf
Returns the fresh variable associated with the specified object.- Specified by:
getImageOfin interfaceFreshVarMapper<T>- Parameters:
object- the object to map- Returns:
- the fresh variable image of the object
-