Skip to content

Bugfix/ipasir #683

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 8 commits into from
Closed

Bugfix/ipasir #683

wants to merge 8 commits into from

Conversation

mgudemann
Copy link
Contributor

fixing #552 on glucose compilation

Norbert Manthey and others added 7 commits March 23, 2017 16:07
When building solvers.a while aiming at building CBMC with support for
IPASIR solvers, all projects that need SAT checkers would require to
link against the provided libipasir.a library. To make this library
visible for all subprojects at the same time, but furthermore allow the
user to choose which library to pick, the variable LIBSOLVER was
introduced, which is set to an empty value by default.

To compile while using IPASIR solvers, use for example:

IPASIR=../../ipasir LIBSOLVER=$(pwd)/ipasir/libipasir.a \
    CFLAGS="-DSATCHECK_IPSAIR" make -j 7 -C src
Add the necessary source changes to allow CBMC to use IPASIR solvers.
Add necessary steps to set variables for IPASIR

Furthermore, allow to select SAT solver from make command line,
for example by calling

IPASIR=../../ipasir LIBSOLVER=$(pwd)/ipasir/libipasir.a make

Not, to compile with a different SAT solver, e.g.

GLUCOSE=../../glucose-syrup make

it has to be ensured, that the solvers.a library is rebuild, and all
components that link against this library are renewed as well. This
can be achieved by touching the satcheck.h flie, i.e.:

touch src/solvers/sat/satcheck.h
Besides the usual test with Minisat, also compile with glucose,
and test whether compilation with IPASIR works. Perform tests and
regression testing for the two variants as well.

Furthermore, if libzip and zlib and not inizialized properly, any
build will fail. Hence, these targets are added as well.
@forejtv forejtv added the bugfix label Mar 28, 2017
@tautschnig tautschnig changed the base branch from master to develop August 22, 2017 12:31
@mgudemann mgudemann closed this Nov 10, 2017
@mgudemann mgudemann deleted the bugfix/ipasir branch November 10, 2017 06:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants