Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Why3
why3
Commits
0e2c6aef
Commit
0e2c6aef
authored
Jan 03, 2017
by
Guillaume Melquiond
Browse files
Fix specification of the sign of FP result in presence of NaNs.
parent
c51200a4
Changes
1
Show whitespace changes
Inline
Side-by-side
theories/floating_point.why
View file @
0e2c6aef
...
...
@@ -481,7 +481,7 @@ theory GenFloatSpecFull
->
is_finite
r
/\
value
r
=
round
m
(
value
x
*
value
y
))
/\
(
is_finite
x
/\
is_finite
y
/\
not
no_overflow
m
(
value
x
*
value
y
)
->
overflow_value
m
r
)
/\
product_sign
r
x
y
/\
(
not
is_NaN
r
->
product_sign
r
x
y
)
/\
exact
r
=
exact
x
*
exact
y
/\
model
r
=
model
x
*
model
y
...
...
@@ -489,7 +489,7 @@ theory GenFloatSpecFull
(
is_NaN
x
->
is_NaN
r
)
/\
(
is_infinite
x
->
is_infinite
r
)
/\
(
is_finite
x
->
is_finite
r
/\
value
r
=
-
value
x
)
/\
diff_sign
r
x
/\
(
not
is_NaN
r
->
diff_sign
r
x
)
/\
exact
r
=
-
exact
x
/\
model
r
=
-
model
x
...
...
@@ -508,7 +508,7 @@ theory GenFloatSpecFull
/\
(
is_finite
x
/\
is_gen_zero
y
/\
value
x
<>
0.0
->
is_infinite
r
)
/\(
is_gen_zero
x
/\
is_gen_zero
y
->
is_NaN
r
)
/\
product_sign
r
x
y
/\
(
not
is_NaN
r
->
product_sign
r
x
y
)
/\
exact
r
=
exact
x
/
exact
y
/\
model
r
=
model
x
/
model
y
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment