summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSon Ho2022-11-14 14:14:38 +0100
committerSon HO2022-11-14 14:21:04 +0100
commit6f714017d71a512042b22d7d0e987f75b47a088f (patch)
treeed608a74538ff5a34a32a2aee9094e9f41979121 /Makefile
parent6cfd60a0d75a1fcc3734aa9729c79acbfb30e546 (diff)
Extract the Polonius examples in Coq
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d56ffbf7..1a06152a 100644
--- a/Makefile
+++ b/Makefile
@@ -130,10 +130,12 @@ tcoq-hashmap_main: OPTIONS += -use-fuel
transp-polonius_list: OPTIONS += -test-units -test-trans-units -no-split-files -no-state
transp-polonius_list: SUBDIR:=misc
tfstarp-polonius_list: OPTIONS +=
+tcoqp-polonius_list: OPTIONS +=
trans-constants: OPTIONS += -test-units -test-trans-units -no-split-files -no-state
trans-constants: SUBDIR:=misc
tfstar-constants: OPTIONS +=
+tcoq-constants: OPTIONS +=
trans-external: OPTIONS +=
trans-external: SUBDIR:=misc
@@ -143,6 +145,7 @@ BETREE_FSTAR_OPTIONS = -decreases-clauses -template-clauses
transp-betree_main: OPTIONS += -backward-no-state-update
transp-betree_main: SUBDIR:=betree
tfstarp-betree_main: OPTIONS += $(BETREE_FSTAR_OPTIONS)
+tcoqp-betree_main: OPTIONS += -use-fuel
# Additional test on the betree: translate it without `-backward-no-state-update`.
# This generates very ugly code, but is good to test the translation.
@@ -184,7 +187,7 @@ trans-%: gen-llbc-% tfstar-% tcoq-%
.PHONY: transp-%
transp-%: CHARON_TEST_DIR = $(CHARON_TESTS_POLONIUS_DIR)
transp-%: FILE = $*
-transp-%: gen-llbcp-% tfstarp-%
+transp-%: gen-llbcp-% tfstarp-% tcoqp-%
echo "# Test $* done"
.PHONY: tfstar-%
@@ -206,6 +209,13 @@ tcoq-%: BACKEND_SUBDIR := coq
tcoq-%:
$(AENEAS_CMD)
+# "p" stands for "Polonius"
+.PHONY: tcoqp-%
+tcoqp-%: OPTIONS += -backend coq
+tcoqp-%: BACKEND_SUBDIR := coq
+tcoqp-%:
+ $(AENEAS_CMD)
+
# Nix
.PHONY: nix
nix: