minisat: 2.2.0 -> 2.2.1
This commit is contained in:
parent
a88fc6be6d
commit
1a871b4382
@ -1,45 +0,0 @@
|
|||||||
diff -aur minisat/core/SolverTypes.h minisat.clang/core/SolverTypes.h
|
|
||||||
--- minisat/core/SolverTypes.h 2010-07-10 18:07:36.000000000 +0200
|
|
||||||
+++ minisat.clang/core/SolverTypes.h 2016-05-13 12:14:50.759671959 +0200
|
|
||||||
@@ -47,7 +47,7 @@
|
|
||||||
int x;
|
|
||||||
|
|
||||||
// Use this as a constructor:
|
|
||||||
- friend Lit mkLit(Var var, bool sign = false);
|
|
||||||
+ //friend Lit mkLit(Var var, bool sign = false);
|
|
||||||
|
|
||||||
bool operator == (Lit p) const { return x == p.x; }
|
|
||||||
bool operator != (Lit p) const { return x != p.x; }
|
|
||||||
@@ -55,7 +55,7 @@
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
-inline Lit mkLit (Var var, bool sign) { Lit p; p.x = var + var + (int)sign; return p; }
|
|
||||||
+inline Lit mkLit (Var var, bool sign = false) { Lit p; p.x = var + var + (int)sign; return p; }
|
|
||||||
inline Lit operator ~(Lit p) { Lit q; q.x = p.x ^ 1; return q; }
|
|
||||||
inline Lit operator ^(Lit p, bool b) { Lit q; q.x = p.x ^ (unsigned int)b; return q; }
|
|
||||||
inline bool sign (Lit p) { return p.x & 1; }
|
|
||||||
diff -aur minisat/utils/Options.h minisat.clang/utils/Options.h
|
|
||||||
--- minisat/utils/Options.h 2010-07-10 18:07:36.000000000 +0200
|
|
||||||
+++ minisat.clang/utils/Options.h 2016-05-13 12:14:50.759671959 +0200
|
|
||||||
@@ -282,15 +282,15 @@
|
|
||||||
if (range.begin == INT64_MIN)
|
|
||||||
fprintf(stderr, "imin");
|
|
||||||
else
|
|
||||||
- fprintf(stderr, "%4"PRIi64, range.begin);
|
|
||||||
+ fprintf(stderr, "%4" PRIi64, range.begin);
|
|
||||||
|
|
||||||
fprintf(stderr, " .. ");
|
|
||||||
if (range.end == INT64_MAX)
|
|
||||||
fprintf(stderr, "imax");
|
|
||||||
else
|
|
||||||
- fprintf(stderr, "%4"PRIi64, range.end);
|
|
||||||
+ fprintf(stderr, "%4" PRIi64, range.end);
|
|
||||||
|
|
||||||
- fprintf(stderr, "] (default: %"PRIi64")\n", value);
|
|
||||||
+ fprintf(stderr, "] (default: %" PRIi64 ")\n", value);
|
|
||||||
if (verbose){
|
|
||||||
fprintf(stderr, "\n %s\n", description);
|
|
||||||
fprintf(stderr, "\n");
|
|
||||||
Only in minisat.clang/utils: Options.o
|
|
||||||
Only in minisat.clang/utils: System.o
|
|
@ -1,26 +0,0 @@
|
|||||||
https://github.com/fasterthanlime/homebrew-mingw/blob/master/Library/Formula/minisat.rb
|
|
||||||
|
|
||||||
diff --git a/utils/System.cc b/utils/System.cc
|
|
||||||
index a7cf53f..feeaf3c 100644
|
|
||||||
--- a/utils/System.cc
|
|
||||||
+++ b/utils/System.cc
|
|
||||||
@@ -78,16 +78,17 @@ double Minisat::memUsed(void) {
|
|
||||||
struct rusage ru;
|
|
||||||
getrusage(RUSAGE_SELF, &ru);
|
|
||||||
return (double)ru.ru_maxrss / 1024; }
|
|
||||||
-double MiniSat::memUsedPeak(void) { return memUsed(); }
|
|
||||||
+double Minisat::memUsedPeak(void) { return memUsed(); }
|
|
||||||
|
|
||||||
|
|
||||||
#elif defined(__APPLE__)
|
|
||||||
#include <malloc/malloc.h>
|
|
||||||
|
|
||||||
-double Minisat::memUsed(void) {
|
|
||||||
+double Minisat::memUsed() {
|
|
||||||
malloc_statistics_t t;
|
|
||||||
malloc_zone_statistics(NULL, &t);
|
|
||||||
return (double)t.max_size_in_use / (1024*1024); }
|
|
||||||
+double Minisat::memUsedPeak() { return memUsed(); }
|
|
||||||
|
|
||||||
#else
|
|
||||||
double Minisat::memUsed() {
|
|
@ -1,29 +1,19 @@
|
|||||||
{ stdenv, fetchurl, zlib }:
|
{ stdenv, fetchFromGitHub, cmake, zlib }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "minisat";
|
pname = "minisat";
|
||||||
version = "2.2.0";
|
version = "2.2.1";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "http://minisat.se/downloads/${pname}-${version}.tar.gz";
|
owner = "stp";
|
||||||
sha256 = "023qdnsb6i18yrrawlhckm47q8x0sl7chpvvw3gssfyw3j2pv5cj";
|
repo = pname;
|
||||||
|
rev = "releases/${version}";
|
||||||
|
sha256 = "14vcbjnlia00lpyv2fhbmw3wbc9bk9h7bln9zpyc3nwiz5cbjz4a";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches =
|
nativeBuildInputs = [ cmake ];
|
||||||
[ ./darwin.patch ]
|
|
||||||
++ stdenv.lib.optionals stdenv.cc.isClang [ ./clang.diff ];
|
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = "-fpermissive";
|
|
||||||
|
|
||||||
buildInputs = [ zlib ];
|
buildInputs = [ zlib ];
|
||||||
|
|
||||||
preBuild = "cd simp";
|
|
||||||
makeFlags = [ "r" "MROOT=.." ];
|
|
||||||
installPhase = ''
|
|
||||||
mkdir -p $out/bin
|
|
||||||
cp minisat_release $out/bin/minisat
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Compact and readable SAT solver";
|
description = "Compact and readable SAT solver";
|
||||||
maintainers = with maintainers; [ gebner raskin ];
|
maintainers = with maintainers; [ gebner raskin ];
|
||||||
|
@ -1,25 +0,0 @@
|
|||||||
{ stdenv, fetchFromGitHub, zlib, cmake }:
|
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
|
||||||
name = "minisat-unstable-2013-09-25";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "niklasso";
|
|
||||||
repo = "minisat";
|
|
||||||
rev = "37dc6c67e2af26379d88ce349eb9c4c6160e8543";
|
|
||||||
sha256 = "091hf3qkm197s5r7xcr3m07xsdwyz2rqk1hc9kj0hn13imz09irq";
|
|
||||||
};
|
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = "-fpermissive";
|
|
||||||
|
|
||||||
buildInputs = [ zlib ];
|
|
||||||
nativeBuildInputs = [ cmake ];
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
|
||||||
description = "Compact and readable SAT solver";
|
|
||||||
maintainers = with maintainers; [ mic92 ];
|
|
||||||
platforms = platforms.unix;
|
|
||||||
license = licenses.mit;
|
|
||||||
homepage = http://minisat.se/;
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,4 +1,5 @@
|
|||||||
{ stdenv, cmake, boost, bison, flex, fetchFromGitHub, perl, python3, python3Packages, zlib, minisatUnstable, cryptominisat }:
|
{ stdenv, cmake, boost, bison, flex, fetchFromGitHub, perl
|
||||||
|
, python3, python3Packages, zlib, minisat, cryptominisat }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "stp";
|
pname = "stp";
|
||||||
@ -11,7 +12,7 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "1yg2v4wmswh1sigk47drwsxyayr472mf4i47lqmlcgn9hhbx1q87";
|
sha256 = "1yg2v4wmswh1sigk47drwsxyayr472mf4i47lqmlcgn9hhbx1q87";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ boost zlib minisatUnstable cryptominisat python3 ];
|
buildInputs = [ boost zlib minisat cryptominisat python3 ];
|
||||||
nativeBuildInputs = [ cmake bison flex perl ];
|
nativeBuildInputs = [ cmake bison flex perl ];
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
python_install_dir=$out/${python3Packages.python.sitePackages}
|
python_install_dir=$out/${python3Packages.python.sitePackages}
|
||||||
|
@ -24059,7 +24059,6 @@ in
|
|||||||
mcrl2 = callPackage ../applications/science/logic/mcrl2 { };
|
mcrl2 = callPackage ../applications/science/logic/mcrl2 { };
|
||||||
|
|
||||||
minisat = callPackage ../applications/science/logic/minisat {};
|
minisat = callPackage ../applications/science/logic/minisat {};
|
||||||
minisatUnstable = callPackage ../applications/science/logic/minisat/unstable.nix {};
|
|
||||||
|
|
||||||
monosat = callPackage ../applications/science/logic/monosat {};
|
monosat = callPackage ../applications/science/logic/monosat {};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user