Cvc5OptionInfo
This struct encapsulates all the information associated with a configuration
option. It can be retrieved via cvc5_get_option_info()
and allows to query any configuration information associated with an option.
The kind of an option info object is defined as enum
Cvc5OptionInfoKind. Encapsulated values can be queried depending on
the kind.
-
enum Cvc5OptionInfoKind
Values:
-
enumerator CVC5_OPTION_INFO_VOID
The empty option info, does not hold value information.
-
enumerator CVC5_OPTION_INFO_BOOL
Information for option with boolean option value.
-
enumerator CVC5_OPTION_INFO_STR
Information for option with string option value.
-
enumerator CVC5_OPTION_INFO_INT64
Information for option with int64 option value.
-
enumerator CVC5_OPTION_INFO_UINT64
Information for option with uint64 option value.
-
enumerator CVC5_OPTION_INFO_DOUBLE
Information for option with double value.
-
enumerator CVC5_OPTION_INFO_MODES
Information for option with option modes.
-
enumerator CVC5_OPTION_INFO_VOID
-
struct Cvc5OptionInfo
Holds information about a specific option, including its name, its aliases, whether the option was explicitly set by the user, and information concerning its value. It can be obtained via
cvc5_get_option_info()and allows for a more detailed inspection of options thancvc5_get_option(). Union memberinfoholds any of the following alternatives:Neither of the following if the option holds no value (or the value has no native type). In that case, the kind of the option will be denoted as #CVC5_OPTION_INFO_VOID.
Struct
BoolInfoif the option is of typebool. It holds the current value and the default value of the option. Option kind is denoted as #CVC5_OPTION_INFO_BOOL.Struct
StringInfoif the option is of typeconst char*. It holds the current value and the default value of the option. Option kind is denoted as #CVC5_OPTION_INFO_STR.Struct
IntInfoif the option is of typeint64_t. It holds the current, default, minimum and maximum value of the option. Option kind is denoted as #CVC5_OPTION_INFO_INT64.Struct
UIntInfoif the option is of typeuint64_t. It holds the current, default, minimum and maximum value of the option. Option kind is denoted as #CVC5_OPTION_INFO_UINT64.Struct
DoubleInfoif the option is of typedouble. It holds the current, default, minimum and maximum value of the option. Option kind is denoted as #CVC5_OPTION_INFO_DOUBLE.Struct
ModeInfoif the option has modes. It holds the current and default valuesof the option, as well as a list of valid modes. Option kind is denoted as #CVC5_OPTION_INFO_MODES.
Note
A typedef alias with the same name is also available for convenience.
Public Members
-
Cvc5OptionInfoKind kind
The kind of the option info.
-
const char *name
The option name
-
size_t num_aliases
The number of option name aliases
-
const char **aliases
The option name aliases
-
size_t num_no_supports
The number of unsupported features
-
const char **no_supports
The unsupported features
-
bool is_set_by_user
True if the option was explicitly set by the user
-
bool is_expert
True if the option is an expert option
Warning
This field is deprecated and replaced by
category. It will be removed in a future release.
-
bool is_regular
True if the option is a regular option
Warning
This field is deprecated and replaced by
category. It will be removed in a future release.
-
Cvc5OptionCategory category
The category of this option.
-
void *d_cpp_info
The associated C++ info. For internal use, only.
-
struct BoolInfo
Information for boolean option values.
-
struct DoubleInfo
Information for double values.
-
struct IntInfo
Information for int64 values.
-
struct ModeInfo
Information for mode option values.
-
struct StringInfo
Information for string option values.
-
struct UIntInfo
Information for uint64 values.
-
const char *cvc5_option_info_to_string(const Cvc5OptionInfo *info)
Get a string representation of a given option info.
Note
The returned char* pointer is only valid until the next call to this function.
- Parameters:
info – The option info.
- Returns:
The string representation.