summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSon Ho2022-03-04 14:01:27 +0100
committerSon Ho2022-03-04 14:01:27 +0100
commit479694819f7409cf92b4d0f2775853cda18c3ab4 (patch)
tree6c5135ee62fd2ce9752ae927abd3f7ef9ab182cf /Makefile
parent3ecca99a25369fecf990d922e6ccbaa31f71190a (diff)
Fix minor issues for the translation of hashmap_on_disk
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile40
1 files changed, 22 insertions, 18 deletions
diff --git a/Makefile b/Makefile
index c9839b45..0d99fa40 100644
--- a/Makefile
+++ b/Makefile
@@ -29,21 +29,26 @@ build:
# Test the project
.PHONY: test
-test: build translate-no_nested_borrows translate-hashmap translate-paper \
- translate-external translate-nll-betree_nll
+test: build trans-no_nested_borrows trans-paper \
+ trans-hashmap trans-hashmap_main \
+ trans-external trans-nll-betree_nll
# Add specific options to some tests
-translate-no_nested_borrows translate-paper: \
+trans-no_nested_borrows trans-paper: \
TRANS_OPTIONS += -test-units -no-split-files -no-state -no-decreases-clauses
-translate-no_nested_borrows translate-paper: SUBDIR:=misc
-translate-hashmap: TRANS_OPTIONS += -template-clauses -no-state
-translate-hashmap: SUBDIR:=hashmap
+trans-no_nested_borrows trans-paper: SUBDIR:=misc
-translate-nll-betree_nll: TRANS_OPTIONS += -test-units -no-split-files -no-state -no-decreases-clauses
-translate-nll-betree_nll: SUBDIR:=misc
+trans-hashmap: TRANS_OPTIONS += -template-clauses -no-state
+trans-hashmap: SUBDIR:=hashmap
-translate-external: TRANS_OPTIONS +=
-translate-external: SUBDIR:=misc
+trans-hashmap_main: TRANS_OPTIONS += -template-clauses
+trans-hashmap_main: SUBDIR:=hashmap_on_disk
+
+trans-nll-betree_nll: TRANS_OPTIONS += -test-units -no-split-files -no-state -no-decreases-clauses
+trans-nll-betree_nll: SUBDIR:=misc
+
+trans-external: TRANS_OPTIONS +=
+trans-external: SUBDIR:=misc
# Generic rules to extract the LLBC from a rust file
# We use the rules in Charon's Makefile to generate the .llbc files: the options
@@ -52,17 +57,16 @@ translate-external: SUBDIR:=misc
gen-llbc-%: build
cd $(CHARON_HOME) && make test-$*
-# Generic rule to test the translation on an LLBC file.
-# Note that the non-linear lifetime files are generated in the tests-nll
-# subdirectory.
-.PHONY: translate-%
-translate-%: CHARON_TESTS_DIR = $(CHARON_HOME)/tests/llbc
-translate-nll-%: CHARON_TESTS_DIR = $(CHARON_HOME)/tests-nll/llbc
+# Generic rule to test the translation of an LLBC file.
+# Note that the non-linear lifetime files are generated in the tests-nll subdirectory.
+.PHONY: trans-%
+trans-%: CHARON_TESTS_DIR = $(CHARON_HOME)/tests/llbc
+trans-nll-%: CHARON_TESTS_DIR = $(CHARON_HOME)/tests-nll/llbc
-translate-%: gen-llbc-%
+trans-%: gen-llbc-%
dune exec -- src/main.exe $(CHARON_TESTS_DIR)/$*.llbc -dest $(DEST_DIR)/$(SUBDIR) $(TRANS_OPTIONS)
-translate-nll-%: gen-llbc-nll-%
+trans-nll-%: gen-llbc-nll-%
dune exec -- src/main.exe $(CHARON_TESTS_DIR)/$*.llbc -dest $(DEST_DIR)/$(SUBDIR) $(TRANS_OPTIONS)
.PHONY: doc