Skip to content

Commit

Permalink
Merge pull request #29 from coq-community/8.18-dune
Browse files Browse the repository at this point in the history
Dune fixes and 8.18 in CI
  • Loading branch information
palmskog authored Oct 1, 2023
2 parents 1355a8d + 29d4fc2 commit 52504cc
Show file tree
Hide file tree
Showing 33 changed files with 95 additions and 97 deletions.
1 change: 1 addition & 0 deletions .github/workflows/docker-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
matrix:
image:
- 'coqorg/coq:dev'
- 'coqorg/coq:8.18'
- 'coqorg/coq:8.17'
- 'coqorg/coq:8.16'
- 'coqorg/coq:8.15'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/nix-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ jobs:
else
echo "tested_commit=${{ github.sha }}" >> $GITHUB_ENV
fi
- uses: cachix/install-nix-action@v16
- uses: cachix/install-nix-action@v20
with:
nix_path: nixpkgs=channel:nixpkgs-unstable
- uses: cachix/cachix-action@v10
- uses: cachix/cachix-action@v12
with:
name: coq-community
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
Expand Down
4 changes: 2 additions & 2 deletions coq-chapar-stores.opam
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ the Coq proof assistant and extracted to executable code.
build: ["dune" "build" "-p" name "-j" jobs]
depends: [
"ocaml" {>= "4.05.0"}
"dune" {>= "2.5"}
"coq" {(>= "8.14" & < "8.18~") | (= "dev")}
"dune" {>= "3.5"}
"coq" {>= "8.14"}
"batteries" {>= "2.8.0"}
"coq-chapar" {= version}
]
Expand Down
4 changes: 2 additions & 2 deletions coq-chapar.opam
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ of client programs."""

build: ["dune" "build" "-p" name "-j" jobs]
depends: [
"dune" {>= "2.5"}
"coq" {(>= "8.14" & < "8.18~") | (= "dev")}
"dune" {>= "3.5"}
"coq" {>= "8.14"}
]

tags: [
Expand Down
2 changes: 1 addition & 1 deletion coq/Framework/KVStore.v
Original file line number Diff line number Diff line change
Expand Up @@ -2753,7 +2753,7 @@ Module InstConcExec (SyntaxArg: SyntaxPar)(Alg: AlgDef).
destruct H.
clear H0.
unfold prec in Hdup; firstorder subst.
rewrite (app_nil_end (h ++ [l'])) in H0.
rewrite <- (app_nil_r (h ++ [l'])) in H0.
rewrite <- app_assoc in H0.
rewrite (app_assoc x) in H0.
autorewrite with core in H.
Expand Down
2 changes: 1 addition & 1 deletion coq/Framework/ReflectiveAbstractSemantics.v
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ Module ReflAbsSem (SyntaxArg : SyntaxPar) (Import AE : AbsExecCarrier SyntaxArg)
revert s ls1 ls2 s' Hss.
induction sched; simpl; intros.
inversion Hss; clear Hss; subst s'; try subst.
* rewrite List.app_nil_end in H0 at 1.
* rewrite <- app_nil_r in H0 at 1.
apply List.app_inv_head in H0; subst ls2.
constructor.
* case_eq (step_fun a s).
Expand Down
6 changes: 3 additions & 3 deletions dune-project
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
(lang dune 2.5)
(using coq 0.2)
(name coq-chapar)
(lang dune 3.5)
(using coq 0.6)
(name chapar)
3 changes: 2 additions & 1 deletion meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,11 @@ license:

supported_coq_versions:
text: 8.14 or later
opam: '{(>= "8.14" & < "8.18~") | (= "dev")}'
opam: '{>= "8.14"}'

tested_coq_opam_versions:
- version: dev
- version: '8.18'
- version: '8.17'
- version: '8.16'
- version: '8.15'
Expand Down
4 changes: 2 additions & 2 deletions ml/benchgen.ml → ml/bench/benchgen.ml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
open Printf

open Commonbench
open Utils.Commonbench


let () =
Expand Down Expand Up @@ -34,4 +34,4 @@ let () =





13 changes: 13 additions & 0 deletions ml/bench/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
(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))
File renamed without changes.
62 changes: 0 additions & 62 deletions ml/dune

This file was deleted.

File renamed without changes.
4 changes: 2 additions & 2 deletions ml/algorithm1.ml → ml/store1/algorithm1.ml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
open Printf
open List

open Common
open Algorithm
open Utils.Common
open Utils.Algorithm

open KVSAlg1
open SysPredefs
Expand Down
13 changes: 13 additions & 0 deletions ml/store1/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
(executable
(name launchStore1)
(flags :standard -w -3-27-33-39)
(public_name chaparStore1)
(libraries utils batteries)
(modules launchStore1 KVSAlg1 algorithm1)
(package coq-chapar-stores))

(coq.extraction
(prelude ExtractAlgorithm1)
(extracted_modules KVSAlg1)
;(theories Chapar)
)
10 changes: 5 additions & 5 deletions ml/launchStore1.ml → ml/store1/launchStore1.ml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
open Printf
open Util
open Common
open Runtime
open Utils.Util
open Utils.Common
open Utils.Runtime
open Algorithm1
open ReadConfig
open Benchprog
open Utils.ReadConfig
open Utils.Benchprog

module Alg1RunSys = RuntimeSystem (Algorithm1)
open Alg1RunSys
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions ml/algorithm2.ml → ml/store2/algorithm2.ml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
open Printf
open Unix

open Common
open Algorithm
open Utils.Common
open Utils.Algorithm
open KVSAlg2


Expand Down
13 changes: 13 additions & 0 deletions ml/store2/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
(executable
(name launchStore2)
(flags :standard -w -3-27-33-39)
(public_name chaparStore2)
(libraries utils batteries)
(modules launchStore2 KVSAlg2 algorithm2)
(package coq-chapar-stores))

(coq.extraction
(prelude ExtractAlgorithm2)
(extracted_modules KVSAlg2)
;(theories Chapar)
)
10 changes: 5 additions & 5 deletions ml/launchStore2.ml → ml/store2/launchStore2.ml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
open Printf
open Util
open Common
open Runtime
open Utils.Util
open Utils.Common
open Utils.Runtime
open Algorithm2
open ReadConfig
open Benchprog
open Utils.ReadConfig
open Utils.Benchprog

module Alg1RunSys = RuntimeSystem (Algorithm2)
open Alg1RunSys
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions ml/algorithm3.ml → ml/store3/algorithm3.ml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
open Printf
open List

open Common
open Algorithm
open Utils.Common
open Utils.Algorithm

open KVSAlg3
open SysPredefs
Expand Down
13 changes: 13 additions & 0 deletions ml/store3/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
(executable
(name launchStore3)
(flags :standard -w -3-27-33-39)
(public_name chaparStore3)
(libraries utils batteries)
(modules launchStore3 KVSAlg3 algorithm3)
(package coq-chapar-stores))

(coq.extraction
(prelude ExtractAlgorithm3)
(extracted_modules KVSAlg3)
;(theories Chapar)
)
10 changes: 5 additions & 5 deletions ml/launchStore3.ml → ml/store3/launchStore3.ml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
open Printf
open Util
open Common
open Runtime
open Utils.Util
open Utils.Common
open Utils.Runtime
open Algorithm3
open ReadConfig
open Benchprog
open Utils.ReadConfig
open Utils.Benchprog

module Alg1RunSys = RuntimeSystem (Algorithm3)
open Alg1RunSys
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions ml/utils/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
(library
(name utils)
(flags :standard -w -27-33-35)
(modules util runtime configuration common algorithm readConfig benchprog commonbench)
;(wrapped false)
(libraries unix))
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 52504cc

Please sign in to comment.