3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-28 19:35:50 +00:00

gauss jordan

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2022-05-09 16:33:05 -07:00
parent 361888f299
commit ad2445e423
8 changed files with 183 additions and 9 deletions

View file

@ -79,4 +79,17 @@ namespace arith {
lp().settings().stats().collect_statistics(st);
if (m_nla) m_nla->collect_statistics(st);
}
char const* solver::bounds_pragma() {
if (!ctx.use_drat())
return nullptr;
m_bounds_pragma.clear();
m_bounds_pragma += "bounds ";
for (sat::literal c : m_core) {
if (c.sign()) m_bounds_pragma += "-";
m_bounds_pragma += std::to_string(c.var());
m_bounds_pragma += " ";
}
return m_bounds_pragma.c_str();
}
}