Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
why3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Why3
why3
Commits
ea3cc5fb
Commit
ea3cc5fb
authored
11 years ago
by
Guillaume Melquiond
Browse files
Options
Downloads
Patches
Plain Diff
Update to Flocq 2.1.0 by changing the way NaNs are handled.
parent
2e1113a0
No related branches found
Tags
debian/1.0.ci12
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
configure.in
+2
-2
2 additions, 2 deletions
configure.in
lib/coq/floating_point/GenFloat.v
+31
-12
31 additions, 12 deletions
lib/coq/floating_point/GenFloat.v
with
33 additions
and
14 deletions
configure.in
+
2
−
2
View file @
ea3cc5fb
...
...
@@ -474,13 +474,13 @@ if test "$enable_coq_libs" = yes; then
AC_MSG_CHECKING([for Flocq])
AS_IF(
[ echo "Require Import Flocq_version BinNat." \
"Goal (20
0
00 <= Flocq_version)%N. easy. Qed." > conftest.v
"Goal (20
1
00 <= Flocq_version)%N. easy. Qed." > conftest.v
"$COQC" conftest.v > conftest.err ],
[ AC_MSG_RESULT(yes) ],
[ AC_MSG_RESULT(no)
enable_coq_fp_libs=no
AC_MSG_WARN(Cannot find Flocq.)
reason_coq_fp_libs=" (Flocq >= 2.
0
not found)" ])
reason_coq_fp_libs=" (Flocq >= 2.
1
not found)" ])
rm -f conftest.v conftest.vo conftest.err
fi
...
...
This diff is collapsed.
Click to expand it.
lib/coq/floating_point/GenFloat.v
+
31
−
12
View file @
ea3cc5fb
...
...
@@ -63,26 +63,45 @@ destruct x as (x,xv,xe,xm).
destruct
y
as
(
y
,
yv
,
ye
,
ym
).
destruct
(
Req_EM_T
xe
ye
)
as
[
He
|
He
]...
destruct
(
Req_EM_T
xm
ym
)
as
[
Hm
|
Hm
]...
destruct
x
as
[
xs
|
xs
|
|
xs
xm
'
xe
'
xH
]
;
destruct
y
as
[
y
s
|
y
s
|
|
y
s
y
m
'
y
e
'
y
H
]
...
destruct
(
Bool
.
bool_dec
x
s
ys
)
as
[
Hs
|
Hs
]
.
le
ft
.
apply
f_equal3
;
try
easy
.
now
apply
f_equal
.
rewrite
He
,
Hm
.
destruct
x
as
[
x
s
|
x
s
|
xs
xm
'
|
x
s
x
m
'
x
e
'
x
H
]
;
destruct
y
a
s
[
ys
|
ys
|
ys
ym
'
|
ys
ym
'
ye
'
yH
]..
.
c
le
ar
.
destruct
(
Bool
.
bool_dec
xs
ys
)
as
[
->|
Hs
]
.
now
left
.
right
.
apply
t_inv
.
intros
H
.
intros
H
_
_.
now
injection
H
.
clear
.
destruct
(
Bool
.
bool_dec
xs
ys
)
as
[
->|
Hs
].
now
left
.
right
.
apply
t_inv
.
intros
H
_
_.
now
injection
H
.
destruct
(
Bool
.
bool_dec
xs
ys
)
as
[
Hs
|
Hs
].
clear
.
destruct
(
Bool
.
bool_dec
xs
ys
)
as
[
->|
Hs
].
destruct
(
Z_eq_dec
(
Zpos
(
projT1
xm
'
))
(
Zpos
(
projT1
ym
'
)))
as
[
Hm
'
|
Hm
'
].
left
.
apply
f_equal3
;
try
easy
.
now
apply
f_equal
.
apply
f_equal2
;
try
easy
.
destruct
xm
'
as
[
xm
'
pxm
'
].
destruct
ym
'
as
[
ym
'
pym
'
].
simpl
in
Hm
'
.
injection
Hm
'
.
intros
->
.
now
rewrite
(
eqbool_irrelevance
_
pxm
'
pym
'
).
right
.
apply
t_inv
.
intros
H
.
intros
H
_
_.
injection
H
.
contradict
Hm
'
.
now
rewrite
Hm
'
.
right
.
apply
t_inv
.
intros
H
_
_.
now
injection
H
.
left
.
now
apply
f_equal3
.
destruct
(
Req_EM_T
xv
yv
)
as
[
Hv
|
Hv
].
left
.
apply
f_equal3
;
try
easy
.
...
...
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