- All Superinterfaces:
FunctionBehavior,Sourceable
A named behavior contains a name and assumptions in addition to those
components contained by
FunctionBehavior. It is corresponding to the
named behavior block of an ACSL function contract.-
Method Summary
Modifier and TypeMethodDescriptionReturns the conjunction of all assumptions of this behavior.name()Returns the name of this behavior.voidprint(String prefix, PrintStream out, boolean isDebug) prints this behaviorvoidsetAssumption(Expression assumption) Set the conjunction of all assumptions to this behavior.Methods inherited from interface dev.civl.mc.model.IF.contract.FunctionBehavior
addAssignsMemoryUnit, addDependsEvent, addPostcondition, addPrecondition, addReadsMemoryUnit, assignsMemoryUnits, assignsNothing, clearDependsEvents, dependsAnyact, dependsEvents, dependsNoact, ensurances, getWaitsforList, numAssignsMemoryUnits, numDependsEvents, numEnsurances, numReadsMemoryUnits, numRequirements, readsMemoryUnits, readsNothing, requirements, setAssingsNothing, setDependsAnyact, setDependsNoact, setReadsNothing, setWaitsforListMethods inherited from interface dev.civl.mc.model.IF.Sourceable
getSource, setCIVLSource
-
Method Details
-
name
String name()Returns the name of this behavior.- Returns:
-
print
prints this behavior- Specified by:
printin interfaceFunctionBehavior- Parameters:
prefix-out-isDebug-
-
assumptions
Expression assumptions()Returns the conjunction of all assumptions of this behavior.- Returns:
-
setAssumption
Set the conjunction of all assumptions to this behavior.- Parameters:
assumption-
-