diff options
Diffstat (limited to 'src/smt/command.cpp')
-rw-r--r-- | src/smt/command.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/smt/command.cpp b/src/smt/command.cpp index cfd25fa3b..2a316409e 100644 --- a/src/smt/command.cpp +++ b/src/smt/command.cpp @@ -689,7 +689,8 @@ void SynthFunCommand::toStream(std::ostream& out, nodeVars, d_sort.getTypeNode(), d_isInv, - d_grammar->resolve().getTypeNode()); + d_grammar == nullptr ? TypeNode::null() + : d_grammar->resolve().getTypeNode()); } /* -------------------------------------------------------------------------- */ |