Fixed missing reset on collected head term vector.

This commit is contained in:
Patrick Lühne 2016-11-24 03:08:36 +01:00
parent 2046edbee3
commit 3fbe8ac407
Signed by: patrick
GPG Key ID: 05F3611E97A70ABF
1 changed files with 3 additions and 0 deletions

View File

@ -27,6 +27,9 @@ struct StatementVisitor
void visit(const Clingo::AST::Rule &rule, const Clingo::AST::Statement &, Context &context)
{
// TODO: implement more nicely
context.headTerms.clear();
auto &outputStream = context.logger.outputStream();
// Concatenate all head terms