blob: 44dd6f36a9679ba6b39acc21fde2691b3614ee4c (
plain)
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
|
## Makefile Parameters #########################################################
LEVELS_DIR ?= ${CURDIR}/data/level/
PROPERTIES_DIR ?= ${CURDIR}/data/property/
#PROPERTIES ?= $(basename $(notdir $(wildcard $(PROPERTIES_DIR)/*.pro)))
# Below is a list of properties that removes those requiring "inferred"
# features. Comment the line above and uncomment the line below to use those.
# Also, see the definition of PROP_TO_PRED further down.
PROPERTIES ?= $(filter-out flip_flop CNE_01700 test, $(basename $(notdir $(wildcard $(PROPERTIES_DIR)/*.pro))))
AST_FILE ?= ${CURDIR}/data/ast/best_chronometer_ever.xml
TEMPLATE_DIR ?= ${CURDIR}/data/template/
TO_PRED_TEMPLATE_DIR ?= ${CURDIR}/data/to_pred_template/
#AST_FILE = ${CURDIR}/data/ast/pong.xml
NICE_MESSAGE ?=
TMP_DIR ?= /tmp/tabellion
DEPENDENCIES_DIR ?= $(TMP_DIR)/deps
MODEL_DIR ?= $(TMP_DIR)/mod
MODEL_INSTANCES_DIR ?= $(MODEL_DIR)/instance
MODEL_INFERRED_DIR ?= $(MODEL_DIR)/inferred
SOL_DIR ?= $(TMP_DIR)/sol
INFERRED_LEVEL_FILE ?= $(LEVELS_DIR)/inferred.lvl
## Sub-programs ################################################################
AST_TO_INSTR ?= ast-to-instr
INST_CALC ?= instance-calculator
SOLVER ?= instr-to-kodkod
PRETTY_PRINTER ?= sol-pretty-printer
#PROP_TO_PRED ?= prop-to-pred
# Line above: use "inferred" feature, line below: do not use "inferred" feature.
PROP_TO_PRED ?= no-prop-to-pred
export
################################################################################
ALL_PROPERTY_FILES = $(wildcard $(PROPERTIES_DIR)/*.pro)
ALL_DIRS = \
$(TMP_DIR) \
$(DEPENDENCIES_DIR) \
$(MODEL_DIR) \
$(MODEL_INSTANCES_DIR) \
$(TO_PRED_TEMPLATE_DIR) \
$(MODEL_INFERRED_DIR) \
$(SOL_DIR)
all: $(ALL_DIRS)
$(MAKE) compile
$(MAKE) model
$(MAKE) solutions
compile: $(ALL_DIRS)
$(MAKE) -C $(AST_TO_INSTR) compile
$(MAKE) -C $(INST_CALC) compile
$(MAKE) -C $(SOLVER) compile
$(MAKE) -C $(PRETTY_PRINTER) compile
$(MAKE) -C $(PROP_TO_PRED) compile
model: $(ALL_DIRS)
$(MAKE) -C $(AST_TO_INSTR) model
$(MAKE) -C $(INST_CALC) model
$(MAKE) -C $(SOLVER) model
$(MAKE) -C $(PRETTY_PRINTER) model
$(MAKE) -C $(PROP_TO_PRED) model
solutions: $(ALL_DIRS)
$(MAKE) -C $(AST_TO_INSTR) solutions
$(MAKE) -C $(INST_CALC) solutions
$(MAKE) -C $(SOLVER) solutions
$(MAKE) -C $(PRETTY_PRINTER) solutions
$(MAKE) -C $(PROP_TO_PRED) solutions
clean:
$(MAKE) -C $(AST_TO_INSTR) clean
$(MAKE) -C $(INST_CALC) clean
$(MAKE) -C $(SOLVER) clean
$(MAKE) -C $(PRETTY_PRINTER) clean
$(MAKE) -C $(PROP_TO_PRED) clean
clean_model:
$(MAKE) -C $(AST_TO_INSTR) clean_model
$(MAKE) -C $(INST_CALC) clean_model
$(MAKE) -C $(SOLVER) clean_model
$(MAKE) -C $(PRETTY_PRINTER) clean_model
$(MAKE) -C $(PROP_TO_PRED) clean_model
clean_solutions:
$(MAKE) -C $(AST_TO_INSTR) clean_solutions
$(MAKE) -C $(INST_CALC) clean_solutions
$(MAKE) -C $(SOLVER) clean_solutions
$(MAKE) -C $(PRETTY_PRINTER) clean_solutions
$(MAKE) -C $(PROP_TO_PRED) clean_solutions
$(ALL_DIRS):
mkdir -p $@
|