Nikolaj Bjorner
cd0d52acec
using C++11 features to simplify for-loops
2022-11-23 11:37:23 +07:00
Nikolaj Bjorner
5c5673bc09
make sure parser context within solver object has its parameters updated
...
this is to enable use cases like:
```
from z3 import *
s = Solver()
OnClause(s, print)
s.set("solver.proof.check", False)
s.from_file("../satproof.smt2")
```
instead of setting global parameters before the proof replay is initialized.
2022-11-23 11:37:23 +07:00
Jakob Rath
e4999b07aa
Remove active flag from constraint
...
Superseded by boolean assignment and pwatch
2022-11-22 14:45:51 +01:00
Jakob Rath
da762700d6
quot_rem
2022-11-22 14:19:35 +01:00
Jakob Rath
85a633a3e0
Update resolve_value
2022-11-22 13:47:31 +01:00
Jakob Rath
a144a09ede
Propagation must be justified by a prefix of Gamma
2022-11-22 13:42:31 +01:00
Jakob Rath
33ea8d6e57
viable conflict also depends on vars
2022-11-22 13:40:29 +01:00
Clemens Eisenhofer
2882b92d3b
Fixed logging in Release-mode
2022-11-21 17:47:47 +01:00
Jakob Rath
6e72a97727
Refactor assignment and search state
2022-11-21 17:25:15 +01:00
Clemens Eisenhofer
b116d5ac9e
Fixed assignment bug for shifts/band
2022-11-21 16:40:28 +01:00
Clemens Eisenhofer
0341851958
Deal with special case that coefficients are multiples directly (Without calculating the symbolic inverse)
2022-11-21 14:36:01 +01:00
Clemens Eisenhofer
7cb87df00c
Bug fix; may not rewrite inequality
2022-11-21 11:34:23 +01:00
Clemens Eisenhofer
133f3d0a02
Evaluate bitwise operations on values
2022-11-21 09:38:53 +01:00
Clemens Eisenhofer
5c3180562d
Some more ways of calculating the inverse
2022-11-21 09:19:17 +01:00
Nuno Lopes
477b90228e
fix #6460 : crash in mk_to_ieee_bv_i
2022-11-20 19:19:12 +00:00
Nuno Lopes
0445d6f264
FPA->BV fix unused vars
2022-11-20 19:03:32 +00:00
Clemens Eisenhofer
5240a8382a
Make it compile again
2022-11-20 17:34:37 +01:00
Clemens Eisenhofer
4f4d56eb91
Added alternative way of calculating number of trailing zeros + hamming distance
2022-11-20 17:25:04 +01:00
Clemens Eisenhofer
98d572b48b
First try to generalize variable elimination
2022-11-20 11:35:12 +01:00
Nikolaj Bjorner
b9f34286a7
generalize macro head detection and elaboration
2022-11-20 11:36:45 +07:00
Nikolaj Bjorner
fcaa85d7a8
#6456 - elaborate on error message
2022-11-20 11:27:39 +07:00
Nikolaj Bjorner
86f3702403
prevent re-declaration of enumeration sort names
...
preventing redeclaration of all ADT cases is not part of this update.
2022-11-19 19:46:34 +07:00
Nikolaj Bjorner
c3c45f495a
add some comments to elim_predicates
2022-11-19 19:45:25 +07:00
Nikolaj Bjorner
251d49d133
remove outdated comment
2022-11-19 18:55:30 +07:00
Nikolaj Bjorner
3f10933225
remove VERBOSE 0
2022-11-19 18:55:01 +07:00
Nikolaj Bjorner
771157696b
new simplifier/tactic
...
eliminate_predicates finds macros and eliminates predicates from formulas as pre-processing.
2022-11-19 18:51:20 +07:00
Nikolaj Bjorner
d735faae4e
add isolated hide/add model converter functions
2022-11-19 18:50:37 +07:00
Nikolaj Bjorner
a81a5ec68c
add virtual function requirement to dependent_expr_state
2022-11-19 18:46:31 +07:00
Nikolaj Bjorner
dcc995f0e5
code simplification
2022-11-19 18:45:54 +07:00
Nikolaj Bjorner
41b40c3a51
remove dead code
2022-11-19 18:45:07 +07:00
Nikolaj Bjorner
c2e9016d04
display model-add parameters in correct order
2022-11-19 18:44:52 +07:00
Nikolaj Bjorner
ba68652c72
add destructive equality resolution to existentials
2022-11-19 18:43:46 +07:00
Nikolaj Bjorner
7da91f4313
allow printing declarations with reverse variable order
2022-11-19 18:43:21 +07:00
Jakob Rath
022c06f75d
pdd::subst_get
2022-11-18 15:14:38 +01:00
Jakob Rath
adc9f7abe4
Add basic implementation of left shift
2022-11-17 17:37:52 +01:00
Jakob Rath
68707eefe7
Fix lshr axioms
2022-11-17 17:37:52 +01:00
Jakob Rath
80a2ac64de
Remove tst_polysat_argv
2022-11-17 17:37:52 +01:00
Jakob Rath
81150f433a
test
2022-11-17 17:37:52 +01:00
Jakob Rath
d9cb06114e
Print partial test results table on interrupt
2022-11-17 17:37:52 +01:00
Jakob Rath
f12ae0af12
clause_builder: rename push to insert
2022-11-17 17:37:52 +01:00
Jakob Rath
dbe814d568
Add forbidden interval lemma separately
2022-11-17 15:00:16 +01:00
Jakob Rath
b4ee8cef1a
Add helper for creating op_constraints
2022-11-17 12:59:37 +01:00
Jakob Rath
38a43bd087
Remove conflict_kind
2022-11-17 12:25:28 +01:00
Jakob Rath
00e8c53f9a
Remove unused code
2022-11-17 12:22:40 +01:00
Jakob Rath
097454cf37
Fix eval_lshr
2022-11-17 11:47:12 +01:00
Nikolaj Bjorner
59b7845c7d
reset visited (fast mark) to not clash with occurs
2022-11-17 17:36:21 +09:00
Nikolaj Bjorner
6662afdd26
perf improvements to solve-eqs and euf-completion
2022-11-16 22:15:02 -08:00
Jakob Rath
2c4e3184d7
For now, do not delete variables.
2022-11-16 15:49:58 +01:00
Nikolaj Bjorner
2c7799939e
wip - tuning and fixes to euf-completion
2022-11-16 03:47:38 -08:00
Nikolaj Bjorner
98fc8c99db
add shortcut to equality mk utility
2022-11-16 03:47:01 -08:00