Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Why3
why3
Commits
b444f06a
Commit
b444f06a
authored
Mar 24, 2010
by
Andrei Paskevich
Browse files
fix a couple of unrelated glitches in floating_point.why
parent
886cf06d
Changes
1
Hide whitespace changes
Inline
Side-by-side
theories/floating_point.why
View file @
b444f06a
...
...
@@ -12,6 +12,8 @@ theory GenFloat
use import Rounding
use import real.Real
use import real.Abs
use import real.FromInt
use int.Int
type t
...
...
@@ -39,8 +41,9 @@ theory GenFloat
axiom Exact_rounding_for_integers:
forall m:mode,i:int.
- max_representable_integer <= i <= max_representable_integer ->
round(m,from_int(i)) = from_int(i)
Int.(<=)(Int.(-_)(max_representable_integer), i) and
Int.(<=)(i, max_representable_integer) ->
round(m,from_int(i)) = from_int(i)
(* rounding up and down *)
axiom Round_down_le:
...
...
@@ -73,7 +76,7 @@ theory Double
type double
logic max_double : real = 0x1.FFFFFFFFFFFFFp1023
logic max_int = 9007199254740992 (* 2^23 *)
logic max_int
: int
= 9007199254740992 (* 2^23 *)
clone export GenFloat with
type t = double,
...
...
Write
Preview
Supports
Markdown
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