summaryrefslogtreecommitdiff
path: root/test/unit/parser
diff options
context:
space:
mode:
authorAndres Noetzli <andres.noetzli@gmail.com>2020-03-18 23:46:50 -0700
committerGitHub <noreply@github.com>2020-03-18 23:46:50 -0700
commitd862942f821ea14973207ef538be3326fb11c17c (patch)
tree80a6b809f84019d9bcd1e0552cea778b10a1e8c8 /test/unit/parser
parent9c960866c9e71e543c5688aac826a8150c899ca6 (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.h3
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);
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback