diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2020-06-05 17:57:25 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-05 17:57:25 -0500 |
commit | c8015e6dc858a3fd13234ec4acb22c80cb339ddc (patch) | |
tree | 0a5e7c4fc112f3753eae8dc8e6283933373aa840 /src/options | |
parent | 5c4b9e1a6ffa97a0a1f8af41069f29764eb6c74b (diff) |
Datatypes with nested recursion are not handled in TheoryDatatypes unless option is set (#3707)
Towards experimental support for non-simply recursive datatypes (https://github.com/ajreynol/CVC4/tree/dtNonSimpleRec). Builds a check for non-simple recursion in the DType class. If a term of a datatype type is registered to TheoryDatatypes for a datatype that has nested recursion, we throw a LogicException unless the option dtNestedRec is set to true. Also includes a bug discovered in the TypeMatcher utility and another in expr::getComponentTypes.
It also adds a unit test using the new API for a simple parametric datatype example as well, not related to nested recursion, as this was previously missing.
Diffstat (limited to 'src/options')
-rw-r--r-- | src/options/datatypes_options.toml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/options/datatypes_options.toml b/src/options/datatypes_options.toml index ac371efeb..19434fa33 100644 --- a/src/options/datatypes_options.toml +++ b/src/options/datatypes_options.toml @@ -68,6 +68,15 @@ header = "options/datatypes_options.h" help = "when applicable, blast splitting lemmas for all variables at once" [[option]] + name = "dtNestedRec" + category = "regular" + long = "dt-nested-rec" + type = "bool" + default = "false" + read_only = true + help = "allow nested recursion in datatype definitions" + +[[option]] name = "dtSharedSelectors" category = "regular" long = "dt-share-sel" |