-
Major IPASIR-UP increment. Please be aware that some of these changes affect the syntax of the API, and thus updating to this version of CaDiCaL requires to modify the consuming code to accommodate to the new syntax:
-
Notification of assignments is batched into arrays and no more fixed flags are passed during notification (
breaking change) -
Allow clauses learned from the propagator to be deleted (see
is_forgettableparameter andare_reasons_forgettableBoolean flag) (breaking change) -
Added support to generate incremental proofs (LIDRUP) while using IPASIR-UP
-
Users can force to backtrack during
cb_decide(see functionforce_backtrack) -
Removed unnecessary notifications of backtrack during inprocessing (supposed to solve issue #92).
-
Call again
cb_propagateif during final model checking a new clause is added.
-
-
Added a new interface
FixedAssignmentListener: Eagerly calls a callback whenever a variable is fixed during search.
-
We have now a
contribdirectory and for starters there ourCadiCraiginterpolator, which goes through theTracerAPI. -
We moved back to use the C99 flexible array member feature in
Clausewhich however is not supported by all C++ compiler configurations, particularly if compiling in pedantic mode. Therefore theconfigurescript checks for support of flexible array members and also has a new--no-flexibleoption. -
Added
Dockerfileto support docker containers. -
Added
--no-statusto skip printing "s SATISFIABLE" or "s UNSATISFIABLE". This is useful for online proof checking.
- Removed an unexpected performance regression on the anniversary track due to marking forward strengthened redundant clauses as used.
- Simplified code by removing reimply again (but keeping ILB).
- Fixed bogus notification if a user propagator is connected with ILB and after local search preprocessing and a second incremental call lead to an inconsistent trail to assumption mapping, which might have lead to an infinite loop (in very rare cases).
-
Important fixes for ILB, trail-reuse and external propagation with assumptions.
-
Restored effectiveness of Mobical and improved external mock propagator.
-
Forced garbage collection of binary clauses before restore.
-
Merge internal status and state encodings and made them consistent.
-
Disabled non-verbose message if empty clause found in input.
-
Improved support for IDRUP.
- Fixed position of
idrupoption.
-
Clause IDs in binary LRAT proofs are now always signed.
-
Internal CNF regression suite also checks LRAT proofs now.
-
Improving the OTFS heuristic (properly bumping literals and considering that the conflict clause is updated).
-
Making progress to formal 1.9 release with minor fixes for different platforms and compilers.
-
Refine IPASIR-UP based on feedback from users.
-
Explicit
Solver::clausefunctions to simplify clause addition. -
More fine-grained handling of printing proof size information by adding
bool print = falseflags to theflush_proof_traceand theclose_proof_traceAPI calls. The former prints the number of addition and deletion steps, while the latter prints the size of the proof size (and the actual number of bytes if compressed). The main effect is that by default printing of proof size disabled for API usage but enabled for the stand-alone solver.
- Decreased verbosity level for printing proof size.
- As
forkandwaitdo not exist on Windows writing compressed files throughpipe/fork/exec/waithas to be disabled for Windows cross compilation to go through. Alternatively one could go back topopenfor writing compressed files on Windows which however is not safe and therefore we simply decided to disable that feature for windows. Compressed file reading still (and as far we are aware safely) usespopenand thus also compiles for Windows.
-
Replaced the unsafe
popenapproach for compressed file writing with an explicitpipe/fork/exec/waitpidflow and accordingly removed the--safeconfiguration option again. -
Incremental lazy backtracking (ILB) enabled by
--ilballows to add new clauses incrementally while keeping the assignments on the trail. Also works for assumptions (--ilbassumptions). -
Reimplication (
--reimply) fixes assignment levels of literals by "elevating" them (assigning a lower decision level and propating them out-of-order on this lower decision level). Out-of-order assignments are introduced by chronological backtracking, adding external clauses during solving (e.g., by a user propagation) or simply by ILB. Reimplication improves quality of learned clauses and potentially shortens search in such cases. -
A new proof tracer interface allows to add a proof
Tracerthrough the API (viaconnect_proof_tracer). This feature allows to use custom proof tracers to process clausal proofs on-the-fly while solving. Both proofs steps with proof antecedents (needed for instance for interpolation) as well as without (working direclty on DRAT level) are supported. -
Reworked options for proof tracing to be less confusing. Support for DRAT, LRAT, FRAT and VeriPB (with or without antecedents).
- Configuration option
--safedisables writing to a file throughpopenwhich makes library usage safer.
-
Added support for VeriPB proofs (--lrat --lratveripb).
-
Various fixes: LRAT proofs for constrain (which previously were not traced correctly); internal-external mapping issues for LRAT (worked for user propagator but now also in combination with LRAT); further minor bug fixes.
-
Added support for LRAT + external propagator in combination.
- Added native LRAT support.
- Added IPASIR-UP functions to the API to support external propagation, external decisions, and clause addition during search. For more details see the following paper at SAT 2023:
Katalin Fazekas, Aina Niemetz, Mathias Preiner, Markus Kirchweger, Stefan Szeider and Armin Biere. IPASIR-UP: User Propagators for CDCL.
- During decisions the phase set by
void phase (int lit)has now higher precedence than the initial phase set by optionsphaseandforcephase.
-
Clang formatted all source code (and fixed one failing regression test by disabling
otfsfor it). -
Implementing OTFS during conflict analysis (
--otfs). -
The last literal set by vivification is instantiated (
--vivifyinst). -
More accurate tracking of binary clauses in watch lists by updating the size in watch lists.
-
Picking highest score literal in assumed clause (
constrain) and caching of satisfied literal by moving them to the front. -
Added
bool flippable (int lit)to API. -
Fixed
valto returnlitor-litand not just-1and1. -
Allowing
fixedbetweenconstraininmobical. -
Fixed LZMA magic header.
-
Added
bool flip (int lit)to API. -
Fixed different garbage collection times with and without clause IDs (with
./configure -lor just./configure). This solves issue #44 by John Reeves. At the same time made sure to trigger garbage collection independent on the number of clause header bytes by relying on the number of garbage literals instead. -
Fixed
mmapusage for FreeBSD (#48 issue ofyurivict). -
Removed several compiler warnings when using newer compilers, including gcc-11, gcc-12, clang-14, and clang-15.
-
Replaced
sprintfbysnprintfto avoid warning on MacOS (thanks to Marijn for bringing this up). -
Assigning a C
FILEpointer tostdoutduring initialization fails on MacOS and thus separated declaration and initialization. -
Fixed random seed initialization from MAC address issue #47 as used by
mobicalwhich produces segmentation faults (thanks to Sam Bayless for pointing this out).
- Updates to documentation and copyright.
-
More copyright updates in banner.
-
Fixed MinGW cross-compilation (see
BUILD.md).
- Fixed copyright and added two regression traces.
-
Added
constrainAPI call described in our FMCAD'21 paper. -
Replaced
while () push_back ()withif () resize ()idiom (thanks go to Alexander Smal for pointing this out).