- 11 Feb, 2016 1 commit
-
-
Andrei Paskevich authored
-
- 10 Feb, 2016 3 commits
-
-
Andrei Paskevich authored
-
Andrei Paskevich authored
Dexpr checks for this earlier and adds "_ -> absurd" when needed.
-
Andrei Paskevich authored
-
- 09 Feb, 2016 2 commits
-
-
Andrei Paskevich authored
-
Andrei Paskevich authored
-
- 02 Feb, 2016 1 commit
-
-
Andrei Paskevich authored
-
- 31 Jan, 2016 2 commits
-
-
Andrei Paskevich authored
-
Andrei Paskevich authored
-
- 26 Jan, 2016 2 commits
-
-
Andrei Paskevich authored
-
Andrei Paskevich authored
-
- 24 Jan, 2016 1 commit
-
-
Andrei Paskevich authored
also, rename asym_label to asym_split and keep_on_simp_label to keep_on_simp.
-
- 17 Jan, 2016 2 commits
-
-
Andrei Paskevich authored
-
Andrei Paskevich authored
-
- 11 Jan, 2016 3 commits
-
-
Andrei Paskevich authored
-
Andrei Paskevich authored
This makes "let f ... : unit = <effect> ; <ghost effect>" acceptable without ghostness annotation in the result. However, "let f ... : unit = <ghost effect>" is still required to be marked ghost (unless f is a local non-recursive function).
-
Andrei Paskevich authored
Refutable ghost subpatterns that are not followed by a non-absurd branch are actually irrefutable and do not make the whole match-with expression ghost.
-
- 10 Jan, 2016 1 commit
-
-
Andrei Paskevich authored
this is still work in progress and no testing was done so far. Highlights of this commit: - "(ghost 42, 15)" is now a non-ghost expression that can be returned from a function and/or matched against a "(ghost x, y)" pattern. Only the tuple constructor and direct pattern matching are magical: "let z = (ghost 42, 15) in ..." still makes z ghost, and therefore "snd (ghost 42, 15)" is ghost, too. - "if c then e1 else ghost e2" and "let z = e1 in ghost e2" are now non-ghost expressions with a ghost result. This means that e1 may have visible effects. Of course, if e2 raises exceptions, the whole expression is ghostified. Contamination is still done when possible, that is, when the contaminated expression has no visible effects. - "let ghost x = e1 in e2" no longer ghostifies e1. - "let f (ghost x) = ... in f e1" no longer ghostifies e1. - new syntax: variables in program patterns may be marked ghost. In particular: "let x, ghost y = ...". - new syntax: the function result type may be written as a partially ghost tuple: "val f ... : ghost int" or "any (int, ghost bool)". The ghostness annotation is required for top-level and recursive functions. - exceptions can carry partially ghost tuples (API only, WIP)
-
- 11 Dec, 2015 1 commit
-
-
MARCHE Claude authored
make bench should not - build why3extract (not ready yet) - test the API of programs (is changed, tests has to be updated first) - test extraction (not ready yet)
-
- 07 Dec, 2015 4 commits
-
-
Andrei Paskevich authored
-
Andrei Paskevich authored
-
Andrei Paskevich authored
This reverts commit e368d43a.
-
Andrei Paskevich authored
-
- 30 Nov, 2015 1 commit
-
-
Andrei Paskevich authored
-
- 24 Nov, 2015 1 commit
-
-
Andrei Paskevich authored
but forbid writing into these "confined" regions
-
- 15 Nov, 2015 1 commit
-
-
Andrei Paskevich authored
this should not be problematic as long as these fields do not occur in the invariants (actual or refined). In other words, a value of a private type exists no matter what is stored in the field. Also, admit non-private mutable types without actual mutable fields. It is actually impossible to create a write effect for such types, and the only consequence of being mutable is that they are assigned a region, and so every value of such type can be tracked individually. One use case for this is a non-private record with an invariant, which either has fields with mutable types or has type parameters that we wish to instantiate with mutable types. If we modify these mutable components, this may break the record's invariant. Now, if the record itself is immutable (and thus has no associated region), then we must reestablish the invariant immediately, otherwise we lose track of the value. Even if this extra flexibility does not prove useful in the end, it seems to be harmless. Also, admit type definitions of the form type t 'a = (private|abstract)? mutable? {} invariant* which define private empty records (even if not declared private). Also, "type t 'a" is now equivalent to "type t 'a = private {}".
-
- 13 Nov, 2015 1 commit
-
-
Andrei Paskevich authored
-
- 10 Nov, 2015 3 commits
-
-
Andrei Paskevich authored
-
-
-
- 08 Nov, 2015 2 commits
-
-
Andrei Paskevich authored
-
Andrei Paskevich authored
[add_left] and [remove_left] are useful in left folds, [contains] allows to use partial application in maps.
-
- 25 Sep, 2015 1 commit
-
-
Andrei Paskevich authored
-
- 19 Sep, 2015 1 commit
-
-
Andrei Paskevich authored
If we have a top-level total let-function definition and no variants are supplied, then we expect the definition to be terminating with respect to Decl.check_termination.
-
- 18 Sep, 2015 4 commits
-
-
git+ssh://scm.gforge.inria.fr/gitroot/why3/why3Mário Pereira authored
Conflicts: examples/schorr_waite.mlw
-
Mário Pereira authored
-
Andrei Paskevich authored
all operations on sequences are pure functions
-
Andrei Paskevich authored
pure functions are always ghost, accept mutable values, and are required to produce pure results
-
- 13 Sep, 2015 2 commits
-
-
Andrei Paskevich authored
-
Andrei Paskevich authored
-