public class RegionMetricsVisitor extends AstMapVisitor
Modifier and Type | Field and Description |
---|---|
private int |
depth |
private java.util.LinkedHashSet<za.ac.sun.cs.green.expr.Expression> |
ifCondCache |
private int |
maxDepth |
private long |
thisNumPaths |
private long |
totalNumPaths |
eva, exprVisitor
Modifier | Constructor and Description |
---|---|
private |
RegionMetricsVisitor() |
Modifier and Type | Method and Description |
---|---|
static boolean |
execute(DynamicRegion dynRegion) |
static boolean |
execute(StaticRegion staticRegion) |
private void |
reset(java.util.LinkedHashSet<za.ac.sun.cs.green.expr.Expression> oldIfCondCache) |
private void |
snapshot(java.util.LinkedHashSet<za.ac.sun.cs.green.expr.Expression> oldIfCondCache) |
Stmt |
visit(CompositionStmt s) |
Stmt |
visit(IfThenElseStmt a) |
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
private int depth
private int maxDepth
private long totalNumPaths
private long thisNumPaths
private java.util.LinkedHashSet<za.ac.sun.cs.green.expr.Expression> ifCondCache
public Stmt visit(CompositionStmt s)
visit
in interface AstVisitor<Stmt>
visit
in class AstMapVisitor
public Stmt visit(IfThenElseStmt a)
visit
in interface AstVisitor<Stmt>
visit
in class AstMapVisitor
private void snapshot(java.util.LinkedHashSet<za.ac.sun.cs.green.expr.Expression> oldIfCondCache)
private void reset(java.util.LinkedHashSet<za.ac.sun.cs.green.expr.Expression> oldIfCondCache)
public static boolean execute(StaticRegion staticRegion)
public static boolean execute(DynamicRegion dynRegion)