Skip to content

Commit 8775ef0

Browse files
authored
Merge pull request #184 from Kakadu/hypercube-sample
Samples: Relational finite set using hypercubes
2 parents a4adec1 + cff0c18 commit 8775ef0

5 files changed

Lines changed: 695 additions & 9 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ _build
1111
/.vscode
1212
.merlin
1313
/oc-qtc*
14+
_coverage
1415

samples/.ocamlformat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
version = 0.26.2

samples/.ocamlformat-ignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
len.ml
2+
JeepProblem.ml
3+
Sorting.ml
4+
tree.ml
5+
WGC.ml

samples/dune

Lines changed: 33 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
(file %{project_root}/ppx/pp_distrib_gt_reify.exe))
2828
(libraries GT OCanren))
2929

30-
(executable
31-
(name len)
30+
(executables
31+
(names len)
3232
(modules len)
3333
(preprocess
3434
(action
@@ -73,10 +73,34 @@
7373
(deps tree.exe sorting.exe WGC.exe JeepProblem.exe len.exe))
7474

7575
(cram
76-
(deps
77-
tree.exe
78-
sorting.exe
79-
WGC.exe
80-
JeepProblem.exe
81-
;
82-
))
76+
(applies_to tree)
77+
(deps tree.exe))
78+
79+
(cram
80+
(applies_to sorting)
81+
(deps sorting.exe))
82+
83+
(cram
84+
(applies_to WGC)
85+
(deps WGC.exe))
86+
87+
(cram
88+
(applies_to Jeep)
89+
(deps JeepProblem.exe))
90+
91+
(library
92+
(name hypercube)
93+
(modules hypercube)
94+
(libraries GT OCanren OCanren.tester)
95+
(inline_tests)
96+
; (instrumentation
97+
; (backend bisect_ppx))
98+
(preprocess
99+
(pps
100+
OCanren-ppx.ppx_fresh
101+
OCanren-ppx.ppx_distrib
102+
OCanren-ppx.ppx_deriving_reify
103+
GT.ppx_all
104+
ppx_expect))
105+
(preprocessor_deps
106+
(file %{project_root}/ppx/pp_ocanren_all.exe)))

0 commit comments

Comments
 (0)