Lev Nachmanson
0dcebde060
replace s() to lp() it theory_lra
...
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
2020-01-28 10:04:21 -08:00
Lev Nachmanson
1abb109faf
move the indices housekeeping from theory_lra to lar_solver
...
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
2020-01-28 10:04:21 -08:00
Lev Nachmanson
76e1aeb2bb
move the indices housekeeping from theory_lra to lar_solver
...
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
2020-01-28 10:04:21 -08:00
Lev Nachmanson
63e62ec1bb
stronger lemmas to avoid branching
...
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
2020-01-28 10:04:21 -08:00
Lev Nachmanson
b2943c34f1
create class lemma
...
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
2020-01-28 10:04:21 -08:00
Lev Nachmanson
34137cfa0a
a bug fix in internalize_atom, by NB
...
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
2020-01-28 10:04:21 -08:00
Lev
9aca3bc239
change the signature of nla_solver::check() to accept lemma and explanation as vectors
...
Signed-off-by: Lev <levnach@hotmail.com>
2020-01-28 10:04:21 -08:00
Lev
0d5ca4edfe
more efficient sign lemma
...
Signed-off-by: Lev <levnach@hotmail.com>
2020-01-28 10:04:21 -08:00
Lev
3192db64a1
Nikolaj's changes is mk_eq
...
Signed-off-by: Lev <levnach@hotmail.com>
2020-01-28 10:04:21 -08:00
Lev
f3f9372eac
fixes after the rebase
...
Signed-off-by: Lev <levnach@hotmail.com>
2020-01-28 10:04:21 -08:00
Lev
54f447d118
change the signature of int_solver::check by adding explanation* parameter
...
Signed-off-by: Lev <levnach@hotmail.com>
2020-01-28 10:04:21 -08:00
Lev
23a7e5e302
a bug fix for handling infeasibilities created in add_var_bound()
...
Signed-off-by: Lev <levnach@hotmail.com>
2020-01-28 10:04:21 -08:00
Lev
2993453798
remove explanation.reset() and fixes in add_var_bound()
...
Signed-off-by: Lev <levnach@hotmail.com>
2020-01-28 10:04:21 -08:00
Lev Nachmanson
1d51c5689e
roll back add_var api
...
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
2020-01-28 10:04:21 -08:00
Lev
4fa38b5aa2
process conflicts immediately aftep add_var_bound()
...
Signed-off-by: Lev <levnach@hotmail.com>
2020-01-28 10:04:21 -08:00
Lev
c9be7b89c1
change the add_var_bound() signature
...
Signed-off-by: Lev <levnach@hotmail.com>
2020-01-28 10:04:21 -08:00
Lev
1c8f28c2e9
check m.canceled() more often
...
Signed-off-by: Lev <levnach@hotmail.com>
2020-01-28 10:04:21 -08:00
Lev
efeeabe127
check the lar_solver status more often
...
Signed-off-by: Lev <levnach@hotmail.com>
2020-01-28 10:04:21 -08:00
Lev Nachmanson
c95f2a5bc6
Nikolaj's fix for constants
...
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
2020-01-28 10:04:21 -08:00
Lev
ca5666cabd
add diagnostics for registering vars in lar_solver
...
Signed-off-by: Lev <levnach@hotmail.com>
2020-01-28 10:04:21 -08:00
Lev
025e4b90ca
add a constant to the context trail
...
Signed-off-by: Lev <levnach@hotmail.com>
2020-01-28 10:04:21 -08:00
Lev
fde1cd23d5
small changes
...
Signed-off-by: Lev <levnach@hotmail.com>
2020-01-28 10:04:21 -08:00
Lev Nachmanson
c1e0c79a69
integrating Nikolaj's changes
...
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
2020-01-28 10:04:21 -08:00
Lev Nachmanson
1ed9639898
Nikolaj's changes
...
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
2020-01-28 10:04:21 -08:00
Lev
ee2aed38e8
switch pos ( sign) when creating literals for EQ and NE
...
Signed-off-by: Lev <levnach@hotmail.com>
2020-01-28 10:04:21 -08:00
Nikolaj Bjorner
545bfff827
take coefficient into account ( #87 )
...
* take coefficient into account
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
* take coefficient into account
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2020-01-28 10:04:21 -08:00
Lev
a82316a172
rebase with z3prover
...
Signed-off-by: Lev <levnach@hotmail.com>
2020-01-28 10:04:21 -08:00
Lev
d301a9c403
rebase with z3prover
...
Signed-off-by: Lev <levnach@hotmail.com>
2020-01-28 10:04:21 -08:00
Lev
96aaa8638e
rename niil to nla
...
Signed-off-by: Lev <levnach@hotmail.com>
2020-01-28 10:04:21 -08:00
Lev
56ae577c97
rename the files
...
Signed-off-by: Lev <levnach@hotmail.com>
2020-01-28 10:04:21 -08:00
Lev
c09c944922
rebase with upstream
...
Signed-off-by: Lev <levnach@hotmail.com>
2020-01-28 10:04:21 -08:00
Lev Nachmanson
0be5fc5693
revert to a previous state: avoid adding branches for free vars when creating a gomory cut
...
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
2020-01-28 10:04:21 -08:00
Nikolaj Bjorner
2b18627fa1
fix assertions ( #83 )
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2020-01-28 10:04:21 -08:00
Nikolaj Bjorner
d913a55dfb
reset m_explanation ( #82 )
...
* reset m_explanation
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
* streamline handling of m_explanation
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2020-01-28 10:04:21 -08:00
Lev Nachmanson
064cf9e983
allow gomory cut for a row with free non-basic vars
...
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
2020-01-28 10:04:21 -08:00
Lev Nachmanson
de4a2b3ea7
compiles and runs, need to restore niil_solver.cpp later
...
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
2020-01-28 10:04:21 -08:00
Nikolaj Bjorner
0d9aff9834
added bounds ( #81 )
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2020-01-28 10:04:21 -08:00
Nikolaj Bjorner
64ecefdf07
tinker with bound atom ( #80 )
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2020-01-28 10:04:21 -08:00
Nikolaj Bjorner
a9a45b7b47
change conflict to th_axiom ( #78 )
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2020-01-28 10:04:21 -08:00
Lev Nachmanson
10871ad76e
towards basic newtral check
...
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
2020-01-28 10:04:21 -08:00
Lev Nachmanson
08d891891e
handle unsorted monomials
...
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
2020-01-28 10:04:21 -08:00
Nikolaj Bjorner
88ea90fbb9
handle output from niil_solver ( #77 )
...
* handle output from niil_solver
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
* add proper equality handling
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2020-01-28 10:04:21 -08:00
Lev Nachmanson
49ae42cebd
produce the first lemma in niil_solver
...
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
2020-01-28 10:04:21 -08:00
Lev Nachmanson
0911fc2bda
use explanation.h for conflict explanations everywhere
...
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
2020-01-28 10:04:21 -08:00
Lev Nachmanson
31d44471a1
remove some warnings
...
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
2020-01-28 10:04:21 -08:00
Lev Nachmanson
92b5a9b134
work on niil
...
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
2020-01-28 10:04:21 -08:00
Lev Nachmanson
a86601f7d2
work on niil_solver::check()
...
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
2020-01-28 10:04:21 -08:00
Lev Nachmanson
b6f07e2a23
roll back changes in get_model
...
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
2020-01-28 10:04:21 -08:00
Lev Nachmanson
0dbe8982ce
simplify lar_solver::get_model
...
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
2020-01-28 10:04:21 -08:00
Lev
fa5d10b6dd
work on switcher
...
Signed-off-by: Lev <levnach@hotmail.com>
2020-01-28 10:04:21 -08:00