Package it.unive.lisa.imp.expressions
Class IMPNewArray
- java.lang.Object
-
- it.unive.lisa.program.cfg.statement.Statement
-
- it.unive.lisa.program.cfg.statement.Expression
-
- it.unive.lisa.program.cfg.statement.NaryExpression
-
- it.unive.lisa.imp.expressions.IMPNewArray
-
- All Implemented Interfaces:
it.unive.lisa.program.cfg.ProgramPoint,it.unive.lisa.program.CodeElement,it.unive.lisa.util.datastructures.graph.code.CodeNode<it.unive.lisa.program.cfg.CFG,it.unive.lisa.program.cfg.statement.Statement,it.unive.lisa.program.cfg.edge.Edge>,it.unive.lisa.util.datastructures.graph.Node<it.unive.lisa.program.cfg.CFG,it.unive.lisa.program.cfg.statement.Statement,it.unive.lisa.program.cfg.edge.Edge>,java.lang.Comparable<it.unive.lisa.program.cfg.statement.Statement>
public class IMPNewArray extends it.unive.lisa.program.cfg.statement.NaryExpressionAn expression modeling the array allocation operation (new type[...]). The type of this expression is theTypeof the array's elements. Note that the dimensions of the array are ignored. This expression corresponds to aMemoryAllocation.
-
-
Constructor Summary
Constructors Constructor Description IMPNewArray(it.unive.lisa.program.cfg.CFG cfg, java.lang.String sourceFile, int line, int col, it.unive.lisa.type.Type type, boolean staticallyAllocated, it.unive.lisa.program.cfg.statement.Expression[] dimensions)Builds the array allocation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <A extends it.unive.lisa.analysis.AbstractState<A>>
it.unive.lisa.analysis.AnalysisState<A>backwardSemanticsAux(it.unive.lisa.interprocedural.InterproceduralAnalysis<A> interprocedural, it.unive.lisa.analysis.AnalysisState<A> state, it.unive.lisa.analysis.lattices.ExpressionSet[] params, it.unive.lisa.analysis.StatementStore<A> expressions)protected intcompareSameClassAndParams(it.unive.lisa.program.cfg.statement.Statement o)booleanequals(java.lang.Object obj)<A extends it.unive.lisa.analysis.AbstractState<A>>
it.unive.lisa.analysis.AnalysisState<A>forwardSemanticsAux(it.unive.lisa.interprocedural.InterproceduralAnalysis<A> interprocedural, it.unive.lisa.analysis.AnalysisState<A> state, it.unive.lisa.analysis.lattices.ExpressionSet[] params, it.unive.lisa.analysis.StatementStore<A> expressions)inthashCode()-
Methods inherited from class it.unive.lisa.program.cfg.statement.NaryExpression
accept, backwardSemantics, compareSameClass, forwardSemantics, getConstructName, getOrder, getStatementEvaluatedAfter, getStatementEvaluatedBefore, getSubExpressions, toString
-
Methods inherited from class it.unive.lisa.program.cfg.statement.Expression
getMetaVariables, getParentStatement, getRootStatement, getStaticType, setParentStatement
-
Methods inherited from class it.unive.lisa.program.cfg.statement.Statement
compareTo, getCFG, getEvaluationPredecessor, getEvaluationSuccessor, getLocation, stopsExecution, throwsError
-
-
-
-
Constructor Detail
-
IMPNewArray
public IMPNewArray(it.unive.lisa.program.cfg.CFG cfg, java.lang.String sourceFile, int line, int col, it.unive.lisa.type.Type type, boolean staticallyAllocated, it.unive.lisa.program.cfg.statement.Expression[] dimensions)Builds the array allocation.- Parameters:
cfg- theCFGwhere this operation liessourceFile- the source file name where this operation is definedline- the line number where this operation is definedcol- the column where this operation is definedtype- the type of the array's elementsstaticallyAllocated- if this allocation is static or notdimensions- the dimensions of the array
-
-
Method Detail
-
compareSameClassAndParams
protected int compareSameClassAndParams(it.unive.lisa.program.cfg.statement.Statement o)
- Specified by:
compareSameClassAndParamsin classit.unive.lisa.program.cfg.statement.NaryExpression
-
forwardSemanticsAux
public <A extends it.unive.lisa.analysis.AbstractState<A>> it.unive.lisa.analysis.AnalysisState<A> forwardSemanticsAux(it.unive.lisa.interprocedural.InterproceduralAnalysis<A> interprocedural, it.unive.lisa.analysis.AnalysisState<A> state, it.unive.lisa.analysis.lattices.ExpressionSet[] params, it.unive.lisa.analysis.StatementStore<A> expressions) throws it.unive.lisa.analysis.SemanticException- Specified by:
forwardSemanticsAuxin classit.unive.lisa.program.cfg.statement.NaryExpression- Throws:
it.unive.lisa.analysis.SemanticException
-
backwardSemanticsAux
public <A extends it.unive.lisa.analysis.AbstractState<A>> it.unive.lisa.analysis.AnalysisState<A> backwardSemanticsAux(it.unive.lisa.interprocedural.InterproceduralAnalysis<A> interprocedural, it.unive.lisa.analysis.AnalysisState<A> state, it.unive.lisa.analysis.lattices.ExpressionSet[] params, it.unive.lisa.analysis.StatementStore<A> expressions) throws it.unive.lisa.analysis.SemanticException- Overrides:
backwardSemanticsAuxin classit.unive.lisa.program.cfg.statement.NaryExpression- Throws:
it.unive.lisa.analysis.SemanticException
-
hashCode
public int hashCode()
- Overrides:
hashCodein classit.unive.lisa.program.cfg.statement.NaryExpression
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classit.unive.lisa.program.cfg.statement.NaryExpression
-
-