Skip to content
This repository has been archived by the owner on Sep 7, 2023. It is now read-only.

Commit

Permalink
chore(upgrade) Ergo compiler code switched to Coq 8.12
Browse files Browse the repository at this point in the history
Signed-off-by: Jerome Simeon <[email protected]>
  • Loading branch information
jeromesimeon committed Apr 5, 2021
1 parent 1100f51 commit 28b9673
Show file tree
Hide file tree
Showing 528 changed files with 29,231 additions and 118,524 deletions.
228 changes: 0 additions & 228 deletions .Makefile.coq.d

This file was deleted.

4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ common_steps: &common_steps
- run:
name: "Install Coq"
command: |
opam install -y -v coq.8.8.2 coq-flocq coq-jsast
opam install -y -v coq.8.12.0 coq-flocq coq-jsast
no_output_timeout: 30m
- run:
name: "Install Q*cert"
command: |
opam install -y -v coq-qcert.2.0.0
opam install -y -v coq-qcert.2.1.0
no_output_timeout: 30m
- save_cache:
<<: *common_cache_key
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,13 @@ Makefile.config
*~
.#*
*.vo
*.vos
*.vok
*.v.d
*.glob
*.aux
*.lia.cache
.Makefile.coq.d
*.ctoj
.DS_Store
_CoqProject
Expand Down Expand Up @@ -48,4 +52,3 @@ thumbs.db
# generated by dune
*.merlin
*.install

Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file removed compiler/core/Backend/Lib/QOps.vok
Empty file.
Empty file removed compiler/core/Backend/Lib/QOps.vos
Empty file.
Empty file.
Empty file.
Empty file removed compiler/core/Backend/QLib.vok
Empty file.
Empty file removed compiler/core/Backend/QLib.vos
Empty file.
Empty file.
Empty file.
3 changes: 1 addition & 2 deletions compiler/core/Backend/Qcert/QcertData.v
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ Definition onddateTime {A} (f : DATE_TIME -> A) (d : data) : option A :=

