3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-24 03:57:51 +00:00

add unit test for join-project

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2014-10-08 17:17:14 -07:00
parent 7b944118dd
commit 2362e01a9f
5 changed files with 94 additions and 18 deletions

View file

@ -1071,6 +1071,9 @@ namespace datalog {
// TBD: replace this by "join" given below.
virtual relation_base* operator()(relation_base const& t1, relation_base const& t2) {
#if 0
return join(get(t1), get(t2));
#else
udoc_relation *joined = get(m_joiner(t1, t2));
relation_base* result = 0;
if (joined->fast_empty()) {
@ -1082,6 +1085,7 @@ namespace datalog {
}
joined->deallocate();
return result;
#endif
}
private: