dlinear
0.0.1
Delta-complete SMT solver for linear programming
|
A new function defined by the user in the VNNLIB language using the define-fun
command.
More...
#include <FunctionDefinition.h>
Public Member Functions | |
FunctionDefinition (std::vector< Variable > parameters, Sort return_type, Term body) | |
Construct a new function definition. | |
Term | operator() (const std::vector< Term > &arguments) const |
Call the function with the given arguments. | |
Term | operator() (std::same_as< Term > auto... arguments) const |
Call the function with the given arguments. | |
Private Attributes | |
std::vector< Variable > | parameters_ |
Parameters of the function. | |
Sort | return_type_ |
Return type of the function. | |
Term | body_ |
Body of the function. | |
A new function defined by the user in the VNNLIB language using the define-fun
command.
In the VNNLIB language, a function definition is a way to define a function in terms of its parameters and body. A function defined in this way can be called with the operator() method by providing the required arguments.
Definition at line 40 of file FunctionDefinition.h.
dlinear::vnnlib::FunctionDefinition::FunctionDefinition | ( | std::vector< Variable > | parameters, |
Sort | return_type, | ||
Term | body ) |
Construct a new function definition.
The function will accept parameters of the given types and return a value of the given type when called.
parameters | parameters of the function |
return_type | return type of the function |
body | body of the function |
Definition at line 14 of file FunctionDefinition.cpp.
Call the function with the given arguments.
arguments | arguments to the function |
Definition at line 19 of file FunctionDefinition.cpp.
|
inline |
Call the function with the given arguments.
arguments | arguments to the function |
Definition at line 63 of file FunctionDefinition.h.