Package it.unive.lisa.imp.expressions
Class IMPAssert
- java.lang.Object
-
- it.unive.lisa.program.cfg.statement.Statement
-
- it.unive.lisa.program.cfg.statement.NaryStatement
-
- it.unive.lisa.program.cfg.statement.UnaryStatement
-
- it.unive.lisa.imp.expressions.IMPAssert
-
- 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 IMPAssert extends it.unive.lisa.program.cfg.statement.UnaryStatement
An assertion in an IMP program.
-
-
Constructor Summary
Constructors Constructor Description IMPAssert(it.unive.lisa.program.cfg.CFG cfg, java.lang.String sourceFile, int line, int col, it.unive.lisa.program.cfg.statement.Expression expression)
Builds the assertion.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
compareSameClassAndParams(it.unive.lisa.program.cfg.statement.Statement o)
<A extends it.unive.lisa.analysis.AbstractState<A>>
it.unive.lisa.analysis.AnalysisState<A>fwdUnarySemantics(it.unive.lisa.interprocedural.InterproceduralAnalysis<A> interprocedural, it.unive.lisa.analysis.AnalysisState<A> state, it.unive.lisa.symbolic.SymbolicExpression expr, it.unive.lisa.analysis.StatementStore<A> expressions)
-
Methods inherited from class it.unive.lisa.program.cfg.statement.UnaryStatement
backwardSemanticsAux, bwdUnarySemantics, forwardSemanticsAux, getSubExpression
-
Methods inherited from class it.unive.lisa.program.cfg.statement.NaryStatement
accept, backwardSemantics, compareSameClass, equals, forwardSemantics, getConstructName, getOrder, getStatementEvaluatedAfter, getStatementEvaluatedBefore, getSubExpressions, hashCode, toString
-
Methods inherited from class it.unive.lisa.program.cfg.statement.Statement
compareTo, getCFG, getEvaluationPredecessor, getEvaluationSuccessor, getLocation, stopsExecution, throwsError
-
-
-
-
Constructor Detail
-
IMPAssert
public IMPAssert(it.unive.lisa.program.cfg.CFG cfg, java.lang.String sourceFile, int line, int col, it.unive.lisa.program.cfg.statement.Expression expression)
Builds the assertion.- Parameters:
cfg
- theCFG
where 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 definedexpression
- the expression being asserted
-
-
Method Detail
-
compareSameClassAndParams
protected int compareSameClassAndParams(it.unive.lisa.program.cfg.statement.Statement o)
- Specified by:
compareSameClassAndParams
in classit.unive.lisa.program.cfg.statement.NaryStatement
-
fwdUnarySemantics
public <A extends it.unive.lisa.analysis.AbstractState<A>> it.unive.lisa.analysis.AnalysisState<A> fwdUnarySemantics(it.unive.lisa.interprocedural.InterproceduralAnalysis<A> interprocedural, it.unive.lisa.analysis.AnalysisState<A> state, it.unive.lisa.symbolic.SymbolicExpression expr, it.unive.lisa.analysis.StatementStore<A> expressions) throws it.unive.lisa.analysis.SemanticException
- Specified by:
fwdUnarySemantics
in classit.unive.lisa.program.cfg.statement.UnaryStatement
- Throws:
it.unive.lisa.analysis.SemanticException
-
-