Skip to content

Commit dde5d79

Browse files
committed
Replace CoqSail (which uses bbv for bitvectors) with CoqSailStdpp
1 parent 15ea240 commit dde5d79

File tree

11 files changed

+1245
-175
lines changed

11 files changed

+1245
-175
lines changed

CoqMakefile

Lines changed: 989 additions & 0 deletions
Large diffs are not rendered by default.

CoqMakefile.conf

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# This configuration file was generated by running:
2+
# coq_makefile -f _CoqProject -o CoqMakefile
3+
4+
COQBIN?=
5+
ifneq (,$(COQBIN))
6+
# add an ending /
7+
COQBIN:=$(COQBIN)/
8+
endif
9+
COQMKFILE ?= "$(COQBIN)coq_makefile"
10+
11+
###############################################################################
12+
# #
13+
# Project files. #
14+
# #
15+
###############################################################################
16+
17+
COQMF_CMDLINE_VFILES :=
18+
COQMF_SOURCES := $(shell $(COQMKFILE) -sources-of -f _CoqProject $(COQMF_CMDLINE_VFILES))
19+
COQMF_VFILES := $(filter %.v, $(COQMF_SOURCES))
20+
COQMF_MLIFILES := $(filter %.mli, $(COQMF_SOURCES))
21+
COQMF_MLFILES := $(filter %.ml, $(COQMF_SOURCES))
22+
COQMF_MLGFILES := $(filter %.mlg, $(COQMF_SOURCES))
23+
COQMF_MLPACKFILES := $(filter %.mlpack, $(COQMF_SOURCES))
24+
COQMF_MLLIBFILES := $(filter %.mllib, $(COQMF_SOURCES))
25+
COQMF_METAFILE =
26+
27+
###############################################################################
28+
# #
29+
# Path directives (-I, -R, -Q). #
30+
# #
31+
###############################################################################
32+
33+
COQMF_OCAMLLIBS =
34+
COQMF_SRC_SUBDIRS =
35+
COQMF_COQLIBS = -R theories CheriCaps
36+
COQMF_COQLIBS_NOML = -R theories CheriCaps
37+
COQMF_CMDLINE_COQLIBS =
38+
39+
###############################################################################
40+
# #
41+
# Coq configuration. #
42+
# #
43+
###############################################################################
44+
45+
COQMF_COQLIB=/home/ricardo/.opam/coq-cheri-capabilities/lib/coq/
46+
COQMF_COQCORELIB=/home/ricardo/.opam/coq-cheri-capabilities/lib/coq/../coq-core/
47+
COQMF_DOCDIR=/home/ricardo/.opam/coq-cheri-capabilities/share/doc/
48+
COQMF_OCAMLFIND=/home/ricardo/.opam/coq-cheri-capabilities/bin/ocamlfind
49+
COQMF_CAMLFLAGS=-thread -bin-annot -strict-sequence -w -a+1..3-4+5..8-9+10..26-27+28..39-40-41-42+43-44-45+46..47-48+49..57-58+59..66-67-68+69-70
50+
COQMF_WARN=-warn-error +a-3
51+
COQMF_HASNATDYNLINK=true
52+
COQMF_COQ_SRC_SUBDIRS=boot config lib clib kernel library engine pretyping interp gramlib parsing proofs tactics toplevel printing ide stm vernac plugins/btauto plugins/cc plugins/derive plugins/extraction plugins/firstorder plugins/funind plugins/ltac plugins/ltac2 plugins/micromega plugins/nsatz plugins/ring plugins/rtauto plugins/ssr plugins/ssrmatching plugins/syntax
53+
COQMF_COQ_NATIVE_COMPILER_DEFAULT=no
54+
COQMF_WINDRIVE=
55+
56+
###############################################################################
57+
# #
58+
# Native compiler. #
59+
# #
60+
###############################################################################
61+
62+
COQMF_COQPROJECTNATIVEFLAG =
63+
64+
###############################################################################
65+
# #
66+
# Extra variables. #
67+
# #
68+
###############################################################################
69+
70+
COQMF_OTHERFLAGS =
71+
COQMF_INSTALLCOQDOCROOT = CheriCaps

_CoqProject

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# To use _CoqProject with VS Code + VsCoq extension, from the root directory of this file run
2+
## coq_makefile -f _CoqProject -o CoqMakefile
3+
## make -f CoqMakefile
4+
# and then code .
5+
6+
-R theories CheriCaps
7+
8+
theories

coq-cheri-capabilities.opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ bug-reports: "https://github.com/rems-project/coq-cheri-capabilities/issues"
1111
depends: [
1212
"dune" {>= "3.7"}
1313
"coq"
14-
"coq-sail"
14+
"coq-sail-stdpp"
1515
"coq-ext-lib"
1616
"coq-stdpp-unstable"
1717
"odoc" {with-doc}

dune-project

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
)
1919
(depends
2020
(coq (< 8.17.0))
21-
coq-sail
21+
coq-sail-stdpp
2222
coq-ext-lib
2323
(coq-stdpp-unstable (= dev.2023-02-17.2.2d8ccea3))
2424
)

theories/Common/Utils.v

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Require Import Coq.Strings.Ascii.
1111

1212
Import ListNotations.
1313

14-
From Sail Require Import Values.
14+
From SailStdpp Require Import Values.
1515

1616
Local Open Scope list_scope.
1717
Local Open Scope string_scope.
@@ -122,16 +122,6 @@ Fixpoint List_bool_eqb (l1:list bool) (l2:list bool) : bool :=
122122
| (_,[]) => false
123123
| (h1::t1,h2::t2) => (Bool.eqb h1 h2) && List_bool_eqb t1 t2
124124
end.
125-
126-
Fixpoint word_to_list_bool {n} w :=
127-
match w with
128-
| Word.WO => []
129-
| Word.WS b w => b :: word_to_list_bool w
130-
end.
131-
132-
(* Stores less-significant bits in lower indices *)
133-
Definition mword_to_list_bool {n} (w : mword n) : list bool :=
134-
word_to_list_bool (get_word w).
135125

136126
Definition string_of_bool (b:bool) :=
137127
match b with

theories/Morello/CapFns.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
(*Generated by Sail from capfns.*)
2-
Require Import Sail.Base.
3-
Require Import Sail.Real.
2+
Require Import SailStdpp.Base.
3+
Require Import SailStdpp.Real.
44
From CheriCaps Require Import CapFnsTypes.
55
Import ListNotations.
66
Open Scope string.

theories/Morello/CapFnsTypes.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
(*Generated by Sail from capfns.*)
2-
Require Import Sail.Base.
3-
Require Import Sail.Real.
2+
Require Import SailStdpp.Base.
3+
Require Import SailStdpp.Real.
44
Import ListNotations.
55
Open Scope string.
66
Open Scope bool.

0 commit comments

Comments
 (0)