Skip to content

Commit

Permalink
close #468
Browse files Browse the repository at this point in the history
  • Loading branch information
konnov committed Jan 25, 2021
1 parent da5cc41 commit e998886
Show file tree
Hide file tree
Showing 5 changed files with 225 additions and 53 deletions.
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 @@ -694,6 +694,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 e998886

Please sign in to comment.