Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Iris
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Adam
Iris
Commits
8dac02fe
Commit
8dac02fe
authored
8 months ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
use Coq 8.20 for reftesting
parent
b40126df
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Makefile.coq.local
+9
-7
9 additions, 7 deletions
Makefile.coq.local
tests/bi.ref
+4
-8
4 additions, 8 deletions
tests/bi.ref
tests/heap_lang.ref
+4
-4
4 additions, 4 deletions
tests/heap_lang.ref
tests/proofmode.ref
+2
-2
2 additions, 2 deletions
tests/proofmode.ref
with
19 additions
and
21 deletions
Makefile.coq.local
+
9
−
7
View file @
8dac02fe
...
...
@@ -4,6 +4,11 @@ NO_TEST:=
# use MAKE_REF=1 to generate new reference files
MAKE_REF
:=
# Only test reference output on known versions of Coq, to avoid blocking
# Coq CI when they change the printing a little.
# Need to make this a lazy variable (`=` instead of `:=`) since COQ_VERSION is only set later.
COQ_REF
=
$(
shell
echo
"
$(
COQ_VERSION
)
"
|
grep
-E
"^8
\.
(20
)
\.
"
-q
&&
echo
1
)
# Run tests interleaved with main build. They have to be in the same target for this.
real-all
:
style $(if $(NO_TEST)
,,
test)
...
...
@@ -26,10 +31,6 @@ test: $(TESTFILES:.v=.vo)
.PHONY
:
test
COQ_TEST
=
$(
COQTOP
)
$(
COQDEBUG
)
-batch
-test-mode
# These versions of Coq are known to have different output so we don't test them.
# Need to make this a lazy variable (`=` instead of `:=`) since COQ_VERSION is only set later.
# Make sure to recognize both 8.$NUM.0 and 8.$NUM+alpha.
COQ_NOREF
=
$(
shell
echo
"
$(
COQ_VERSION
)
"
|
grep
-E
"^8
\.
(16|17|18|20|21
)
[.+]"
-q
&&
echo
1
)
tests/.coqdeps.d
:
$(TESTFILES)
$(
SHOW
)
'COQDEP TESTFILES'
...
...
@@ -46,14 +47,15 @@ tests/.coqdeps.d: $(TESTFILES)
# - Cleanup, and mark as done for make.
$(TESTFILES
:
.v=.vo): %.vo: %.v $(if $(MAKE_REF)
,,
%.ref) $(NORMALIZER)
$(
HIDE
)
REF
=
$*
".ref"
&&
\
echo
"COQTEST
$(
if
$(
COQ_
NO
REF
)
,
[ref diff ignored],
$(
if
$(
MAKE_REF
)
, [make ref],
))
$<
(ref:
$$
REF)"
&&
\
echo
"COQTEST
$(
if
$(
COQ_REF
)
,
$(
if
$(
MAKE_REF
)
, [make ref],
)
, [ref diff ignored]
)
$<
(ref:
$$
REF)"
&&
\
TMPFILE
=
"
$$(
mktemp
)
"
&&
\
unset
OCAMLRUNPARAM
&&
\
$(
TIMER
)
$(
COQ_TEST
)
$(
COQFLAGS
)
$(
COQLIBS
)
-load-vernac-source
$<
>
"
$$
TMPFILE"
&&
\
sed
-E
-f
$(
NORMALIZER
)
"
$$
TMPFILE"
>
"
$$
TMPFILE"
.new
&&
\
mv
"
$$
TMPFILE"
.new
"
$$
TMPFILE"
&&
\
$(
if
$(
COQ_NOREF
)
,
(
diff
--strip-trailing-cr
-u
"
$$
REF"
"
$$
TMPFILE"
||
true
)
,
\
$(
if
$(
MAKE_REF
)
,mv
"
$$
TMPFILE"
"
$$
REF"
,diff
--strip-trailing-cr
-u
"
$$
REF"
"
$$
TMPFILE"
)
\
$(
if
$(
COQ_REF
)
,
\
$(
if
$(
MAKE_REF
)
,mv
"
$$
TMPFILE"
"
$$
REF"
,diff
--strip-trailing-cr
-u
"
$$
REF"
"
$$
TMPFILE"
)
,
\
(
diff
--strip-trailing-cr
-u
"
$$
REF"
"
$$
TMPFILE"
||
true
)
\
)
&&
\
rm
-f
"
$$
TMPFILE"
&&
\
touch
$@
This diff is collapsed.
Click to expand it.
tests/bi.ref
+
4
−
8
View file @
8dac02fe
...
...
@@ -5,21 +5,17 @@ m : gmap nat nat
The term "m" has type "gmap nat nat" while it is expected to have type
"gmap nat Z" (cannot unify "nat" and "Z").
The command has indeed failed with message:
Unable to satisfy the following constraints:
In environment:
PROP : bi
P : PROP
?p : "Persistent (|==> P)"
Could not find an instance for the following existential variables:
?p : Persistent (|==> P)
The command has indeed failed with message:
Unable to satisfy the following constraints:
In environment:
PROP : bi
P : PROP
?p : "Persistent (■ P)"
Could not find an instance for the following existential variables:
?p : Persistent (■ P)
"match_def_unfold_fail"
: string
The command has indeed failed with message:
...
...
This diff is collapsed.
Click to expand it.
tests/heap_lang.ref
+
4
−
4
View file @
8dac02fe
...
...
@@ -232,10 +232,10 @@ Tactic failure: wp_pure: "Hcred" is not fresh.
q3 : Qp
v4 : val
q4 : Qp
H :
((✓ (DfracOwn q3 ⋅ DfracOwn q4) ∧ v3 = v4)
∧
✓ (DfracOwn
q2 ⋅ (DfracOwn
q3 ⋅ DfracOwn q4)
)
∧ v
2
= v
3
)
∧ ✓ (DfracOwn
q1 ⋅ (DfracOwn
q2 ⋅ (DfracOwn q3 ⋅ DfracOwn q4)))
∧ v1 = v2
H :
((
✓ (DfracOwn q3 ⋅ DfracOwn q4) ∧ v
3
= v
4
)
∧ ✓ (DfracOwn q2 ⋅ (DfracOwn q3 ⋅ DfracOwn q4))
∧ v2 = v3
)
∧ ✓ (DfracOwn q1 ⋅ (DfracOwn q2 ⋅ (DfracOwn q3 ⋅ DfracOwn q4)))
∧ v1 = v2
============================
--------------------------------------∗
⌜(q1 + (q2 + (q3 + q4)) ≤ 1)%Qp⌝ ∗ ⌜v1 = v2⌝ ∗ ⌜
...
...
This diff is collapsed.
Click to expand it.
tests/proofmode.ref
+
2
−
2
View file @
8dac02fe
...
...
@@ -708,8 +708,8 @@ No applicable tactic.
PROP : bi
Ψ, Φ : nat → PROP
HP :
∀ (f : nat → nat) (y : nat),
TCEq f (λ x : nat, x + 10) → Ψ (f 1) -∗ Φ y
HP :
∀ (f : nat → nat) (y : nat),
TCEq f (λ x : nat, x + 10) → Ψ (f 1) -∗ Φ y
============================
"H" : Ψ 11
--------------------------------------∗
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment