Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
stdpp
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
Model registry
Monitor
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
Iris
stdpp
Commits
f894e0cf
Commit
f894e0cf
authored
7 months ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
switch reftesting to Coq 8.20
parent
f6973baf
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#106971
passed
7 months ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile.coq.local
+7
-6
7 additions, 6 deletions
Makefile.coq.local
tests/bitvector_tactics.ref
+10
-8
10 additions, 8 deletions
tests/bitvector_tactics.ref
with
17 additions
and
14 deletions
Makefile.coq.local
+
7
−
6
View file @
f894e0cf
...
...
@@ -24,10 +24,10 @@ 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.
# 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.
# 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
)
COQ_REF
=
$(
shell
echo
"
$(
COQ_VERSION
)
"
|
grep
-E
"^8
\.
(20
)
\.
"
-q
&&
echo
1
)
tests/.coqdeps.d
:
$(TESTFILES)
$(
SHOW
)
'COQDEP TESTFILES'
...
...
@@ -44,14 +44,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/bitvector_tactics.ref
+
10
−
8
View file @
f894e0cf
...
...
@@ -21,11 +21,12 @@
data : list (bv 64)
H : bv_unsigned l < bv_unsigned r
H0 : bv_unsigned r ≤ Z.of_nat (length data)
H1 : ¬ bv_swrap 128 (bv_unsigned l) >=
bv_swrap 128
(bv_wrap 64
(bv_wrap 64 (bv_unsigned r - bv_unsigned l) `div` 2 ^ 1 +
bv_unsigned l + 0))
H1 :
¬ bv_swrap 128 (bv_unsigned l) >=
bv_swrap 128
(bv_wrap 64
(bv_wrap 64 (bv_unsigned r - bv_unsigned l) `div` 2 ^ 1 +
bv_unsigned l + 0))
============================
bv_unsigned l <
bv_wrap 64
...
...
@@ -46,9 +47,10 @@ goal 2 is:
i, n : bv 64
H : bv_unsigned i < bv_unsigned n
H0 : bv_wrap 64
(bv_unsigned n + bv_wrap 64 (- bv_wrap 64 (bv_unsigned i + 1) - 1) +
1) ≠ 0%Z
H0 :
bv_wrap 64
(bv_unsigned n + bv_wrap 64 (- bv_wrap 64 (bv_unsigned i + 1) - 1) + 1)
≠ 0%Z
============================
bv_wrap 64 (bv_unsigned i + 1) < bv_unsigned n
1 goal
...
...
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