mudathirmahgoub [Fri, 7 Feb 2020 23:49:58 +0000 (17:49 -0600)]
Univeset Cardinality constraints for infinite types (#3712)
Andrew Reynolds [Fri, 7 Feb 2020 20:47:46 +0000 (14:47 -0600)]
Refactor check-model handling in SmtEngine (#3723)
Alex Ozdemir [Fri, 7 Feb 2020 18:37:33 +0000 (10:37 -0800)]
Propagate expected types through UF arguments (#3717)
Alex Ozdemir [Fri, 7 Feb 2020 17:08:09 +0000 (09:08 -0800)]
Add `ArithProof::{printInteger,getLfscFunction}` (#3716)
Andrew Reynolds [Fri, 7 Feb 2020 16:41:09 +0000 (10:41 -0600)]
Statistics for fast enumerator (#3699)
Andrew Reynolds [Fri, 7 Feb 2020 16:23:47 +0000 (10:23 -0600)]
Example evaluation cache utility (#3698)
Andrew Reynolds [Fri, 7 Feb 2020 01:12:29 +0000 (19:12 -0600)]
Fix exact sqrt (#3721)
Co-authored-by: Ahmed Irfan <43099566+ahmed-irfan@users.noreply.github.com>
Andrew Reynolds [Thu, 6 Feb 2020 23:30:53 +0000 (17:30 -0600)]
Generalize containsQuantifiers to hasClosure (#3722)
Andrew Reynolds [Wed, 5 Feb 2020 00:27:17 +0000 (18:27 -0600)]
Fix QF_NIA smt comp script (#3715)
mudathirmahgoub [Tue, 4 Feb 2020 18:52:33 +0000 (12:52 -0600)]
Update INSTALL.md (#3714)
Co-authored-by: Mathias Preiner <mathias.preiner@gmail.com>
Alex Ozdemir [Tue, 4 Feb 2020 18:31:03 +0000 (10:31 -0800)]
Articulate proof-related debug statements in arith (#3700)
Aina Niemetz [Tue, 4 Feb 2020 16:21:24 +0000 (08:21 -0800)]
--fp-exp: Better warning message. (#3709)
Mathias Preiner [Tue, 4 Feb 2020 15:49:31 +0000 (07:49 -0800)]
Fix header installation on MacOS. (#3660)
On MacOS sed -i requires a suffix to be set.
Andrew Reynolds [Tue, 4 Feb 2020 15:31:22 +0000 (09:31 -0600)]
Split base solver from the theory of strings (#3680)
Andres Noetzli [Tue, 4 Feb 2020 14:31:29 +0000 (06:31 -0800)]
Revert semantic change from refactoring (#3711)
Alex Ozdemir [Tue, 4 Feb 2020 06:42:27 +0000 (22:42 -0800)]
Regression tests for arithmetic proofs. (#3701)
* Add more arith proof regression tests
These tests are designed to test interesting cases of arithmetic proofs,
such as mixing integers and reals and tightening bounds.
Right now, they have the --no-check-proofs flag set, which prevents them
from testing the proof machinery. However, once we check that machinery
into master, we'll remove that flag, thus enabling the full effect of
the tests.
* A few comments explaining things.
* Add another tightening test
* Add new test to CMake
* No --no-check-models. There are no models anyway.
* Delete smt-lib-version, per Yoni
Aina Niemetz [Tue, 4 Feb 2020 00:42:31 +0000 (16:42 -0800)]
Increase regression test time limit to 1200s. (#3704)
Fixes #3565.
Clark Barrett [Mon, 3 Feb 2020 23:18:22 +0000 (15:18 -0800)]
Fix corner case - might need to REWRITE_AGAIN (#3706)
Andrew Reynolds [Mon, 3 Feb 2020 22:57:54 +0000 (16:57 -0600)]
Utility function for getting component types (#3703)
Andrew Reynolds [Mon, 3 Feb 2020 21:05:45 +0000 (15:05 -0600)]
Minor fixes to regressions (#3702)
Fixes two issues in regressions, fixes regress1.
mudathirmahgoub [Mon, 3 Feb 2020 18:44:34 +0000 (12:44 -0600)]
Fix cardinality of uninterpreted types when univset is not used (#3663)
* Fixed bug 3662
* format
* small change
* added bug3663.smt2 file
* throw Logic Exception
* throw Logic Exception
* ;EXIT: 1
Co-authored-by: Andrew Reynolds <andrew.j.reynolds@gmail.com>
Andrew Reynolds [Mon, 3 Feb 2020 18:23:27 +0000 (12:23 -0600)]
Split on model values when repaired model from non-linear is inconsisent (#3668)
Andrew Reynolds [Mon, 3 Feb 2020 16:19:44 +0000 (10:19 -0600)]
Fix invariant template inference for trivially infeasible conjecture (#3693)
Andrew Reynolds [Mon, 3 Feb 2020 15:31:36 +0000 (09:31 -0600)]
Fix corner case of empty domains in bounded fmf (#3690)
Andrew Reynolds [Mon, 3 Feb 2020 14:51:26 +0000 (08:51 -0600)]
Example inference utility (#3670)
Andrew V. Jones [Mon, 3 Feb 2020 07:16:20 +0000 (07:16 +0000)]
Renaming '--bsd' to '--no-gpl' (#3609)
Signed-off-by: Andrew V. Jones <andrew.jones@vector.com>
Alex Ozdemir [Sat, 1 Feb 2020 07:44:24 +0000 (23:44 -0800)]
Handle `expectedType` in TheoryProofEngine (#3691)
`TheoryProofEngine` now uses the `expectedType` optional argument.
* When printing terms, it sets this for theories that it dispatches too
* It occasionally asks theories for help determining the `expectedType` using `equalityType`, which has a sensible default implementation.
* It is mindful of `expectedType` when using the let map.
I also moved to hpp function implementations into the cpp.
Andrew Reynolds [Fri, 31 Jan 2020 19:42:36 +0000 (13:42 -0600)]
Allow PBE symmetry breaking with sygus stream (#3686)
Andrew Reynolds [Fri, 31 Jan 2020 17:06:41 +0000 (11:06 -0600)]
Refactor relevance vectors for asserted quantifiers (#3666)
Andrew Reynolds [Fri, 31 Jan 2020 16:43:36 +0000 (10:43 -0600)]
Update sygus grammar normalization to use node-level datatype. (#3567)
Andrew Reynolds [Fri, 31 Jan 2020 16:14:31 +0000 (10:14 -0600)]
Refactor sygus stats (#3684)
Andrew Reynolds [Fri, 31 Jan 2020 14:51:17 +0000 (08:51 -0600)]
Minor refactoring of constructor classes in fast enumerator (#3685)
Andres Noetzli [Fri, 31 Jan 2020 14:06:39 +0000 (06:06 -0800)]
Fix arithmetic rewriter for exponential (#3688)
Andrew Reynolds [Thu, 30 Jan 2020 22:30:47 +0000 (16:30 -0600)]
Fix rep set increment for empty domains (#3682)
Andrew Reynolds [Thu, 30 Jan 2020 22:02:38 +0000 (16:02 -0600)]
Make eq chain an aggressive rewrite in extended rewriter (#3679)
Andrew Reynolds [Thu, 30 Jan 2020 20:47:35 +0000 (14:47 -0600)]
Eliminate spurious postprocessing step for single invocation (#3674)
Andrew Reynolds [Thu, 30 Jan 2020 20:05:06 +0000 (14:05 -0600)]
Ensure literals in FMF decision strategies are in the CNF stream (#3669)
Andrew Reynolds [Thu, 30 Jan 2020 18:18:27 +0000 (12:18 -0600)]
Weaken assertion for models with approximations (#3667)
Andrew Reynolds [Thu, 30 Jan 2020 17:53:54 +0000 (11:53 -0600)]
Move disequality list to solver state in strings (#3678)
Andrew Reynolds [Thu, 30 Jan 2020 17:28:46 +0000 (11:28 -0600)]
Example minimize evaluation utility. (#3671)
Andrew Reynolds [Thu, 30 Jan 2020 15:41:12 +0000 (09:41 -0600)]
External cache argument for evaluator (#3672)
Andrew Reynolds [Thu, 30 Jan 2020 09:32:47 +0000 (03:32 -0600)]
Do not debug check model for models with approximations (#3673)
We don't run check-model for models with approximate values, however we were still running the internal debugCheckModel method, which leads to assertion failures. This disables this check.
Fixes #3652.
Andres Noetzli [Thu, 30 Jan 2020 02:29:15 +0000 (18:29 -0800)]
Better heuristics for marking congruent variables (#3677)
Andrew Reynolds [Thu, 30 Jan 2020 02:08:09 +0000 (20:08 -0600)]
Modularize more steps in the strings strategy (#3676)
Andrew Reynolds [Thu, 30 Jan 2020 01:42:50 +0000 (19:42 -0600)]
Minor updates to string utilities (#3675)
Alex Ozdemir [Thu, 30 Jan 2020 00:07:09 +0000 (16:07 -0800)]
expectedType in proof-printing code (#3665)
* expectedType in proof-printing code
To print lemma proofs in theories that use multiple sorts that have a
subtype relationship, we need to increase communication between the
TheoryProofEngine and the theory proofs themselves.
This commit add an (optional) argument `expectedType` to many
term-printing functions in TheoryProofEngine and TheoryProof.
Right now it is unused, so always takes on the default value of "null"
(meaning no type expectation), but in the future the TheoryProofEngine
will use it to signal TheoryProof about what type is expected to be
printed.
* TypeNode, Don't mix default args & virtual
* Use TypeNode instead of Type (The former are lighter)
* Don't add default arguments to virtual functions, because these cannot
be dynamically overriden during a dynamic dispatch.
* Since we don't want them to be overidable anyway, we use two
functions: one that is non-virtual and has a default, the other that
is virtual but has no default. The former just calls the latter.
* clang-format after signature changes
Andrew Reynolds [Wed, 29 Jan 2020 19:55:01 +0000 (13:55 -0600)]
Fix isLeq function in String utility (#3659)
Andrew Reynolds [Tue, 28 Jan 2020 21:19:41 +0000 (15:19 -0600)]
Do not insist on bound values being constant in arithmetic instantiation (#3643)
Andrew Reynolds [Tue, 28 Jan 2020 19:31:44 +0000 (13:31 -0600)]
Avoid PLUS with one child for bv2nat elimination (#3639)
Alex Ozdemir [Sun, 26 Jan 2020 02:59:50 +0000 (18:59 -0800)]
Axioms for affine function bounds. Tests. (#3632)
* Axioms for affine function bounds. Tests.
* Apply suggestions from code review
Co-Authored-By: yoni206 <yoni206@users.noreply.github.com>
* Clarify descriptions of th_lira tests
Thanks, Yoni!
Co-authored-by: yoni206 <yoni206@users.noreply.github.com>
Andrew Reynolds [Thu, 23 Jan 2020 21:53:48 +0000 (15:53 -0600)]
Fix trivial solve method for single invocation (#3650)
Andrew Reynolds [Wed, 22 Jan 2020 23:02:58 +0000 (17:02 -0600)]
Fix subtyping for instantiations where internal representatives are chosen (#3641)
Andrew Reynolds [Wed, 22 Jan 2020 22:09:47 +0000 (16:09 -0600)]
Fix substitution in nl solver (#3638)
* Fix for 3614
* Add regression
* Remove regression
Co-authored-by: Ahmed Irfan <43099566+ahmed-irfan@users.noreply.github.com>
Andrew Reynolds [Wed, 22 Jan 2020 21:27:46 +0000 (15:27 -0600)]
Fix single invocation partition for non-function non-atomic types (#3642)
Andrew Reynolds [Wed, 22 Jan 2020 20:53:37 +0000 (14:53 -0600)]
Fix check for subtypes in sygus PBE (#3640)
Andrew Reynolds [Wed, 22 Jan 2020 14:49:14 +0000 (08:49 -0600)]
Fix parameteric sorts involving Booleans in sygus default grammars (#3629)
Alex Ozdemir [Tue, 21 Jan 2020 23:05:52 +0000 (15:05 -0800)]
Types and side conditions for affine bounds (#3631)
* Types and side conditions for affine bounds
Bounds (being positive, non-negative) actually have an arithmetic.
This PR defines that.
Useful b/c Farkas proofs are basically just sums of bounded affine
functions.
* Address Yoni's comments. Thanks!
* Moved a positivity-test to th_real
* Describe what an affine bound is in better detail
Alex Ozdemir [Tue, 21 Jan 2020 21:33:04 +0000 (13:33 -0800)]
Affine Axioms (#3630)
Used for proving that real terms are affine functions of their
variables.
Alex Ozdemir [Tue, 21 Jan 2020 20:15:10 +0000 (12:15 -0800)]
Types & side-conditions for linear and affine fns (#3627)
This commit introduces types for linear combinations of arith variables
along with side conditions for their arithmetic.
It does the same for affine functions.
These primitives are ultimately used in our machinery for Farkas proofs.
Alex Ozdemir [Tue, 21 Jan 2020 15:45:10 +0000 (07:45 -0800)]
Axioms (and side conditions) for tightening bounds (#3613)
* Axioms (and side conditions) for tightening bounds
* Side conditions for verifying floor/ceiling-like functions
* Axioms for their correct execution
* Axioms for bound tightening.
* Apply suggestions from code review
Co-Authored-By: yoni206 <yoni206@users.noreply.github.com>
* Address Yoni's comments by addings documentation.
Thanks Yoni!
Co-authored-by: yoni206 <yoni206@users.noreply.github.com>
Alex Ozdemir [Sat, 18 Jan 2020 00:56:44 +0000 (16:56 -0800)]
LIRA proof: Arithmetic predicates & reification thereof (#3612)
* Merge branch 'master' into lira-pf-arith-pred
* Shorten reify_arith_pred, thanks Yoni!
Use recursion!
* typo
Alex Ozdemir [Fri, 17 Jan 2020 23:21:03 +0000 (15:21 -0800)]
LIRA sig: int, real terms, and conversions (#3610)
* LIRA sig: int, real terms, and conversions
* Address Yoni's comments.
* Better description of "reify" functions
* explicit (rather than implicit) `fail` when reifying integer division
Co-authored-by: Andrew Reynolds <andrew.j.reynolds@gmail.com>
Andrew Reynolds [Fri, 17 Jan 2020 20:24:03 +0000 (14:24 -0600)]
Use axioms when checking goal entailment for abduction algorithm (#3611)
Aina Niemetz [Wed, 15 Jan 2020 16:25:21 +0000 (08:25 -0800)]
New C++ API: Add nullary constructor for Result. (#3603)
Andrew Reynolds [Tue, 14 Jan 2020 20:42:44 +0000 (14:42 -0600)]
Generalize example-based sym breaking to conjectures with constant function apps (#3605)
Andres Noetzli [Tue, 14 Jan 2020 15:47:58 +0000 (07:47 -0800)]
Disable unsat cores for regression that times out (#3607)
Regression `regress2/strings/issue3203.smt2` is currently timing out
depending on the version of the libraries loaded (see #3606 for more
info). This commit temporarily disables the regression to get the
nightlies to pass again.
Andres Noetzli [Mon, 13 Jan 2020 20:26:52 +0000 (12:26 -0800)]
Support arbitrary unsigned integer attributes (#3591)
Fixes #3586. On macOS, `size_t` resolves to `unsigned long` whereas `uint64_t`
resolves to `unsigned long long`. Even though the types have the same bit-width
and signedness, they are not considered the same type. This caused issues with
`Attribute`s that store `size_t` values because we only specialized the
`getTable()` struct for `uint64_t`. This commit changes the specialization to
work for arbitrary unsigned integer types of at most 64-bit. It does that by
generalizing the specialization of `getTable()` and by implementing a
`KindValueToTableValueMapping` for unsigned integer attributes of up to 64-bit
that casts integers between the attributes bit-width and `uint64_t`.
Andrew Reynolds [Fri, 10 Jan 2020 21:31:01 +0000 (15:31 -0600)]
Fix side condition check in sygus core connective (#3600)
Mathias Preiner [Fri, 10 Jan 2020 20:25:54 +0000 (12:25 -0800)]
Fix enum names in AIG bitblaster. (#3599)
Andres Noetzli [Fri, 10 Jan 2020 18:49:53 +0000 (10:49 -0800)]
Fix printing of models of uninterpreted sorts (#3597)
Andrew Reynolds [Fri, 10 Jan 2020 18:08:16 +0000 (12:08 -0600)]
Track trivial cases in transition inference (#3598)
Andres Noetzli [Fri, 10 Jan 2020 00:45:38 +0000 (16:45 -0800)]
Optimize str.substr reduction (#3595)
This commit optimizes the `str.substr` reduction by replacing the
if-then-else term for the length of the suffix `len(sk2) = ite(len(s) >=
n+m, len(s) - (n + m), 0)` with `(len(sk2) = len(s) - (n + m) v
len(sk2) = 0) ^ len(skt) <= m`. Experiments have shown that the latter
encoding is more efficient.
Andrew Reynolds [Wed, 8 Jan 2020 21:31:26 +0000 (15:31 -0600)]
Fix backtracking issue in sygus fast enumerator (#3593)
mudathirmahgoub [Wed, 8 Jan 2020 00:13:07 +0000 (18:13 -0600)]
Universe set cardinality for finite types with finite cardinality (#3392)
* rewrote set cardinality for finite-types
* small changes and format
Andrew Reynolds [Tue, 7 Jan 2020 20:22:32 +0000 (14:22 -0600)]
Fix unary minus parse check (#3594)
Andrew Reynolds [Tue, 7 Jan 2020 17:39:27 +0000 (11:39 -0600)]
Update any-constant and normalization policies for sygus grammars (#3583)
Andrew Reynolds [Sat, 4 Jan 2020 19:24:14 +0000 (13:24 -0600)]
Fix finiteness check for bounded fmf (#3589)
Recently, finite model finding via uninterpreted sorts was decoupled from finite bound inference techniques (the BoundedIntegers module in theory/quantifiers/fmf/). This module assumed that finite model finding was enabled in one place. This fixes the issue by adding an additional check. This fixes a model unsoundness issue where bounds on an uninterpreted sort were not being enforced.
This fixes #3587.
Alex Ozdemir [Tue, 31 Dec 2019 04:13:48 +0000 (20:13 -0800)]
[proof] ITE translation fix (#3484)
* Bugfix: convert ifte arms to formulas for printing
We have two kinds of ITEs in our LFSC proofs:
* ite: for sort-typed expressions
* ifte: for formulas
Say that we have a Bool-sorted ITE. We had machinery for emitting an
`ifte` for it, but this machinery didn't actually convert the arms of
the ITE into formulas... Facepalm.
Fixed now.
* Test the lifting of ITEs from arithmetic.
This test verifies that booleans ITEs are correctly lifted to formula
ITEs in LRA proofs.
It used to fail, but now passes.
* clang-format
* Typos.
* Add test to CMake
* Set --check-proofs in test
* Address Yoni
* Expand printsAsBool documentation
* Assert ITE typing soundness
* Assert a subtype relation for ITEs, not equality
* Update src/proof/arith_proof.h
Thanks Yoni!
Co-Authored-By: yoni206 <yoni206@users.noreply.github.com>
Co-authored-by: yoni206 <yoni206@users.noreply.github.com>
Andrew Reynolds [Mon, 23 Dec 2019 23:18:19 +0000 (17:18 -0600)]
Initial support for string reverse (#3581)
Type rules, parsing and printing, basic rewriting including constant evaluation, reduction for string reverse (`str.rev`).
Also improves support in a few places for tolower/toupper.
Simon Dierl [Thu, 19 Dec 2019 23:51:29 +0000 (00:51 +0100)]
Define all options modified by ENABLE_BEST using cvc4_option (#3578)
Signed-off-by: Simon Dierl <simon.dierl@cs.tu-dortmund.de>
Mathias Preiner [Thu, 19 Dec 2019 17:52:26 +0000 (09:52 -0800)]
Fix typo in smt_options.toml. (#3579)
Andrew Reynolds [Wed, 18 Dec 2019 14:44:06 +0000 (08:44 -0600)]
Increment Taylor degree for tangent and secant plane inferences for transcendentals (#3577)
Andres Noetzli [Wed, 18 Dec 2019 08:27:18 +0000 (00:27 -0800)]
Avoid calling rewriter from type checker (#3548)
Fixes #3536. The type checker for the chain operator was calling the
rewriter. However, the floating-point rewriter was expecting
`TheoryFp::expandDefinition()` to be applied before rewriting. If the
chain operator had subterms that were supposed to be removed by
`TheoryFp::expandDefinition()`, the FP rewriter was throwing an
exception. This commit fixes the issue by not calling the full rewriter
in the type checker but by just expanding the chain operator. This is a
bit less efficient than before because the rewriter does not cache the
result of expanding the chain operator anymore but assuming that there
are no long chains, the performance impact should be negligible. It also
seemed like a reasonable assumption that the rewriter can expect to run
after `expandDefinition()` because otherwise the rewriter has to expand
definitions, which may be too restrictive.
Mathias Preiner [Tue, 17 Dec 2019 21:43:44 +0000 (13:43 -0800)]
Generate code for options with modes. (#3561)
This commit adds support for code generation of options with modes (enums). From now on option enums can be specified in the corresponding *.toml files without the need of extra code. All option enums are now in the options namespace.
Andrew Reynolds [Tue, 17 Dec 2019 08:00:42 +0000 (02:00 -0600)]
Fix spurious parse error for rational real array constants (#3554)
Currently we can't parse constant arrays that store real values that are given as rationals `(/ n m)`. We throw a spurious parse error for `((as const (Array Int Real)) (/ 1 3))`, indicating that the argument of the array is not constant. This is caused by the fact that `(/ 1 3)` is parsed as a *division* term not a rational value.
This adds a special case to constant array construction so that we compute the result of a constant division instead of using the division term `(/ n m)` when constructing an array constant.
Andrew Reynolds [Mon, 16 Dec 2019 21:02:28 +0000 (15:02 -0600)]
Use the evaluator utility in the function definition evaluator (#3576)
Improves performance on ground conjectures with recursive functions. We use the evalutator to (partially) evaluate bodies of recursive functions, instead of relying on substitution+rewriting.
Andrew Reynolds [Mon, 16 Dec 2019 20:30:42 +0000 (14:30 -0600)]
Extend model construction with assignment exclusion set (#3377)
This extends the core model building algorithm in CVC4 with "assignment exclusion sets". This functionality is useful for assigning values to terms of finite type that have specific restrictions on what their value cannot be.
In detail, previously, all unassigned terms of finite type were always assigned the first term in the type enumeration. This is done since it is assumed that theories (e.g. datatypes) always do enough work to ensure that *arbitrary* values can be assigned to terms of finite type, and *fresh* values can be assigned to terms of infinite type. However, there are compelling cases (sets+cardinality for finite element types) where one may want to impose restrictions on what values can be assigned to terms of finite types. Thus, we now provide `setAssignmentExclusionSet` as a way of communicating these restrictions.
This commit also refactors a few parts of `TheoryEngineModelBuilder::buildModel` to be clearer, in particular by adding a few helper functions, and by caching certain information early in the function instead of recomputing it.
This is work towards #1123.
Ying Sheng [Mon, 16 Dec 2019 19:42:36 +0000 (11:42 -0800)]
Support ackermannization on uninterpreted sorts in BV (#3372)
Support ackermannization on uninterpreted sorts in BV. For uninterpreted sorts, we create a bit-vector sort to replace it. For an uninterpreted sort `S`, if the number of variables within sort `S` is `n`, the replacing bit-vector will have size (log n)+1.
Andrew Reynolds [Mon, 16 Dec 2019 17:56:39 +0000 (11:56 -0600)]
Move Datatype management to ExprManager (#3568)
This is further work towards decoupling the Expr layer from the Node layer.
This commit makes it so that ExprManager does memory management for Datatype while NodeManager maintains a list of DType.
As a reminder, the ownership policy (and level of indirection through DatatypeIndex) is necessary due to not being able to store Datatype within Node since this leads to circular dependencies in the Node AST.
Andrew Reynolds [Mon, 16 Dec 2019 17:23:54 +0000 (11:23 -0600)]
Fix evaluator for non-evaluatable nodes (#3575)
This ensures that the Evaluator always returns the result of substitution + rewriting for constant substitutions.
This requires a few further extensions to the code, namely:
(1) Applying substutitions to operators,
(2) Reconstructing all nodes that fail to evaluate by taking into account evaluation of their children.
Andrew Reynolds [Mon, 16 Dec 2019 16:28:51 +0000 (10:28 -0600)]
Revert evaluate as node. (#3574)
makaimann [Mon, 16 Dec 2019 09:58:24 +0000 (01:58 -0800)]
Trace tags for dumping the decision tree in org-mode format (#2871)
This would add tracing options to print the decision tree in [org-mode](https://orgmode.org/) format which can be viewed with emacs or [vim-orgmode](https://github.com/jceb/vim-orgmode).
In the raw format, the number of asterisks denote the decision level of a decision, and within a propagation node, the number of spaces denote the level. Most viewers render the asterisks as indented bullets.
There are some options for controlling verbosity:
`dtview` - prints the decisions (basic option)
`dtview::command` - also prints smt-lib commands as they're issued
`dtview::conflict` - also prints conflicts
`dtview::prop` - also prints propagations
Example usage:
`cvc4 -t dtview -t dtview::command -t dtview::conflict -t dtview::prop <example smt2 file> &> example-trace.org`
The resulting file when opened with an org-mode viewer has collapsible nodes, where "..." marks a node with children.
Andrew Reynolds [Mon, 16 Dec 2019 06:22:40 +0000 (00:22 -0600)]
Minor improvement to evaluator (#3570)
Fixes a bug where we don't return the partially evaluated version (for unevaluatable nodes). Also adds `NONLINEAR_MULT` whose semantics is identical to `MULT`.
Andrew Reynolds [Sun, 15 Dec 2019 07:45:27 +0000 (01:45 -0600)]
Simple optimizations for the core rewriter (#3569)
In some SyGuS applications, the bottleneck is the rewriter. This PR makes a few simple optimizations to the core rewriter, namely:
(1) Minimize the overhead of `theoryOf` calls, which take about 10-15% of the runtime in the rewriter. This PR avoids many calls to `theoryOf` by the observation that nodes with zero children never rewrite, hence we can return the node itself immediately. Furthermore, the `theoryOf` call can be simplified to hardcode the context under which we were using it: get the theory (based on type) where due to the above, we can assume that the node is not a variable.
The one (negligible) change in behavior due to this change is that nodes with more than one child for which `isConst` returns true (this is limited to the case of `APPLY_CONSTRUCTOR` in datatypes) lookup their theory based on the Kind, not their type, which should always be the same theory unless a theory had a way of constructing constant nodes of a type belonging to another theory.
(2) Remove deprecated infrastrastructure for a "neverIsConst" function, which was adding about a 1% of the runtime for some SyGuS benchmarks.
This makes SyGuS for some sets of benchmarks roughly 3% faster.
Andrew Reynolds [Fri, 13 Dec 2019 17:07:16 +0000 (11:07 -0600)]
Eliminate Expr-level calls in TypeNode (#3562)
Andrew Reynolds [Fri, 13 Dec 2019 15:53:02 +0000 (09:53 -0600)]
Add support for set comprehension (#3312)
Andrew Reynolds [Fri, 13 Dec 2019 13:18:29 +0000 (07:18 -0600)]
Disable check-synth-sol in regression with recursive functions (#3560)
Aina Niemetz [Fri, 13 Dec 2019 05:05:49 +0000 (21:05 -0800)]
FP converter: convert: Use std::vector as instead of std::stack. (#3563)
The word-blasting function `FpConverter::convert` used a `std::stack` with `deque` as an underlying data structure (default) for node traversal. Previous experiments suggested that using `std::stack<T, std::deque<T>>` performs worse than using `std::vector<T>`, and we decided, as a guideline, to always use `std::vector` for stacks: https://github.com/CVC4/CVC4/wiki/Code-Style-Guidelines#stack.
This PR refactors `FpConverter::convert` to use `std::vector`. Runs on all incremental and non-incremental FP logics in SMT-LIB showed a slight improvement over the previous (`std::stack<T, std::deque<T>>`) implementation, and an even greater (albeit still slight) improvement over using `std::stack<T, std::vector<T>>`.
Andrew Reynolds [Thu, 12 Dec 2019 21:43:36 +0000 (15:43 -0600)]
Make CEGIS sampling robust to non-vanilla CEGIS (#3559)
Haniel Barbosa [Thu, 12 Dec 2019 21:19:05 +0000 (18:19 -0300)]
Fix Unif+PI algorithm with symbolic unfolding (#3558)