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

fix sign for binary propagation hints

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2022-05-29 10:32:05 -07:00
parent bffa7ff2f6
commit cb279fba2b
3 changed files with 8 additions and 4 deletions

View file

@ -238,8 +238,8 @@ namespace arith {
sat::proof_hint* bound_params = nullptr;
if (ctx.use_drat()) {
bound_params = &m_farkas2;
m_farkas2.m_literals[0] = std::make_pair(rational(1), l1);
m_farkas2.m_literals[1] = std::make_pair(rational(1), l2);
m_farkas2.m_literals[0] = std::make_pair(rational(1), ~l1);
m_farkas2.m_literals[1] = std::make_pair(rational(1), ~l2);
}
add_clause(l1, l2, bound_params);
};