######################################################################
# Copyright 2018-2020 Alain Giorgetti                                #
# FEMTO-ST institute                                                 #
######################################################################

######################################################################
#  This software is distributed under the terms of the GNU Lesser    #
#  General Public License version 2.1                                #
######################################################################

# why3/enum/cursor/permutation/Makefile

.PHONY: test ide prove replay extract

test:
	why3 execute -L ../.. Enum.mlw Main.run

ide:
	why3 ide -L ../.. Enum.mlw

prove:
	why3 prove -L ../.. -P alt-ergo Enum.mlw

replay:
	why3 replay Enum

extract:
	# In CUT 2.2:
	# why3 extract -L ../.. -D ocaml64 Enum.mlw -T Enum -o ../../../../OCaml/enum/cursor/permutation/
	# With Why3 1.3.3:
	why3 extract --modular --recursive -F whyml -D ocaml64 -L . Enum.Enum -o ../../../../OCaml/enum/cursor/permutation/
	cp ../../../../OCaml/enum/cursor/barray/SCutil.ml ../../../../OCaml/enum/cursor/permutation/
