Split predicates from their declarations

This refactoring separates predicates from their declarations. The
purpose of this is to avoid duplicating properties specific to the
predicate declaration and not its occurrences in the program.
This commit is contained in:
2018-04-13 20:40:40 +02:00
committed by Patrick Lühne
parent 3ba80e8c9d
commit d0debc6ad1
15 changed files with 187 additions and 242 deletions

View File

@@ -133,7 +133,7 @@ Interval prepareCopy(const Interval &other)
Predicate prepareCopy(const Predicate &other)
{
return Predicate(std::string(other.name), prepareCopy(other.arguments));
return Predicate(other.declaration, prepareCopy(other.arguments));
}
////////////////////////////////////////////////////////////////////////////////////////////////////