Skip to content

Commit 8cfd6a2

Browse files
committed
switch to safe_string, use functions from Util
1 parent 4be54d3 commit 8cfd6a2

File tree

13 files changed

+34
-45
lines changed

13 files changed

+34
-45
lines changed

README.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,33 @@ Requirements
1010

1111
Definitions and proofs:
1212

13-
- [`Coq 8.5`](https://coq.inria.fr/coq-85)
13+
- [`Coq 8.6`](https://coq.inria.fr/coq-86)
1414
- [`Verdi`](https://github.com/uwplse/verdi)
1515
- [`math-comp`](https://math-comp.github.io/math-comp/) (`ssreflect`, `fingroup`, `algebra`)
1616
- [`StructTact`](https://github.com/uwplse/StructTact)
1717
- [`InfSeqExt`](https://github.com/DistributedComponents/InfSeqExt)
1818
- [`AAC_tactics`](https://github.com/coq-contribs/aac-tactics)
19+
- [`Cheerios`](https://github.com/uwplse/cheerios)
1920
- [`verdi-cheerios`](https://github.com/DistributedComponents/verdi-cheerios)
2021

2122
Executable code:
2223

23-
- [`OCaml 4.02.3`](https://ocaml.org)
24+
- [`OCaml 4.02.3`](https://ocaml.org) (or later)
2425
- [`OCamlbuild`](https://github.com/ocaml/ocamlbuild)
2526
- [`ocamlfind`](http://projects.camlcity.org/projects/findlib.html)
2627
- [`verdi-runtime`](https://github.com/DistributedComponents/verdi-runtime)
2728
- [`Uuidm`](http://erratique.ch/software/uuidm)
2829
- [`PortAudio`](http://www.portaudio.com)
2930
- [`ocaml-portaudio`](https://github.com/savonet/ocaml-portaudio)
3031

32+
Integration testing of executable code:
33+
34+
- [`Python 2.7`](https://www.python.org/download/releases/2.7/)
35+
36+
Unit testing of unverified code:
37+
38+
- [`OUnit 2.0.0`](http://ounit.forge.ocamlcore.org)
39+
3140
Building
3241
--------
3342

@@ -38,12 +47,12 @@ The recommended way to install the OCaml and Coq dependencies of Verdi Aggregati
3847
```
3948
opam repo add coq-released https://coq.inria.fr/opam/released
4049
opam repo add distributedcomponents-dev http://opam-dev.distributedcomponents.net
41-
opam install coq-mathcomp-ssreflect coq-mathcomp-fingroup coq-mathcomp-algebra coq-aac-tactics
42-
opam install verdi StructTact InfSeqExt verdi-cheerios verdi-runtime uuidm portaudio
50+
opam install coq-mathcomp-ssreflect coq-mathcomp-fingroup coq-mathcomp-algebra coq-aac-tactics \
51+
verdi StructTact InfSeqExt cheerios verdi-cheerios verdi-runtime uuidm portaudio
4352
```
4453

4554
Then, run `./configure` in the root directory. This will check for the appropriate version of Coq and ensure all necessary dependencies can be located.
4655

47-
By default, the script assumes that `Verdi`, `StructTact`, `InfSeqExt`, and `VerdiCheerios` are installed in Coq's `user-contrib` directory, but this can be overridden by setting the `Verdi_PATH`, `StructTact_PATH`, `InfSeqExt_PATH`, and `VerdiCheerios_PATH` environment variables.
56+
By default, the script assumes that `Verdi`, `StructTact`, `InfSeqExt`, `Cheerios`, and `VerdiCheerios` are installed in Coq's `user-contrib` directory, but this can be overridden by setting the `Verdi_PATH`, `StructTact_PATH`, `InfSeqExt_PATH`, `Cheerios_PATH`, and `VerdiCheerios_PATH` environment variables.
4857

4958
Finally, run `make` in the root directory.

extraction/aggregation-dynamic/Makefile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
PYTHON=python2.7
22

3-
OCAMLBUILD = ocamlbuild -use-ocamlfind -tag thread -package 'uuidm verdi-runtime portaudio bigarray' -I ocaml -cflag -g
4-
OCAMLBUILD_TEST = $(OCAMLBUILD) -package oUnit -I test
3+
OCAMLBUILD = ocamlbuild -use-ocamlfind -tags 'thread safe_string' -pkgs 'uuidm verdi-runtime portaudio bigarray' -I ocaml -cflag -g
4+
OCAMLBUILD_TEST = $(OCAMLBUILD) -pkg oUnit -I test
55

66
MLEXTRACTED = ocaml/TreeAggregation.ml ocaml/TreeAggregation.mli
77

88
MLFILES = ocaml/TreeAggregationArrangement.ml ocaml/TreeAggregationMain.ml \
99
ocaml/Serialization.ml ocaml/Record.ml ocaml/SerializationIntPair.ml ocaml/TreeAggregationOpts.ml
1010

11-
MLFILES_TEST = test/SerializationTest.ml test/OptsTest.ml \
12-
test/TreeAggregationTest.ml test/TestCommon.ml
11+
MLFILES_TEST = test/SerializationTest.ml test/OptsTest.ml test/TreeAggregationTest.ml test/UtilTest.ml
1312

1413
default: TreeAggregationMain.native
1514

extraction/aggregation-dynamic/test/OptsTest.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
open OUnit2
22
open ListLabels
3-
open TestCommon
3+
open Util
44

55
let tear_down () test_ctxt =
66
Opts.cluster := Opts.cluster_default;

extraction/aggregation-dynamic/test/TestCommon.ml

Lines changed: 0 additions & 3 deletions
This file was deleted.

extraction/aggregation/Makefile

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
PYTHON=python2.7
22

3-
OCAMLBUILD = ocamlbuild -package uuidm -package verdi-runtime -I ocaml -cflag -g
4-
OCAMLBUILD_TEST = $(OCAMLBUILD) -package oUnit -I test
3+
OCAMLBUILD = ocamlbuild -tag safe_string -pkgs 'uuidm verdi-runtime' -I ocaml -cflag -g
4+
OCAMLBUILD_TEST = $(OCAMLBUILD) -pkg oUnit -I test
55

66
MLEXTRACTED = ocaml/TreeAggregation.ml ocaml/TreeAggregation.mli
7-
8-
MLFILES = ocaml/TreeAggregationArrangement.ml ocaml/TreeAggregationMain.ml \
9-
ocaml/Serialization.ml
10-
11-
MLFILES_TEST = test/SerializationTest.ml test/OptsTest.ml \
12-
test/TreeAggregationTest.ml test/TestCommon.ml
7+
MLFILES = ocaml/TreeAggregationArrangement.ml ocaml/TreeAggregationMain.ml ocaml/Serialization.ml
8+
MLFILES_TEST = test/SerializationTest.ml test/OptsTest.ml test/TreeAggregationTest.ml test/UtilTest.ml
139

1410
default: TreeAggregationMain.native
1511

extraction/aggregation/test/OptsTest.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
open OUnit2
22
open ListLabels
3-
open TestCommon
3+
open Util
44

55
let tear_down () text_ctxt =
66
Opts.cluster := Opts.cluster_default;

extraction/aggregation/test/TestCommon.ml

Lines changed: 0 additions & 3 deletions
This file was deleted.

extraction/tree-dynamic/Makefile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
OCAMLBUILD = ocamlbuild -package uuidm -package verdi-runtime -I ocaml -cflag -g
2-
OCAMLBUILD_TEST = $(OCAMLBUILD) -package oUnit -I test
1+
OCAMLBUILD = ocamlbuild -tag safe_string -pkgs 'uuidm verdi-runtime' -I ocaml -cflag -g
2+
OCAMLBUILD_TEST = $(OCAMLBUILD) -pkg oUnit -I test
33

44
MLEXTRACTED = ocaml/Tree.ml ocaml/Tree.mli
5-
65
MLFILES = ocaml/TreeArrangement.ml ocaml/TreeMain.ml ocaml/Serialization.ml
7-
86
MLFILES_TEST = test/SerializationTest.ml test/TreeTest.ml
97

108
default: TreeMain.native

extraction/tree/Makefile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
OCAMLBUILD = ocamlbuild -package uuidm -package verdi-runtime -I ocaml -cflag -g
2-
OCAMLBUILD_TEST = $(OCAMLBUILD) -package oUnit -I test
1+
OCAMLBUILD = ocamlbuild -tag safe_string -pkgs 'uuidm verdi-runtime' -I ocaml -cflag -g
2+
OCAMLBUILD_TEST = $(OCAMLBUILD) -pkg oUnit -I test
33

44
MLEXTRACTED = ocaml/Tree.ml ocaml/Tree.mli
5-
65
MLFILES = ocaml/TreeArrangement.ml ocaml/TreeMain.ml ocaml/Serialization.ml
7-
86
MLFILES_TEST = test/SerializationTest.ml test/TreeTest.ml
97

108
default: TreeMain.native

extraction/zaggregation-dynamic/Makefile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
PYTHON=python2.7
22

3-
OCAMLBUILD = ocamlbuild -use-ocamlfind -tag thread -package 'uuidm verdi-runtime' -I ocaml -cflag -g
4-
OCAMLBUILD_TEST = $(OCAMLBUILD) -package oUnit -I test
3+
OCAMLBUILD = ocamlbuild -use-ocamlfind -tags 'thread safe_string' -pkgs 'uuidm verdi-runtime' -I ocaml -cflag -g
4+
OCAMLBUILD_TEST = $(OCAMLBUILD) -pkg oUnit -I test
55

66
MLEXTRACTED = ocaml/ZTreeAggregation.ml ocaml/ZTreeAggregation.mli
7-
87
MLFILES = ocaml/ZTreeAggregationArrangement.ml ocaml/ZTreeAggregationMain.ml ocaml/Serialization.ml
9-
10-
MLFILES_TEST = test/SerializationTest.ml test/ZTreeAggregationTest.ml test/TestCommon.ml
8+
MLFILES_TEST = test/SerializationTest.ml test/ZTreeAggregationTest.ml test/OptsTest.ml
119

1210
default: ZTreeAggregationMain.native
1311

0 commit comments

Comments
 (0)