mirror of
https://github.com/Z3Prover/z3
synced 2025-08-18 01:02:15 +00:00
This commit is contained in:
parent
c3549ec784
commit
52032b9ef8
9 changed files with 38 additions and 21 deletions
|
@ -15,6 +15,7 @@ Author:
|
|||
|
||||
--*/
|
||||
|
||||
#include "ast/ast_pp.h"
|
||||
#include "ast/rewriter/seq_eq_solver.h"
|
||||
#include "ast/bv_decl_plugin.h"
|
||||
|
||||
|
@ -675,7 +676,7 @@ namespace seq {
|
|||
if (rs.size() > i) {
|
||||
unsigned diff = rs.size() - (i + 1);
|
||||
for (unsigned j = 0; same && j < i; ++j)
|
||||
same = !m.are_distinct(ls[j], rs[diff + j]);
|
||||
same = !m.are_distinct(ls[j], rs[diff + j]);
|
||||
}
|
||||
// ls = x ++ rs ++ y, diff = |x|
|
||||
else {
|
||||
|
@ -704,8 +705,9 @@ namespace seq {
|
|||
bool same = true;
|
||||
// ls = x ++ rs' && rs = rs' ++ y, diff = |x|
|
||||
if (rs.size() > i) {
|
||||
for (unsigned j = 1; same && j <= i; ++j)
|
||||
same = !m.are_distinct(ls[diff + j], rs[j]);
|
||||
for (unsigned j = 1; same && j <= i; ++j) {
|
||||
same = !m.are_distinct(ls[diff + j], rs[j]);
|
||||
}
|
||||
}
|
||||
// ls = x ++ rs ++ y, diff = |x|
|
||||
else {
|
||||
|
@ -715,6 +717,7 @@ namespace seq {
|
|||
if (same)
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue