public class DeadVariableEliminator extends Object
| Constructor and Description |
|---|
DeadVariableEliminator() |
| Modifier and Type | Method and Description |
|---|---|
static void |
removeDeadVariables(SceneObject sceneObject,
String name,
ProgramState programState,
Set<String> liveVariables)
Removes all dead variables from a given expression.
|
public static void removeDeadVariables(SceneObject sceneObject, String name, ProgramState programState, Set<String> liveVariables)
sceneObject - Object in the current scene.name - A string encoding of the expression whose dead variables should be removed.programState - The programState in which dead variables should be removed.liveVariables - A list of live variables for the expression encoded by name.Copyright © 2018. All rights reserved.