DOCUMENT:=ar
SOURCES:=$(filter-out preamble.tex,$(shell ls *.tex))
+LISTINGS:=$(shell ls src/*)
+IMAGES:=$(shell ls *.png)
.SECONDARY: $(addsuffix .fmt,$(DOCUMENT))
all: $(DOCUMENT).pdf
-%.pdf: %.tex %.fmt $(SOURCES)
+%.pdf: %.tex %.fmt $(SOURCES) $(LISTINGS) $(IMAGES)
$(LATEX) $(basename $@)
$(LATEX) $(basename $@)
my = 22
pd = 17
-# Print preamble
-print("(benchmark a4.smt")
-print(":logic QF_UFLIA")
-# Print variables
-print(":extrafuns (")
+# Print variables and preamble
+print('(benchmark a4.smt')
+print(':logic QF_UFLIA')
+print(':extrafuns (')
for i, (w, h) in enumerate(pc+rc, 1):
- print("(c{}x Int)".format(i), end=' ')
- print("(c{}y Int)".format(i), end=' ')
- print("(c{}w Int)".format(i), end=' ')
- print("(c{}h Int)".format(i))
-print(")")
+ print('(c{}x Int)'.format(i), end=' ')
+ print('(c{}y Int)'.format(i), end=' ')
+ print('(c{}w Int)'.format(i), end=' ')
+ print('(c{}h Int)'.format(i))
+print(')')
-print(":formula")
-print("(and")
+print(':formula')
+print('(and')
# Print the PC and RC subformulas
for i, (w, h) in enumerate(pc+rc, 1):
print(')')
# Close the and,benchmark parenthesis
-print("))")
+print('))')
iterations = int(sys.argv[1]) if len(sys.argv) > 1 else 11
numa = 7
-# Print preamble
+# Print variables and preamble
print("(benchmark a4.smt")
print(":logic QF_UFLIA")
-
-# Print variables
print(":extrafuns (")
print("(a{} Int)".format(1))
print("(a{} Int)".format(numa))