From 0383980050ab86b1a4f7f265d9c8527e627ef971 Mon Sep 17 00:00:00 2001 From: Andres Noetzli Date: Wed, 13 Nov 2019 14:14:09 -0800 Subject: Allow (set-logic ...) after (reset) (#3457) Fixes #3353. #3062 introduced a flag that tracks whether we have seen a `(set-logic ...)` command to improve the handling of `--force-logic`. However, the flag was not set to `false` when `(reset)` was called. This commit fixes the issue. --- src/parser/smt2/smt2.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/parser/smt2/smt2.cpp') diff --git a/src/parser/smt2/smt2.cpp b/src/parser/smt2/smt2.cpp index f9942049a..8031e81e6 100644 --- a/src/parser/smt2/smt2.cpp +++ b/src/parser/smt2/smt2.cpp @@ -610,6 +610,7 @@ void Smt2::pushDefineFunRecScope( void Smt2::reset() { d_logicSet = false; + d_seenSetLogic = false; d_logic = LogicInfo(); operatorKindMap.clear(); d_lastNamedTerm = std::pair(); -- cgit v1.2.3