3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 17:15:31 +00:00

Fixed a bug in udoc_relation's join project

An optimization was applied in too many cases and led to wrong results.

Signed-off-by: Matthias Schlaipfer <t-matsch@microsoft.com>
This commit is contained in:
Matthias Schlaipfer 2015-06-17 16:46:24 +01:00
parent d3db21ccde
commit 32a00a7062
2 changed files with 51 additions and 1 deletions

View file

@ -1065,7 +1065,7 @@ namespace datalog {
t1.get_signature().size() == joined_col_cnt &&
t2.get_signature().size() == joined_col_cnt) {
for (unsigned i = 0; i < removed_col_cnt; ++i) {
if (removed_cols[i] != i)
if (removed_cols[i] != i || cols1[i] != cols2[i])
goto general_fn;
}
return alloc(join_project_and_fn);