public interface ContractFactory
This factory is to create new instances of function contract components.
-
Method Summary
Modifier and TypeMethodDescriptionnewAnyactEvent(CIVLSource source) Creates a new instance of\anyacteventnewCallEvent(CIVLSource source, CIVLFunction function, List<Expression> arguments) Creates a new instance of call event.newCompositeEvent(CIVLSource source, CompositeEvent.CompositeEventOperator op, DependsEvent left, DependsEvent right) Creates a new instance of composite event.newFunctionBehavior(CIVLSource source) Creates a new function behavior.newFunctionContract(CIVLSource source, Scope scope) Creates a new function contract.newMemoryEvent(CIVLSource source, DependsEvent.DependsEventKind kind, Set<Expression> memoryUnits) Creates a new instance of memory event of the given kind.newNamedFunctionBehavior(CIVLSource source, String name) Creates a new named function behaviornewNoactEvent(CIVLSource source) Creates a new instance of\noactevent
-
Method Details
-
newFunctionBehavior
Creates a new function behavior.- Parameters:
source- the source of the function behavior- Returns:
-
newNamedFunctionBehavior
Creates a new named function behavior- Parameters:
source-name-- Returns:
-
newFunctionContract
Creates a new function contract.- Parameters:
source-- Returns:
-
newCallEvent
Creates a new instance of call event.- Parameters:
function-arguments-- Returns:
-
newCompositeEvent
CompositeEvent newCompositeEvent(CIVLSource source, CompositeEvent.CompositeEventOperator op, DependsEvent left, DependsEvent right) Creates a new instance of composite event.- Parameters:
source-op-right-- Returns:
-
newMemoryEvent
MemoryEvent newMemoryEvent(CIVLSource source, DependsEvent.DependsEventKind kind, Set<Expression> memoryUnits) Creates a new instance of memory event of the given kind.- Parameters:
source-kind- the kind of this memory event, which could be either READ, WRITE or REACH.memoryUnits-- Returns:
-
newAnyactEvent
Creates a new instance of\anyactevent- Parameters:
source-- Returns:
-
newNoactEvent
Creates a new instance of\noactevent- Parameters:
source-- Returns:
-