mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 09:05: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:
parent
8fc6789955
commit
37cb5b9597
2 changed files with 51 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue