Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Co-authored-by: Shon Feder <shon@informal.systems>
  • Loading branch information
2 people authored and shonfeder committed Jan 28, 2021
1 parent a0e0836 commit 4fbb82d
Show file tree
Hide file tree
Showing 6 changed files with 223 additions and 54 deletions.
2 changes: 1 addition & 1 deletion UNRELEASED.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
### Bug fixes

* handling big integers, see #450
* better parsing of SPECIFICATION in TLC configs, see #468
* expanding tuples in quantifiers, see #476
* unfolding UNCHANGED for arbitrary expressions, see #471
* unfolding UNCHANGED <<>>, see #475
Expand All @@ -22,4 +23,3 @@
* constant simplification over strings, see #197
* propagation of primes inside expressions,
e.g., (f[i])' becomes f'[i'] if both f and i are state variables

6 changes: 6 additions & 0 deletions test/tla/Config.tla
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ Spec ==
Spec2 ==
Init2 /\ [][Next2]_x

Spec4 ==
(Init2 /\ [][Next2]_x) /\ WF_x(Next2)

Spec5 ==
Init2 /\ ([][Next2]_x /\ SF_x(Next2))

\* the default invariant
Inv ==
x < 1
Expand Down
6 changes: 6 additions & 0 deletions test/tla/Config4.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
SPECIFICATION
Spec4

INVARIANT
Inv2

6 changes: 6 additions & 0 deletions test/tla/Config5.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
SPECIFICATION
Spec5

INVARIANT
Inv2

34 changes: 34 additions & 0 deletions test/tla/cli-integration-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,40 @@ The outcome is: NoError
...
```

### configure via TLC config with SPECIFICATION and fairness

```sh
$ apalache-mc check --config=Config4.cfg Config.tla | sed 's/[IEW]@.*//'
...
> Config4.cfg: Loading TLC configuration
...
> Config4.cfg: Using SPECIFICATION Spec4
...
> Set the initialization predicate to Init2
> Set the transition predicate to Next2
> Set an invariant to Inv2
...
The outcome is: NoError
...
```

### configure via TLC config with SPECIFICATION and fairness

```sh
$ apalache-mc check --config=Config5.cfg Config.tla | sed 's/[IEW]@.*//'
...
> Config5.cfg: Loading TLC configuration
...
> Config5.cfg: Using SPECIFICATION Spec5
...
> Set the initialization predicate to Init2
> Set the transition predicate to Next2
> Set an invariant to Inv2
...
The outcome is: NoError
...
```

### configure complains about circular dependencies

```sh
Expand Down
Loading

0 comments on commit 4fbb82d

Please sign in to comment.