11 ACTIONS="$MIRABELLE_HOME/Actions/mirabelle_*.ML" |
11 ACTIONS="$MIRABELLE_HOME/Actions/mirabelle_*.ML" |
12 for ACTION in $ACTIONS |
12 for ACTION in $ACTIONS |
13 do |
13 do |
14 echo $ACTION | perl -w -p -e 's/.*mirabelle_(.*)\.ML/ $1/' |
14 echo $ACTION | perl -w -p -e 's/.*mirabelle_(.*)\.ML/ $1/' |
15 done |
15 done |
|
16 } |
|
17 |
|
18 function print_sledgehammer_options() { |
|
19 grep -e "^val .*K =" $MIRABELLE_HOME/Actions/mirabelle_sledgehammer.ML \ |
|
20 | perl -w -p -e 's/val .*K *= *"(.*)" *\(\*(.*)\*\)/ $1$2/' |
16 } |
21 } |
17 |
22 |
18 function usage() { |
23 function usage() { |
19 [ -n "$MIRABELLE_OUTPUT_PATH" ] && out="$MIRABELLE_OUTPUT_PATH" || out="None" |
24 [ -n "$MIRABELLE_OUTPUT_PATH" ] && out="$MIRABELLE_OUTPUT_PATH" || out="None" |
20 timeout="$MIRABELLE_TIMEOUT" |
25 timeout="$MIRABELLE_TIMEOUT" |
34 echo " ACTIONS is a colon-separated list of actions, where each action is" |
39 echo " ACTIONS is a colon-separated list of actions, where each action is" |
35 echo " either NAME or NAME[OPTION,...,OPTION]. Available actions are:" |
40 echo " either NAME or NAME[OPTION,...,OPTION]. Available actions are:" |
36 print_action_names |
41 print_action_names |
37 echo |
42 echo |
38 echo " Available OPTIONs for the ACTION sledgehammer:" |
43 echo " Available OPTIONs for the ACTION sledgehammer:" |
39 echo " * prover=NAME: name of the external prover to call" |
44 print_sledgehammer_options |
40 echo " * prover_timeout=TIME: timeout for invoked ATP (seconds of process time)" |
|
41 echo " * prover_hard_timeout=TIME: timeout for invoked ATP (seconds of elapsed" |
|
42 echo " time)" |
|
43 echo " * keep=PATH: path where to keep temporary files created by sledgehammer" |
|
44 echo " * full_types: enable fully-typed encoding" |
|
45 echo " * minimize: enable minimization of theorem set found by sledgehammer" |
|
46 echo " * minimize_timeout=TIME: timeout for each minimization step (seconds of" |
|
47 echo " process time)" |
|
48 echo " * metis: apply metis to the theorems found by sledgehammer" |
|
49 echo " * metis_ft: apply metis with fully-typed encoding to the theorems found" |
|
50 echo " by sledgehammer" |
|
51 echo |
45 echo |
52 echo " FILES is a list of theory files, where each file is either NAME.thy" |
46 echo " FILES is a list of theory files, where each file is either NAME.thy" |
53 echo " or NAME.thy[START:END] and START and END are numbers indicating the" |
47 echo " or NAME.thy[START:END] and START and END are numbers indicating the" |
54 echo " range the given actions are to be applied." |
48 echo " range the given actions are to be applied." |
55 echo |
49 echo |