Definition lift_dateTimeList (l:list data) : option (list DATE_TIME) :=
lift_map
(fun d =>
(fun d : data =>
match d with
| dforeign (enhanceddateTime fd) => Some fd
| _ => None
Expand Down Expand Up @@ -512,7 +512,6 @@ Next Obligation.
- destruct m; simpl in H;
unfold ondfloat2, lift in H
; destruct d1; simpl in H; try discriminate
; destruct f; simpl in H; try discriminate
; destruct d2; simpl in H; try discriminate
; try (destruct f; simpl in H; try discriminate)
; invcs H
Expand Down
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
2 changes: 1 addition & 1 deletion compiler/core/Backend/Qcert/QcertEJson.v
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ Definition enhanced_ejson_date_time_runtime_op_interp op (dl:list ejson) : optio
end) dl
| EJsonRuntimeDateTimeDurationAmount =>
apply_unary
(fun d =>
(fun d : ejson =>
match d with
| ejforeign (enhanceddateTimeduration fd) =>
Some (ejbigint (DATE_TIME_DURATION_amount fd))
Expand Down
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
2 changes: 1 addition & 1 deletion compiler/core/Backend/Qcert/QcertType.v
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ Proof.
inversion H; inversion H0; congruence.
Qed.

Instance enhanced_type_lattice : Lattice enhanced_type eq
#[refine] Instance enhanced_type_lattice : Lattice enhanced_type eq
:= {
join := enhanced_type_join
; meet := enhanced_type_meet
Expand Down
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file removed compiler/core/Common/Ast.vok
Empty file.
Empty file removed compiler/core/Common/Ast.vos
Empty file.
Empty file removed compiler/core/Common/Names.vok
Empty file.
Empty file removed compiler/core/Common/Names.vos
Empty file.
Empty file.
Empty file.
2 changes: 1 addition & 1 deletion compiler/core/Common/PrintTypedData.v
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Section PrintTypedData.
| _ => None
end.

Definition fmt_nl := String.String (ascii_of_N 10) EmptyString.
Definition fmt_nl := String.String (ascii_of_nat 10) EmptyString.
Definition fmt_dq := """".

Definition js_quote_char (a:ascii) : string
Expand Down
Empty file.
Empty file.
Empty file.
Empty file.
Empty file removed compiler/core/Common/Result.vok
Empty file.
Empty file removed compiler/core/Common/Result.vos
Empty file.
5 changes: 3 additions & 2 deletions compiler/core/Compiler/ErgoCompiler.v
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
* limitations under the License.
*)

Require String.
Require Qcert.Brands.BrandRelation.
Require Import String.
Require Import ZArith.
Require Import Qcert.Brands.BrandRelation.

Require ErgoSpec.Version.
Require ErgoSpec.Utils.Misc.
Expand Down
Empty file.
Empty file.
Empty file.
Empty file.
Empty file removed compiler/core/Ergo/Lang/Ergo.vok
Empty file.
Empty file removed compiler/core/Ergo/Lang/Ergo.vos
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file removed compiler/core/ErgoC/Lang/ErgoC.vok
Empty file.
Empty file removed compiler/core/ErgoC/Lang/ErgoC.vos
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
1 change: 1 addition & 0 deletions compiler/core/ErgoC/Lang/ErgoCOverloaded.v
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

Require Import String.
Require Import List.
Require Import ZArith.
Require Import Basics.

Require Import ErgoSpec.Utils.Misc.
Expand Down
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
1 change: 1 addition & 0 deletions compiler/core/ErgoNNRC/Lang/ErgoNNRCSugar.v
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

Require Import String.
Require Import List.
Require Import ZArith.
Require Import Qcert.NNRC.NNRCRuntime.
Require Import ErgoSpec.Common.Names.
Require Import ErgoSpec.ErgoNNRC.Lang.ErgoNNRC.
Expand Down
Empty file.
Empty file.
Empty file removed compiler/core/Tests/HelloWorld.vok
Empty file.
Empty file removed compiler/core/Tests/HelloWorld.vos
Empty file.
Empty file.
Empty file.
2 changes: 1 addition & 1 deletion compiler/core/Translation/ErgoAssembly.v
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Section ErgoAssembly.
"org.accordproject.ergo.stdlib.toText"%string
(template::nil)))).

Fixpoint add_template_to_clauses (prov:provenance) (template:list (string * laergo_expr)) (cl:list laergo_clause) :=
Definition add_template_to_clauses (prov:provenance) (template:list (string * laergo_expr)) (cl:list laergo_clause) :=
cl ++ (List.map (fun xy => toDraftClause prov (fst xy) (snd xy)) template).

Definition add_template_to_contract (template:list (string * laergo_expr)) (c:laergo_contract) :=
Expand Down
Empty file.
Empty file.
Empty file.
Empty file.
1 change: 1 addition & 0 deletions compiler/core/Translation/ErgoCTtoErgoNNRC.v
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

Require Import String.
Require Import List.
Require Import ZArith.

Require Import Qcert.NNRC.NNRCRuntime.

Expand Down
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file removed compiler/core/Types/CTO.vok
Empty file.
Empty file removed compiler/core/Types/CTO.vos
Empty file.
Empty file removed compiler/core/Types/ErgoType.vok
Empty file.
Empty file removed compiler/core/Types/ErgoType.vos
Empty file.
2 changes: 1 addition & 1 deletion compiler/core/Types/ErgoTypetoQcertType.v
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Section ErgoTypetoQcertType.
| ErgoTypeContract _ _ _ => ctxt
end.

Fixpoint ergo_expand_extends_in_declarations (decls:list laergo_type_declaration) : expand_ctxt :=
Definition ergo_expand_extends_in_declarations (decls:list laergo_type_declaration) : expand_ctxt :=
List.fold_left
(fun ctxt decl =>
ergo_decl_expand_extends
Expand Down
Empty file.
Empty file.
Empty file.
Empty file.
4 changes: 2 additions & 2 deletions compiler/core/Utils/Misc.v
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Section Misc.
Definition postpend {A} (ls : list A) (a : A) : list A :=
ls ++ (a :: nil).

Fixpoint last_some {A} (l:list (option A)) : option A :=
Definition last_some {A} (l:list (option A)) : option A :=
let proc_one (one:option A) (acc:option A) :=
match acc with
| Some x => Some x
Expand All @@ -61,7 +61,7 @@ Section Misc.
None
l.

Fixpoint last_some_pair {A} {B} (l:list ((option A) * (option B))) : ((option A) * (option B)) :=
Definition last_some_pair {A} {B} (l:list ((option A) * (option B))) : ((option A) * (option B)) :=
let proc_one (one : ((option A) * (option B))) (acc : ((option A) * (option B))) :=
match acc with
| (Some x, Some y) => acc
Expand Down
Empty file removed compiler/core/Utils/Misc.vok
Empty file.
Empty file removed compiler/core/Utils/Misc.vos
Empty file.
Empty file removed compiler/core/Version.vok
Empty file.
Empty file removed compiler/core/Version.vos
Empty file.
20 changes: 0 additions & 20 deletions compiler/extraction/Apply.ml

This file was deleted.

4 changes: 0 additions & 4 deletions compiler/extraction/Apply.mli

This file was deleted.

69 changes: 0 additions & 69 deletions compiler/extraction/Ascii.ml

This file was deleted.

19 changes: 0 additions & 19 deletions compiler/extraction/Ascii.mli

This file was deleted.

50 changes: 0 additions & 50 deletions compiler/extraction/Assoc.ml

This file was deleted.

16 changes: 0 additions & 16 deletions compiler/extraction/Assoc.mli

This file was deleted.

Loading

0 comments on commit 28b9673

Please sign in to comment.