File: times2float.mlw

package info (click to toggle)
why3 1.8.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 45,028 kB
  • sloc: xml: 185,443; ml: 111,224; ansic: 3,998; sh: 2,578; makefile: 2,568; java: 865; python: 720; javascript: 290; lisp: 205; pascal: 173
file content (8 lines) | stat: -rw-r--r-- 182 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8


use ieee_float.Float32

let f (x: Float32.t) : Float32.t
   requires { lt (0.0:t) x /\ lt x (1000.0:t) }
   ensures  { not (eq (add RNE x x) result) }
 = mul RNE x (2.0:Float32.t)