summaryrefslogtreecommitdiff
path: root/src/theory/arith
AgeCommit message (Collapse)Author
2015-06-15Fixing an assertion Constraint::assertionFringe(...) to allow ↵Tim King
hasTrichotomyProof().
2015-06-14Handing the case in replay where a cut is directly in conflict with an ↵Tim King
existing bound.
2015-06-14Fixes for shared term normalization in replay for constraint construction.Tim King
2015-06-14Turning off aggressive arith ite simplifications during incremental solving.Tim King
2015-06-13Restricting TheoryArith to computeRelevantTerms.Tim King
2015-06-13A return value for an ApproxGLPK::loadVB() failure case was incorrect.Tim King
2015-06-12In TheoryArithPrivate::vectorToIntHoleConflict, adding check for whether or ↵Tim King
not negBack is already in conflict. This is needed as it can be called multiple times on the same constraint.
2015-05-28added options for controlling resource step-count for various solving stagesLiana Hadarean
2015-04-21Changes needed to compile at Google, plus some bug fixes from Google.Clark Barrett
2015-04-18Farkas proof coefficients.Tim King
This commit adds tracking of Farkas coefficients to proof enabled builds in the theory of linear real arithmetic when proofs are enabled. There could be some performance changes due to subtly different search paths being taken. Additional bug fixes: - Polynomial::exactDivide did not satisfy preconditions to the Monomial constructor. To prevent future problems, Monomials should now be made via one of the mkMonomial functions. - Fixes a bug in SumOfInfeasibilitiesSPD::greedyConflictSubsets(). There was a way to use a row twice in the construction of the conflicts. This was violating an assumption in the Tableau when constructing the intermediate rows. Constraints: - To enable proofs, all conflicts and propagations are designed to go through the Constraint system before they are converted to externally understandable conflicts and propagations in the form of Node. - Constraints must now be given a reason for marking them as true that corresponds to a proof. - Constraints should now be marked as being true by one of the impliedbyX functions. - Each impliedByX function has an ArithProofType associated with it. - Each call to an impliedByX function stores a context dependent ConstraintRule object to track the proof. - After marking the node as true the caller should either try to propagate the constraint or raise a conflict. - There are no more special cases for marking a node as being true when its negation has a proof vs. when the negation does not have a proof. One must now explicitly pass in a inConflict flag to the impliedByX (and similar functions). For example,this is now longer both: void setAssertedToTheTheory(TNode witness); void setAssertedToTheTheoryWithNegationTrue(TNode witness); There is just: void setAssertedToTheTheory(TNode witness, bool inConflict);
2015-03-25change const are triggers from false to true in equality enginesKshitij Bansal
2014-12-26Adding an option to the equality engine constructor to treat all constants asDejan Jovanovic
trigger terms. I've disabled constants as triggers for all equality engines except for the shared terms engine where it is needed.
2014-11-17Short-circuit in TheoryArithPrivate::check(), care of Tim.Morgan Deters
2014-11-17New, uniform checkTime statistic for all theories (as discussed in meeting).Morgan Deters
2014-08-24improvements to sets sharingKshitij Bansal
* Add TheorySets::getEqualityStatus(TNode, TNode) * Add TheorySets::getModelValue(TNode)
2014-07-01Update copyrights.Morgan Deters
2014-06-25Fixing the previous bugfix.Tim King
2014-06-24Alternative lazier heuristic for assertion rewriting.Tim King
2014-06-24Fixing a soundness bug in arithmetic and a roubustness problem in rings.Tim King
2014-06-21Slightly-improved kinds documentation for builtin, Boolean, arrays, strings, ↵Morgan Deters
and arith.
2014-06-19Fix GLPK builds: correct access specifier on cut classes.Morgan Deters
2014-06-19disable unate lemmas when using incremental modeKshitij Bansal
2014-06-19Fix for pre-C++11 is_sorted().Morgan Deters
2014-06-19Final preparations for arithmetic for building with libc++.Morgan Deters
2014-06-19This commit adds a priority queue implementation. This is to avoid ↵Tim King
compilation troubles with libc++.
2014-06-19Clean up glpk detection a little, fix a detection bug.Morgan Deters
2014-06-10Merging Tim's pseudoboolean work from his fmcad14 branch.Tim King
Signed-off-by: Morgan Deters <mdeters@cs.nyu.edu>
2014-06-06Patch for the subtype theoryof mode to make the equalities over disequal ↵Tim King
types get sent to the theory of the type. Adding a new test case for bug 569. Fixes to the normal form of arithmetic so that real terms are before integer terms.
2014-05-12Merging in additional glpk options and statistics from CAV submission.Tim King
2014-04-30T-entailment work, and QCF (quant conflict find) work that uses it.Tim King
This commit includes work from the past month on the T-entailment check infrastructure (due to Tim), an entailment check for arithmetic (also Tim), and QCF work that uses T-entailment (due to Andrew Reynolds). Signed-off-by: Morgan Deters <mdeters@cs.nyu.edu>
2014-04-29Fix for (user) context-dependence of arith TO_INT/IS_INT rewriting and ↵Morgan Deters
rewrite-divk.
2014-04-17simplify mkSkolem naming system: don't use $$Kshitij Bansal
Short summary: By default NODEID is appeneded, just continue doing what you were, just don't add the _$$ at the end. Long summary: Before this commit there were four (yes!) ways to specify the names for new skolems, which result in names as given below 1) mkSkolem("name", ..., SKOLEM_FLAG_DEFAULT) -> "name_NODEID" 2) mkSkolem("name", ..., SKOLEM_EXACT_NAME) -> "name" 3) mkSkolem("name_$$", ..., SKOLEM_FLAG_DEFAULT) -> "name_NODEID" 4) mkSkolem("na_$$_me", ..., SKOLEM_FLAG_DEFAULT) -> "na_NODEID_me" After this commit, only 1) and 2) stay. 90% usage is of 1) or 3), which results in exact same behavior (and looking at the source code it doesn't look like everyone realized that the _$$ is just redundant). Almost no one used 4), which is the only reason to even have $$. Post this commit if you really want a number in the middle, manually construct the name and use the SKOLEM_EXACT_NAME flag.
2014-03-26Merging in a fix from 1.3.x.Tim King
Fixes an idempotency issue for non-linear multiplication with integer and real variables. Conflicts: src/theory/arith/normal_form.cpp
2014-03-19Refactor the theory specific parts of definition expansion into the theory ↵Martin Brain
solvers. In the process of doing this I may have fixed some bugs or some potential bugs so there may be some user visible results of this refactoring. Signed-off-by: Morgan Deters <mdeters@cs.nyu.edu>
2014-03-11Initial refactor of rewrite rules, make theory_rewriterules empty theory. ↵Andrew Reynolds
Push kinds to quantifiers/kinds, rewrite rewrite rules in rewriter. Fix rewrite rule attribute, refactor QCF, instantiation engine does not register rewrite rules, minor clean up. QCF is now functional backend to rewrite rules. Support boolean variables in QCF. Change check-model to ignore rewrite rules. Incorporate some fixes from master. Move rewrite of rewrite rules from rewriter to preprocessor, attribute becomes pattern. Minor fixes to QCF/rewrite engine, removes RE on last call approach. Add option for one inst per round in RE. Merging rewrite rules into master, check-model current fails on 3 FMF regressions. Fix check-model issue, a line of code was omitted during merge.
2014-03-08Re-fix bug 551 by adding a check to the arith ITE simplifier to ignore ↵Morgan Deters
non-ground ITEs also.
2014-03-08Fixing name changes that cam in from the merge.Tim King
2014-03-07Merging a squash of the branch timothy-king/CVC4/glpknecfix c95bf7d4f1 into ↵Tim King
master. See the CAV14 submission for an explanation of the changes to the integer solver's behavior. If compiled against the our custom extension of glpk, https://github.com/timothy-king/glpk-cut-log, this should have substantial differences in behavior. This should have moderate performance differences for linear real and integer arithmetic even if these features are disabled.
2014-03-05Improving support for POW in arithmetic. Resolves bug 549.Tim King
2014-03-04Don't theory-preprocess under quantifiers; but DO theory-preprocess lemmas ↵Morgan Deters
(resolves bug #548).
2014-02-19Merge branch 'master' of github.com:CVC4/CVC4Tim King
2014-02-19Merge branch '1.3.x'Tim King
2014-02-19Stopping non-linear terms from entering the dio solver. Fixes bug 547.Tim King
2014-02-17type conversionTianyi Liang
2014-01-22Delay QuantifiersEngine and UF strong solver initialization until after ↵Morgan Deters
final options/logic are set.
2013-12-24Minor code cleanup.Morgan Deters
2013-12-05Update copyrights, add missing file-level documentation; fix perms.Morgan Deters
2013-11-27General pre-release cleanup commitMorgan Deters
* Rename {model,util_model}.{h,cpp} files to match class names * Fix alreadyVisited() issue in TheoryEngine * Remove spurious Message that causes compliance issues * Update copyrights, fix public/private markings in headers * minor comment fixes * remove EXTRACT_OP as a special-case in typechecker * note about rewriters in theoryskel readme * Clean up some compiler warnings * Code typos and spacing
2013-11-10Flatten libcvc4 build structure; remove some #include interdependencesMorgan Deters
2013-09-27fix the infinite issueTianyi Liang
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback