-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
103 lines (77 loc) · 3.29 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
CC:=gcc
CXX:=g++
BOOST_ROOT:=/usr
PYTHON:=python3
LISP=sbcl
ACL2="$(shell pwd)/acl2-8.2/saved_acl2"
all: Keller-encode tools/drat-trim/drat-trim tools/tautology tools/pprsearch/pprsearch tools/ppr2drat
Keller-encode: Keller-encode.c
${CC} -O2 -Wall Keller-encode.c -oKeller-encode
tools/drat-trim/drat-trim.c:
git submodule update --init tools/drat-trim
tools/drat-trim/drat-trim: tools/drat-trim/drat-trim.c
cd tools/drat-trim/ && ${CC} -O2 -Wall drat-trim.c -odrat-trim
tools/tautology: tools/tautology.c
${CC} -O2 -Wall tools/tautology.c -otools/tautology
bliss-0.73:
wget http://www.tcs.hut.fi/Software/bliss/bliss-0.73.zip
unzip bliss-0.73.zip
cd bliss-0.73 && make lib
tools/pprsearch/pprsearch: bliss-0.73 tools/pprsearch/pprsearch.cpp tools/pprsearch/pprtools.cpp tools/pprsearch/pprtools.h tools/pprsearch/SATFormula.cpp tools/pprsearch/SATFormula.h
cd tools/pprsearch && ${CXX} -std=c++11 -o pprsearch -DNDEBUG -O2 pprsearch.cpp pprtools.cpp SATFormula.cpp ../../bliss-0.73/libbliss.a -I ../../minisat -I ../../bliss-0.73 -I${BOOST_ROOT}/include
tools/ppr2drat: tools/ppr2drat.c
cd tools && ${CC} -O2 -o ppr2drat ppr2drat.c
acl2-8.2:
wget https://github.com/acl2/acl2/archive/8.2.tar.gz
tar xzf 8.2.tar.gz
acl2-8.2/saved_acl2: acl2-8.2
cd acl2-8.2 && make LISP=${LISP}
acl2-cert: acl2-8.2/saved_acl2
cd acl2-8.2 && books/build/cert.pl --acl2 ${ACL2} books/projects/sat/lrat/cube/*.lisp
acl2-checker: acl2-cert
cd acl2-8.2/books/projects/sat/lrat/cube/ && echo "(include-book \"run\")\
:q\
(save-exec \"cube-check\" \"Executable including run.lisp\")" | ${ACL2}
clean:
rm -f Keller-encode tools/drat-trim/drat-trim tools/tautology tools/pprsearch/pprsearch tools/ppr2drat
depclean: clean
rm -rf bliss-0.73* acl2-8.2 8.2.tar.gz
s3-python: Keller-encode tools/pprsearch/pprsearch tools/ppr2drat
${PYTHON} Keller.py 3 s3 ./Keller-encode tools/pprsearch/pprsearch tools/ppr2drat
s3-drat-trim: tools/drat-trim/drat-trim
for drat in $(shell ls -1 s3.*.drat); do \
cnffile="$$(basename $${drat} .drat).cnf"; \
echo $${cnffile}; \
tools/drat-trim/drat-trim $${cnffile} $${drat} -f; \
done
s3-tautology: tools/tautology
tools/dnf2cnf.sh s3.dnf > s3-tautology.cnf
tools/tautology s3-tautology.cnf
rm s3-tautology.cnf
s3: s3-python s3-drat-trim s3-tautology
s4-python: Keller-encode tools/pprsearch/pprsearch tools/ppr2drat
${PYTHON} Keller.py 4 s4 ./Keller-encode tools/pprsearch/pprsearch tools/ppr2drat
s4-drat-trim: tools/drat-trim/drat-trim
for drat in $(shell ls -1 s4.*.drat); do \
cnffile="$$(basename $${drat} .drat).cnf"; \
echo $${cnffile}; \
tools/drat-trim/drat-trim $${cnffile} $${drat} -f; \
done
s4-tautology: tools/tautology
tools/dnf2cnf.sh s4.dnf > s4-tautology.cnf
tools/tautology s4-tautology.cnf
rm s4-tautology.cnf
s4: s4-python s4-drat-trim s4-tautology
s6-python: Keller-encode tools/pprsearch/pprsearch tools/ppr2drat
${PYTHON} Keller.py 6 s6 ./Keller-encode tools/pprsearch/pprsearch tools/ppr2drat
s6-drat-trim: tools/drat-trim/drat-trim
for drat in $(shell ls -1 s6.*.drat); do \
cnffile="$$(basename $${drat} .drat).cnf"; \
echo $${cnffile}; \
tools/drat-trim/drat-trim $${cnffile} $${drat} -f; \
done
s6-tautology: tools/tautology
tools/dnf2cnf.sh s6.dnf > s6-tautology.cnf
tools/tautology s6-tautology.cnf
rm s6-tautology.cnf
s6: s6-python s6-drat-trim s6-tautology