diff options
author | Andres Noetzli <andres.noetzli@gmail.com> | 2020-03-18 23:46:50 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-18 23:46:50 -0700 |
commit | d862942f821ea14973207ef538be3326fb11c17c (patch) | |
tree | 80a6b809f84019d9bcd1e0552cea778b10a1e8c8 /test/unit/parser | |
parent | 9c960866c9e71e543c5688aac826a8150c899ca6 (diff) |
Only allow bv2nat/int2bv with BV and integer logic (#4118)
CVC4 supports `bv2nat` and `int2bv` to convert bit-vectors to/from
integers. Those operators are not standard. This commit only enables
those operators when parsing is non-strict and both bit-vectors and
integers are enabled in the logic. To achieve this, the commit
simplifies the handling of logics in the parser: Instead of defining a
separate `Logic` enum in the `Smt2` class, we simply use `LogicInfo`
directly.
Diffstat (limited to 'test/unit/parser')
-rw-r--r-- | test/unit/parser/parser_black.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/test/unit/parser/parser_black.h b/test/unit/parser/parser_black.h index 85b379ac0..a829d9a8d 100644 --- a/test/unit/parser/parser_black.h +++ b/test/unit/parser/parser_black.h @@ -316,9 +316,6 @@ public: void setupContext(Parser& parser) override { - if(dynamic_cast<Smt2*>(&parser) != NULL){ - dynamic_cast<Smt2*>(&parser)->addTheory(Smt2::THEORY_CORE); - } super::setupContext(parser); } |