3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-28 11:25:51 +00:00

fix initialization/finalization order for bdd

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2021-06-19 23:11:06 -07:00
parent 947ea66cad
commit 4bcfcecbbb
2 changed files with 5 additions and 4 deletions

View file

@ -1009,7 +1009,7 @@ namespace dd {
bool carry = false;
result.push_back(b[0]);
for (unsigned i = 1; i < b.size(); ++i) {
carry |= b[i-1];
carry = carry || b[i-1];
result.push_back(carry ^ b[i]);
}
return result;