9 Commits

Author SHA1 Message Date
Claude Marche
57f95af231 attempt to fix MPFR error in execution tests on reals 2022-04-20 08:57:59 +02:00
Guillaume Melquiond
a9dce078cb Delay interpretation of nullary functions. 2022-02-18 19:33:20 +01:00
Claude Marche
e1147a1305 Insert tests in bench, but only if mpfr is installed 2019-08-22 16:46:19 +02:00
Claude Marche
abc8336311 more tests with computation on real numbers 2019-08-22 16:07:13 +02:00
Sylvain
6cd20c1106 why3execute: Adding experimental version of exp and log 2019-08-22 13:49:37 +02:00
Claude Marche
bf00d829e8 add a new test 2019-08-22 13:42:55 +02:00
Claude Marche
9bc2021b30 more tests, several bug fixes 2019-08-20 16:22:27 +02:00
Claude Marche
8c541b3c19 computing with real numbers: use binary128 floats by default 2019-08-20 16:22:27 +02:00
Sylvain Dailler
ae5ddf9151 why3execute: Add execution for floats and reals (depends from mpfr)
This adds an optional dependency on MPFR to run why3execute for floats. It
is also used for reals (represented as intervals of floats).
This commit does the following changes:
- update the configure/Makefile to allow MPFR dependency
- adds a MPFR wrapper so that why3execute can still be compiled if MPFR is
  not installed. In this case, an exception is raised when executing on
  real/float.
- some updates are made to the standard library so that real/float
  functions are part of the program world (and can be executed).
- pinterp changes to make elementary functions from real and float
  executable.
- add some tests under bench/interp for manual testing of this feature

Note that the correctness of the results given for reals depends on the
precision. A too low precision may give unexpected results.
2019-08-13 16:38:34 +02:00