mirror of
https://github.com/Z3Prover/z3
synced 2025-04-06 17:44:08 +00:00
fix #6595
This commit is contained in:
parent
828ff98c77
commit
f66a082de9
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -22,6 +22,7 @@ ocamlz3
|
||||||
# Directories with generated code and documentation
|
# Directories with generated code and documentation
|
||||||
release/*
|
release/*
|
||||||
build/*
|
build/*
|
||||||
|
trace/*
|
||||||
build-dist/*
|
build-dist/*
|
||||||
dist/*
|
dist/*
|
||||||
src/out/*
|
src/out/*
|
||||||
|
|
|
@ -185,7 +185,7 @@ namespace bv {
|
||||||
m_args.push_back(arg);
|
m_args.push_back(arg);
|
||||||
continue;
|
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 num_bits = b.hi().get_num_bits();
|
||||||
unsigned bv_size = m_bv.get_bv_size(arg);
|
unsigned bv_size = m_bv.get_bv_size(arg);
|
||||||
if (0 < num_bits && num_bits < bv_size) {
|
if (0 < num_bits && num_bits < bv_size) {
|
||||||
|
@ -202,6 +202,7 @@ namespace bv {
|
||||||
|
|
||||||
if (simplified) {
|
if (simplified) {
|
||||||
result = m.mk_app(to_app(t)->get_decl(), m_args);
|
result = m.mk_app(to_app(t)->get_decl(), m_args);
|
||||||
|
TRACE("bv", tout << mk_pp(t, m) << " -> " << result << "\n");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue