14 Commits

Author SHA1 Message Date
Claude Marche
621aff44a7 Several renamings and fix a few pre and post-conditions 2021-09-29 08:57:02 +02:00
Guillaume Cluzel
5c9c185312 Ues BV 128 to check the precondition of mach.bv operations 2021-08-23 11:23:04 +02:00
Claude Marche
47500c797b update sessions 2018-10-16 16:57:08 +02:00
Andrei Paskevich
eae547d95f stdlib, examples: remove redundant "import" 2018-06-15 16:45:58 +02:00
Andrei Paskevich
7b0929a761 WhyML: "use/clone T" imports by default (in absence of "as")
For the previous behaviour (no import), write "use/clone T as T".

This shortens the most used "use/clone import" to simply "use/clone".
2018-06-15 16:45:58 +02:00
Guillaume Melquiond
1b197bd783 Convert some more examples. 2018-06-13 18:27:13 +02:00
Guillaume Melquiond
2891378092 Fix typos. 2018-03-05 18:52:44 +01:00
Guillaume Melquiond
4822694f3b Merge branch 'master' into new_system 2017-04-14 17:45:25 +02:00
Clément Fumex
f05478680f Add the ability to
* declare range types and float types,
* use integer (resp. real) literals for those types through casting,
* specify how to print them in drivers.

Change in syntax
* use

  type t = < range 1 2 >   (* integers from 1 to 2 *)
  type t' = < float 4 12 > (* float with 4 bits in exponent and 12 in mantissa *)

  the two projections :
  t'int
  t''real

  and the predicate :
  t''isFinite

* Restrict the use of "'" in whyml:
  Users are not allowed to introduce names where a quote symbol
  is followed by a letter. Thus, the following identifiers are
  valid:

  t'
  toto'0''
  toto'_phi

  whereas toto'phi is not.

Note: we do not yet support negative numbers in range declaration
and casting of a literal.
2017-02-28 16:31:36 +01:00
Claude Marche
a1e22351ee Update examples in progress 2016-03-09 15:22:02 +01:00
Clément Fumex
3a2d2ca99c change zero to zeros in bv theory 2016-01-28 17:30:17 +01:00
Claude Marche
24f55037c0 example bitcount: commented out the unfinished part 2015-11-25 10:03:48 +01:00
Claude Marche
a06ea4eeb0 example bitcount: improved code and annotations for the 32-bit case 2015-11-23 16:36:57 +01:00
Clément Fumex
8761602f5d - some modifications to bv.why/mlw :
+ size -> size_bv
  + size_int -> size
  + change two_power_size and max_int definitions
  + add axioms to BVConverter
  + new axiom relating nth and nth_bv
  + some reorganisation
- update coq realisation
- modify in consequence the relevant examples and pull the completed ones out of in_progress
2015-10-07 14:10:44 +02:00