-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from coq-community/full-dune
Full Dune-based builds
- Loading branch information
Showing
16 changed files
with
131 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,16 @@ | ||
include Makefile.ml-files | ||
|
||
$(ALGSML): coq/Algorithms/Extract.v coq/Algorithms/KVSAlg1.vo coq/Algorithms/KVSAlg2.vo coq/Algorithms/KVSAlg3.vo | ||
$(COQC) $(COQDEBUG) $(COQFLAGS) $(COQLIBS) coq/Algorithms/Extract.v | ||
$(ALG1): ml/ExtractAlgorithm1.v coq/Algorithms/KVSAlg1.vo coq/Algorithms/ExtractAlgorithm.vo | ||
cd ml && $(COQC) $(COQDEBUG) $(COQFLAGS) -Q ../coq Chapar ExtractAlgorithm1.v | ||
|
||
$(ALG2): ml/ExtractAlgorithm2.v coq/Algorithms/KVSAlg2.vo coq/Algorithms/ExtractAlgorithm.vo | ||
cd ml && $(COQC) $(COQDEBUG) $(COQFLAGS) -Q ../coq Chapar ExtractAlgorithm2.v | ||
|
||
$(ALG3): ml/ExtractAlgorithm3.v coq/Algorithms/KVSAlg3.vo coq/Algorithms/ExtractAlgorithm.vo | ||
cd ml && $(COQC) $(COQDEBUG) $(COQFLAGS) -Q ../coq Chapar ExtractAlgorithm3.v | ||
|
||
clean:: | ||
rm -f $(ALGSML) | ||
rm -f $(ALGSML) ml/.ExtractAlgorithm1.aux ml/.ExtractAlgorithm2.aux ml/.ExtractAlgorithm3.aux \ | ||
ml/ExtractAlgorithm1.vo ml/ExtractAlgorithm1.vos ml/ExtractAlgorithm1.vok ml/ExtractAlgorithm1.glob \ | ||
ml/ExtractAlgorithm2.vo ml/ExtractAlgorithm2.vos ml/ExtractAlgorithm2.vok ml/ExtractAlgorithm2.glob \ | ||
ml/ExtractAlgorithm3.vo ml/ExtractAlgorithm3.vos ml/ExtractAlgorithm3.vok ml/ExtractAlgorithm3.glob |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
ALG1ML = coq/KVSAlg1.ml | ||
ALG1MLI = coq/KVSAlg1.mli | ||
ALG1ML = ml/KVSAlg1.ml | ||
ALG1MLI = ml/KVSAlg1.mli | ||
ALG1 = $(ALG1ML) $(ALG1MLI) | ||
ALG2ML = coq/KVSAlg2.ml | ||
ALG2MLI = coq/KVSAlg2.mli | ||
ALG2ML = ml/KVSAlg2.ml | ||
ALG2MLI = ml/KVSAlg2.mli | ||
ALG2 = $(ALG2ML) $(ALG2MLI) | ||
ALG3ML = coq/KVSAlg3.ml | ||
ALG3MLI = coq/KVSAlg3.mli | ||
ALG3ML = ml/KVSAlg3.ml | ||
ALG3MLI = ml/KVSAlg3.mli | ||
ALG3 = $(ALG3ML) $(ALG3MLI) | ||
ALGSML = $(ALG1) $(ALG2) $(ALG3) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
(coq.theory | ||
(name Chapar) | ||
(package coq-chapar) | ||
(synopsis "A framework for verification of causal consistency for distributed key-value stores and their clients in Coq") | ||
(modules :standard \ Algorithms.Extract) | ||
(flags -w -extraction-axiom-to-realize)) | ||
(synopsis "A framework for verification of causal consistency for distributed key-value stores and their clients in Coq")) | ||
|
||
(include_subdirs qualified) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
From Chapar Require Import KVSAlg1. | ||
From Chapar Require Import ExtractAlgorithm. | ||
|
||
Extract Constant KVStore.SysPredefs.MaxNId => "4". | ||
|
||
Extraction "KVSAlg1.ml" KVSAlg1.KVSAlg1. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
From Chapar Require Import KVSAlg2. | ||
From Chapar Require Import ExtractAlgorithm. | ||
|
||
Extract Constant KVStore.SysPredefs.MaxNId => "4". | ||
|
||
Extraction "KVSAlg2.ml" KVSAlg2.KVSAlg2. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
From Chapar Require Import KVSAlg3. | ||
From Chapar Require Import ExtractAlgorithm. | ||
|
||
Extract Constant KVStore.SysPredefs.MaxNId => "4". | ||
|
||
Extraction "KVSAlg3.ml" KVSAlg3.KVSAlg3. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
(executable | ||
(name launchStore1) | ||
(flags :standard -warn-error -a -w -27-33-39) | ||
(public_name chaparStore1) | ||
(libraries utils batteries) | ||
(modules launchStore1 KVSAlg1 algorithm1) | ||
(package coq-chapar-stores)) | ||
|
||
(executable | ||
(name launchStore2) | ||
(flags :standard -warn-error -a -w -27-33-39) | ||
(public_name chaparStore2) | ||
(libraries utils batteries) | ||
(modules launchStore2 KVSAlg2 algorithm2) | ||
(package coq-chapar-stores)) | ||
|
||
(executable | ||
(name launchStore3) | ||
(flags :standard -warn-error -a -w -27-33-39) | ||
(public_name chaparStore3) | ||
(libraries utils batteries) | ||
(modules launchStore3 KVSAlg3 algorithm3) | ||
(package coq-chapar-stores)) | ||
|
||
(executable | ||
(name benchgen) | ||
(flags :standard -w -35) | ||
(public_name chaparBenchgen) | ||
(libraries utils) | ||
(modules benchgen) | ||
(package coq-chapar-stores)) | ||
|
||
(executable | ||
(name experiment) | ||
(flags :standard -w -33-35) | ||
(libraries utils) | ||
(modules experiment)) | ||
|
||
(coq.extraction | ||
(prelude ExtractAlgorithm1) | ||
(extracted_modules KVSAlg1) | ||
;(theories Chapar) | ||
) | ||
|
||
(coq.extraction | ||
(prelude ExtractAlgorithm2) | ||
(extracted_modules KVSAlg2) | ||
;(theories Chapar) | ||
) | ||
|
||
(coq.extraction | ||
(prelude ExtractAlgorithm3) | ||
(extracted_modules KVSAlg3) | ||
;(theories Chapar) | ||
) | ||
|
||
(library | ||
(name utils) | ||
(flags :standard -w -27-33-35) | ||
(modules util runtime configuration common algorithm readConfig benchprog commonbench) | ||
(wrapped false) | ||
(libraries unix)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
open Pervasives | ||
(* open Printf *) | ||
open Configuration | ||
open ReadConfig | ||
|