3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-06 17:44:08 +00:00
This commit is contained in:
Nikolaj Bjorner 2023-02-18 14:10:58 -08:00
parent 828ff98c77
commit f66a082de9
2 changed files with 3 additions and 1 deletions

1
.gitignore vendored
View file

@ -22,6 +22,7 @@ ocamlz3
# Directories with generated code and documentation
release/*
build/*
trace/*
build-dist/*
dist/*
src/out/*

View file

@ -185,7 +185,7 @@ namespace bv {
m_args.push_back(arg);
continue;
}
if (!m_bv.is_extract(arg) && m_bound.find(arg, b)) {
if (!m_bv.is_extract(arg) && m_bound.find(arg, b) && b.lo() <= b.hi()) {
unsigned num_bits = b.hi().get_num_bits();
unsigned bv_size = m_bv.get_bv_size(arg);
if (0 < num_bits && num_bits < bv_size) {
@ -202,6 +202,7 @@ namespace bv {
if (simplified) {
result = m.mk_app(to_app(t)->get_decl(), m_args);
TRACE("bv", tout << mk_pp(t, m) << " -> " << result << "\n");
return true;
}