1. 09 Mar, 2017 1 commit
  2. 06 Mar, 2017 1 commit
  3. 28 Feb, 2017 1 commit
    • Clément Fumex's avatar
      Add the ability to · f0547868
      Clément Fumex authored
      * 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.
      f0547868
  4. 29 Jan, 2017 1 commit
  5. 25 Jan, 2017 1 commit
    • Clément Fumex's avatar
      + remove unused constant half · 5a44ec01
      Clément Fumex authored
      + add predicate "exact_int"
      + add three axioms on of_int +/-/*
      + add some other axioms
      + guard the theory realization with a dependency to flocq in make file
      5a44ec01
  6. 05 Jan, 2017 1 commit
    • Clément Fumex's avatar
      + remove a few wrong axioms · 9a94aeb8
      Clément Fumex authored
      + simplify some others
      + add a realization of real.Truncate
      + add a, almost complete, realization (missing fma related axioms + some non-axiomatized definitions)
      9a94aeb8
  7. 03 Jan, 2017 4 commits
  8. 08 Dec, 2016 1 commit
  9. 07 Dec, 2016 1 commit
  10. 20 Oct, 2016 1 commit
  11. 09 Sep, 2016 1 commit
  12. 06 Sep, 2016 1 commit
    • Sylvain Dailler's avatar
      Why3 altergo counterex - Allowing values to be printed for Altergo · a5d0aa0b
      Sylvain Dailler authored
      We added the generation of identifiers for counterex values inside the
      printer of altergo.
      Also added a file to factorize counterex printing functions that are used
      for both altergo and smtv2.
      
      * Makefile.in
      (cntexmp_printer): Factorization file added to Makefile.
      
      * src/driver/parse_smtv2_model_lexer.mll
      (MODEL): Adding model keyword.
      
      * src/driver/parse_smtv2_model_parser.mly
      (output): Added parsing when keyword model is at beginning of the
       output of the prover.
      
      * src/printer/alt_ergo.ml
      Adding info mimicking smtv2.ml inside most printing functions for counterex
      generation.
      
      * src/printer/cntexmp_printer.ml
      Common functions to alt_ergo.ml and smtv2.ml
      
      * src/printer/smtv2.ml
      Removed functions that are factorized into cntexmp_printer.ml
      a5d0aa0b
  13. 02 Sep, 2016 1 commit
  14. 17 Aug, 2016 1 commit
  15. 25 Jul, 2016 1 commit
  16. 05 Jul, 2016 4 commits
  17. 09 Jun, 2016 1 commit
    • Guillaume Melquiond's avatar
      Make sure that the opt and byte targets can be built concurrently. · 12b97bbb
      Guillaume Melquiond authored
      The main issue is that both ocamlc and ocamlopt write a .cmi file when
      there is no .mli file, so the .cmi file might end up being corrupted due
      to concurrent accesses.
      
      The ugly fix is to prevent ocamlopt from creating a .cmi file by lying to
      it: ".mli files are no interface files, .but cmi files are". So ocamlopt
      behaves as if there had been a .mli file in the first place and does not
      try to produce a compiled interface from the .ml file. Note that we use
      the .cmi file because it happens to have the same base name, but any other
      file would have worked, e.g. the .dep file, since ocamlopt does not even
      read the file to check that it is actually an interface file.
      
      Since ocamlopt now believes that the .ml file has an interface, it needs a
      compiled interface to check its signature against, so the .cmi file has to
      be created beforehand. So the .cmx file is made to depend on the .cmi file
      and the .cmi file on the .cmo file.
      
      This might seem to add a dependency from the opt build on the byte build,
      but since ocamldep already says that the tools depend on lib/why3/why3.cmo
      due to the pack, this does not make the situation any worse.
      
      Note that there is a single file for which the .cmi hack cannot be used:
      src/tools/why3extract.ml. Indeed, if we lie to ocamlopt, it will try to
      use lib/why3/why3extract.cmi as the compiled interface (?!) and thus fail
      to compile src/tools/why3extract.ml, obviously. So the hack is disabled
      for this file, which means that src/tools/why3extract.cmi could end up
      being corrupted, but we do not care.
      12b97bbb
  18. 06 Jun, 2016 1 commit
  19. 20 May, 2016 2 commits
  20. 19 May, 2016 4 commits
  21. 18 May, 2016 2 commits
  22. 16 May, 2016 1 commit
  23. 13 May, 2016 1 commit
  24. 11 May, 2016 1 commit
  25. 20 Apr, 2016 1 commit
  26. 18 Apr, 2016 3 commits
  27. 11 Apr, 2016 1 commit