-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
43 lines (34 loc) · 1.5 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
all: matita/matita/matita
.PHONY: matita/matita/matita
matita/matita/matita: elpi/findlib/elpi/elpi.cmxa matita/Makefile.defs
$(MAKE) -C matita
matita/Makefile.defs:
cd matita && autoconf && ./configure
elpi/findlib/elpi/elpi.cmxa:
git submodule update --init
$(MAKE) -C elpi
clean:
$(MAKE) -C elpi clean
$(MAKE) -C matita clean
rm -f time.*
run: matita/matita/matita
TJPATH=`pwd`/elpi ./matita/matita/matita -elpi FG1 matita/matita/lib/arithmetics/nat.ma
print:
cd refiner-CSC;\
../elpi/elpi ../elpi/utils/elpi2mathjx.elpi -exec \
main -- all_refiner.elpi ../refiner-CSC.html \
pervasives test_refiner test_kernel list logic
BOUND=0.01
timing: time.logic time.relations time.nat
@echo OK: `grep OK time.* | wc -l`
@echo KO: `grep KO time.* | wc -l`
@echo TIMEOUT: `grep TIME time.* | wc -l`
@echo Matita: `cut -f 1 time.* | paste -sd+ - | bc`
@echo ELPI.OK: `cut -f 2 time.* | grep OK | cut -d ' ' -f 2 | paste -sd+ - | bc`
@echo ELPI.OK.BOUND: `cut -f 2 time.* | grep OK | cut -d ' ' -f 2 | awk '{ if (\$$0 < $(BOUND)) print \$$0}' | paste -sd+ - | bc` on `cut -f 2 time.* | grep OK | cut -d ' ' -f 2 | awk '{ if (\$$0 < $(BOUND)) print \$$0}' | wc -l` of `cat time.* | grep OK | wc -l` samples
time.%:
rm -rf ~/.elpi/
./matita/matita/matitac -elpi CSC ./matita/matita/lib/*/$*.ma -elpi-quiet -elpi-maxsteps 200000 > log 2>&1
grep 'Matita refinement time' log | cut -d : -f 2- > log.matita.$*
grep 'ELPI refinement time' log | cut -d : -f 2- > log.elpi.$*
paste log.matita.$* log.elpi.$* > time.$*