-
Notifications
You must be signed in to change notification settings - Fork 4
/
gen-mono-specs
executable file
·60 lines (55 loc) · 1.03 KB
/
gen-mono-specs
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
#!/bin/bash
if [[ $# -ne 0 ]]; then
echo "usage:" $0
exit 1
fi
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
mkdir -p specifications/mono
mkdir -p specifications-backup/mono
mv specifications/mono/*.elm specifications-backup/mono 2> /dev/null
run() {
$DIR/smyth generate-spec $1 > specifications/mono/$1.elm
}
run bool_band
run bool_bor
run bool_impl
run bool_neg
run bool_xor
run list_append
run list_compress
run list_concat
run list_drop
run list_even_parity
run list_filter
run list_fold
run list_hd
run list_inc
run list_last
run list_length
run list_map
run list_nth
run list_pairwise_swap
run list_rev_append
run list_rev_fold
run list_rev_snoc
run list_rev_tailcall
run list_snoc
run list_sort_sorted_insert
run list_sorted_insert
run list_stutter
run list_sum
run list_take
run list_tl
run nat_add
run nat_iseven
run nat_max
run nat_pred
run tree_binsert
run tree_collect_leaves
run tree_count_leaves
run tree_count_nodes
run tree_inorder
run tree_map
run tree_nodes_at_level
run tree_postorder
run tree_preorder