Skip to content

Commit 91ad84f

Browse files
committed
First Commit
Signed-off-by: Bruno Ribas <[email protected]>
1 parent 532f846 commit 91ad84f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+445786
-340
lines changed

.gitattributes

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
formulas/* filter=lfs diff=lfs merge=lfs -text
2+
input/* filter=lfs diff=lfs merge=lfs -text
3+
output/* filter=lfs diff=lfs merge=lfs -text
4+
simple-gsat-io-generator filter=lfs diff=lfs merge=lfs -text

Makefile

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
ifndef DISTRIBUIRALUNOS
2+
FORMULAS=$(wildcard formulas/*cnf)
3+
else
4+
FORMULAS=formulas/simples.cnf\
5+
formulas/uf20-01.cnf\
6+
formulas/flat75-90.cnf
7+
TIMELIMIT?=5
8+
endif
9+
10+
INPUT=$(patsubst formulas/%.cnf,input/%,${FORMULAS})
11+
TESTRUN=$(patsubst formulas/%.cnf,benchmark/%,${FORMULAS})
12+
TIMELIMIT?=30
13+
DEFAULTSEED?=3000
14+
GSATGENERATOR=./simple-gsat-io-generator
15+
BENCHMARKBINARY?=$(GSATGENERATOR)
16+
17+
all: $(INPUT)
18+
@echo All DONE
19+
20+
input/%: formulas/%.cnf
21+
./simple-gsat-io-generator generator $(DEFAULTSEED) $^ $@ $(patsubst input/%,output/%,$@) $(TIMELIMIT)
22+
23+
benchmark/%: input/%
24+
@echo "== $^"
25+
time -p $(BENCHMARKBINARY) < $^ > $@
26+
27+
benchmark: benchmarkdir all $(TESTRUN)
28+
29+
benchmarkdir:
30+
mkdir -p benchmark
31+
clean:
32+
rm -f benchmark/*
33+
dist-clean: clean
34+
rm -f input/* output/*
35+
36+
PHONY: all benchmark benchmarkdir clean dist-clean

0 commit comments

Comments
 (0)