From c212c453002f0cd7e547c98f51672f28387def05 Mon Sep 17 00:00:00 2001 From: Maximilian Heisinger Date: Sun, 14 Aug 2022 15:40:02 +0200 Subject: [PATCH 1/2] [PATCH] gnu: Add modern SAT solver cryptominisat5 * gnu/packages/maths.scm (cryptominisat5): Add package. --- gnu/packages/maths.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index c79058ab42..f69c6ce6de 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -7311,6 +7311,40 @@ (define-public minisat "http://minisat.se/MiniSat.html") (license license:expat)))) +(define-public cryptominisat5 + (package + (name "cryptominisat5") + (version "5.8.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/msoos/cryptominisat") + (commit version) + ;; Recursive checkout is required to enable testing. + (recursive? #t))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1dz4b4mjmbm2j758l3y520x918mh5b1ia73xx6byw0h97kwyx8zw")))) + (build-system cmake-build-system) + (arguments + (list #:build-type "Release" + #:test-target "test" + #:configure-flags + #~(list "-DENABLE_TESTING=ON"))) + (inputs (list zlib boost)) + (native-inputs (list python python-lit)) + (synopsis "Incremental SAT solver") + (description + "CryptoMiniSat is an incremental SAT solver with both command line and +library (C++, C, Python) interfaces. The command-line interface takes a +@acronym{CNF, Conjunctive Normal Form} as an input in the DIMACS format with +the extension of XOR clauses. The library interfaces mimic this and also +allow IPASIR-esque incremental use, including assumptions.") + (home-page "https://github.com/msoos/cryptominisat") + (license license:expat))) + (define-public libqalculate (package (name "libqalculate") -- 2.37.1