3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-27 10:55:50 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-03-30 15:18:37 -07:00
parent 8a961a5ce9
commit a6e7ed039c
2 changed files with 8 additions and 5 deletions

View file

@ -377,9 +377,11 @@ namespace {
for (expr* c : core) {
expr_ref name(c, m);
SASSERT(m_name2assertion.contains(name));
expr_ref assrtn(m_name2assertion.find(name), m);
collect_pattern_fds(assrtn, pattern_fds);
expr* f = nullptr;
if (m_name2assertion.find(name, f)) {
expr_ref assrtn(f, m);
collect_pattern_fds(assrtn, pattern_fds);
}
}
if (!pattern_fds.empty()) {

View file

@ -1781,8 +1781,9 @@ void mpz_manager<SYNCH>::display_hex(std::ostream & out, mpz const & a, unsigned
}
static void display_binary_data(std::ostream &out, uint64_t val, uint64_t numBits) {
for (uint64_t shift = numBits; shift-- > 64ull; ) out << "0";
for (uint64_t shift = std::min(64ull, numBits); shift-- > 0; ) {
for (uint64_t shift = numBits; shift-- > 64ull; ) out << "0";
if (numBits > 64) numBits = 64;
for (uint64_t shift = numBits; shift-- > 0; ) {
if (val & (1ull << shift)) {
out << "1";
} else {