3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-22 16:45:31 +00:00

fix extract axiom

This commit is contained in:
Jakob Rath 2024-03-12 13:47:23 +01:00
parent 7311af699c
commit 37bf5fefca

View file

@ -1,4 +1,4 @@
/*++
/*++
Copyright (c) 2022 Microsoft Corporation
Module Name:
@ -741,7 +741,7 @@ namespace polysat {
auto gelo = mk_literal(bv.mk_ule(bv.mk_numeral(rational::power_of_two(lo), sz_x), x));
auto name = "extract";
add_axiom(name, { eq0, gelo });
if (hi + 1 == sz_e)
if (hi + 1 == sz_x)
add_axiom(name, { ~eq0, ~gelo });
}